corvex letzte änderung hinzugefügt & luke dimension gefixt & add Waffen Pickups muss man testen
This commit is contained in:
@@ -170,6 +170,30 @@ export default function weapondamageUtil(globalData: IGlobalData) {
|
||||
}
|
||||
});
|
||||
|
||||
mp.events.add("ADMIN:test", (weapon, pickuphash, weaponhash, ammo, x, y, z, ) => {
|
||||
mp.gui.chat.push("angekommen");
|
||||
//mp.game.object.createPickupRotate(0xE46E11B4, 100, 100 + 3, 80, 0, 0, 0, 512, 10, 0, true, 1834241177);
|
||||
|
||||
|
||||
let pickup = mp.game.object.createPickupRotate(pickuphash, x + 2, y, z, 0, 0, 0, 512, ammo, 0, true, weaponhash);
|
||||
|
||||
mp.events.add('render', () => {
|
||||
// Draw to screen.
|
||||
mp.game.graphics.drawText(weapon, [x + 2, y, z+ 0.5], {
|
||||
font: 7,
|
||||
color: [255, 255, 255, 185],
|
||||
scale: [0.4, 0.4],
|
||||
outline: true,
|
||||
centre: true
|
||||
});
|
||||
});
|
||||
|
||||
|
||||
mp.game.object.setPickupRegenerationTime(pickup, 1);
|
||||
|
||||
mp.gui.chat.push("ausgeführt");
|
||||
});
|
||||
|
||||
/*mp.events.add('playerWeaponShot', (targetPosition, targetEntity) => {
|
||||
for (var x in this.weaponAmmo) {
|
||||
if (this.weaponAmmo[x].id != this.currentWeapon) {
|
||||
|
||||
Reference in New Issue
Block a user