GetPlayerWeaponState
From SA-MP Wiki
Check the state of a player's weapon.
(playerid)
| playerid | The ID of the player to obtain the state from |
| Returns | The state of the player's weapon |
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.
