GetPlayerWeaponState
From SA-MP Wiki
Description:
Check the state of a player's weapon.
(playerid)
playerid | The ID of the player to obtain the weapon state of. |
Return Values:
The state of the player's weapon. 0 if player specified does not exist.
Example Usage:
public OnPlayerSpawn(playerid) { SetPVarInt(playerid, "WepState", GetPlayerWeaponState(playerid)); return 1; }
Related Functions
The following functions may be useful, as they are related to this function in one way or another.
- GivePlayerWeapon: Give a player a weapon.