GetPlayerWeaponState
Description:
Function GetPlayerWeaponState check the state of a player's weapon.
Function GetPlayerWeaponState was added in 0.3a and will not work in earlier versions! |
Parameters:
(playerid)
int | 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.
Examples:
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.