GetPlayerWeaponState

From SA-MP Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 13:26, 23 January 2014
Smithy (Talk | contribs)

← Previous diff
Revision as of 00:01, 1 February 2014
Connor Mead (Talk | contribs)

Next diff →
Line 22: Line 22:
[[Category:Scripting Functions]] [[Category:Scripting Functions]]
 +
 +[[fr:GetPlayerWeaponState]]

Revision as of 00:01, 1 February 2014



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 state of.


Return Values:

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.

In other languages