GetPlayerWeaponState
From SA-MP Wiki
(Difference between revisions)
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
Description:
Check the state of a player's weapon.
(playerid)
playerid | The 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.
- GivePlayerWeapon: Give a player a weapon.