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!


Check the state of a player's weapon.


Parameters:
(playerid)
playeridThe ID of the player to obtain the state from


ReturnsThe 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.

Personal tools