Quote:
Originally Posted by Konstantinos
pawn Код:
GetWeaponMagazineAmmo(weaponid) { switch (weaponid) { case 22: return 34; case 23: return 17; case 24: return 7; case 26: return 4; case 27: return 7; case 28: return 100; case 29: return 30; case 30: return 30; case 31: return 50; case 32: return 100; case 38: return 500; } return -1; }
The usage is: GetWeaponMagazineAmmo(weaponid) * how many magazines
An example to set to 46 magazines to your m4 weapon:
pawn Код:
SetPlayerAmmo(playerid, WEAPON_M4, GetWeaponMagazineAmmo(WEAPON_M4) * 46);
which makes it 2300-46
|
I've already something like that. I'm looking for set the number of ammo in a magazine.
I think I've to set 1 magazine and custom the number of ammo.