GetPlayerWeaponState

warning

This function was added in SA-MP 0.3a and will not work in earlier versions!

Description

Check the state of a player's weapon.

NameDescription
playeridThe ID of the player to obtain the weapon state of.

Returns

The state of the player's weapon. 0 if player specified does not exist.

Examples

public OnPlayerSpawn(playerid)
{
SetPVarInt(playerid, "WepState", GetPlayerWeaponState(playerid));
return 1;
}

Related Functions