09.08.2016, 11:31
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;
}
An example to set to 46 magazines to your m4 weapon:
pawn Код:
SetPlayerAmmo(playerid, WEAPON_M4, GetWeaponMagazineAmmo(WEAPON_M4) * 46);