note Help Needed
This wiki is the result of an ongoing community effort — thank you all for helping!
If you want to provide changes to this page then please click here.
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.
Name | Description |
---|---|
playerid | The 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
- GivePlayerWeapon: Give a player a weapon.