[HELP] Ammunition detect
#6

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);
    }
}
Reply


Messages In This Thread
[HELP] Ammunition detect - by Luca12 - 24.12.2013, 21:46
Re: [HELP] Ammunition detect - by Jefff - 24.12.2013, 21:49
Re: [HELP] Ammunition detect - by Luca12 - 24.12.2013, 21:57
Re: [HELP] Ammunition detect - by Jefff - 24.12.2013, 22:00
Re: [HELP] Ammunition detect - by Luca12 - 24.12.2013, 22:04
Re: [HELP] Ammunition detect - by Jefff - 24.12.2013, 22:12

Forum Jump:


Users browsing this thread: 2 Guest(s)