how to check if player is throwing grenade
#2

pawn Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
    new weaponid = GetPlayerWeapon(playerid);
    if(newkeys & KEY_FIRE && weaponid == 16)//16 for grenade
    {
       // your codes
    }
    return 1;
}
Try it!
Reply


Messages In This Thread
how to check if player is throwing grenade - by PSYCHOBABYKILLA - 24.04.2015, 04:03
Re: how to check if player is throwing grenade - by Shaktimaan - 24.04.2015, 04:28
Re: how to check if player is throwing grenade - by davve95 - 24.04.2015, 04:52
Re: how to check if player is throwing grenade - by JaydenJason - 24.04.2015, 06:05
Re: how to check if player is throwing grenade - by davve95 - 24.04.2015, 06:13
Re: how to check if player is throwing grenade - by JaydenJason - 24.04.2015, 06:46
Re: how to check if player is throwing grenade - by davve95 - 24.04.2015, 07:44

Forum Jump:


Users browsing this thread: 6 Guest(s)