GetPlayerWeaponState

From SA-MP Wiki

Jump to: navigation, search


GetPlayerWeaponState was added in SA-MP 0.3a 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.


Parameters:
(playerid)
playeridThe 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.

Personal tools
Navigation
Toolbox
In other languages