07.07.2010, 20:45
Losing 1 gun:
pawn Код:
new weap; ammo;
GetPlayerWeaponData(playerid,7,weap,ammo); // Slot 7 was minigun etc right? The weapon is saved in the weap variable and his ammo is saved in the ammo variable.
GivePlayerWeapon(playerid,weap,-ammo); // Gives the player the negative amount of ammo he currently holds for his 'weap'.