21.06.2015, 08:50
try this code:
Код:
PickupGun(weaponid); if(GunObjects[weaponid] != -1) { GunObject[i] = CreateDynamicObject(GunObjects[weaponid], X, Y, Z-1, 80.0, 0.0, 0.0, VirtualWorld, -1, -1, 200.0); }
Код:
stock PickupGun(weaponid) { if (weaponid < 0 || weaponid > 64) { GunObjects[weaponid] = -1; } else { GunObjects[weaponid] = weaponid; } return 1; }