How to detect?
#1

Hello.

I have a question.. Have to detect that player throw grenade?
OnPlayerWeaponShot support only bullet weapons.
Reply
#2

Код:
public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
{
	new weaponid = GetPlayerWeapon(playerid);
	if(newkeys & KEY_FIRE && weaponid == 16) // ID 16 for Grenade
	{
	   SendClientMessage(playerid, -1, "Grenade has been thrown");
	}
        return 1;
}
Reply
#3

Lel.. thanks.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)