24.12.2013, 22:12
pawn Код:
new Weapon, Ammo;
GetPlayerWeaponData(giveplayerid, 5, Weapon, Ammo); // slot 5 is for AK-47 and M4
if(Weapon > 0 && Ammo > 0) // if player got AK or M4 and ammo more than 0
{
if(Ammo > 699)
{
new str[128];
format(str,sizeof(str),"Weapon id %d || Ammunition found: %d || Max ammunition is: 350", Weapon, Ammo);
SendClientMessage(playerid,-1,str);
}
}