[Help]Virtual Ammo
#4

untested

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    if (newkeys & KEY_FIRE)
    {
        if (!IsPlayerInAnyVehicle(playerid))
        {
            new wep = GetPlayerWeapon(playerid)
            if (wep > 0 || wep < 50)
            {
                return PlayerShot;
            }
        }
    }
    return 1;
}
it basically check all the conditions that has to be for a player to shot (at least when he is on foot).
Reply


Messages In This Thread
[Help]Virtual Ammo - by Blatnoi - 10.12.2010, 18:31
Re: [Help]Virtual Ammo - by Hal - 10.12.2010, 19:49
Re: [Help]Virtual Ammo - by Blatnoi - 10.12.2010, 20:13
Re: [Help]Virtual Ammo - by admantis - 10.12.2010, 23:00
Re: [Help]Virtual Ammo - by Joe Staff - 11.12.2010, 02:57
Re: [Help]Virtual Ammo - by Blatnoi - 11.12.2010, 05:20
Re: [Help]Virtual Ammo - by cessil - 11.12.2010, 05:51
Re: [Help]Virtual Ammo - by TMasters - 11.12.2010, 06:04

Forum Jump:


Users browsing this thread: 2 Guest(s)