Disabling fire when the ammo == 1
#3

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if(newkeys & KEY_FIRE)
    {
        if(GetPlayerAmmo(playerid) == 1) SetPlayerArmedWeapon(playerid, 0);
    }
    return 1;
}
Reply


Messages In This Thread
Disabling fire when the ammo == 1 - by TudvariHUN - 11.07.2012, 08:31
Re: Disabling fire when the ammo == 1 - by MP2 - 11.07.2012, 08:40
Re: Disabling fire when the ammo == 1 - by Cypress - 11.07.2012, 08:40
Re: Disabling fire when the ammo == 1 - by TudvariHUN - 11.07.2012, 08:45
Re: Disabling fire when the ammo == 1 - by MP2 - 11.07.2012, 08:49
Re: Disabling fire when the ammo == 1 - by Cypress - 11.07.2012, 08:49
Re: Disabling fire when the ammo == 1 - by TudvariHUN - 11.07.2012, 08:56
Re: Disabling fire when the ammo == 1 - by clarencecuzz - 11.07.2012, 08:58
Re: Disabling fire when the ammo == 1 - by TudvariHUN - 11.07.2012, 09:00
Re: Disabling fire when the ammo == 1 - by Vince - 11.07.2012, 09:04

Forum Jump:


Users browsing this thread: 1 Guest(s)