DoesPlayerHaveJetPack: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
|||
Line 6: | Line 6: | ||
===Required Arguments=== | ===Required Arguments=== | ||
*''' | *'''thePlayer''': The [[player]] you are checking. | ||
===Returns=== | ===Returns=== |
Revision as of 01:35, 15 August 2006
This function is used to determine whether or not a player has a jetpack.
Syntax
bool doesPlayerHaveJetPack ( player thePlayer )
Required Arguments
- thePlayer: The player you are checking.
Returns
Returns true if a player has a jetpack, 'false' otherwise.
Example
[lua] addCommandHandler ( "jetpack", "jetPackCommand" ) function jetPackCommand ( source, key ) if ( doesPlayerHaveJetPack ( source ) ) then -- if he has a jetpack removePlayerJetPack ( source ) -- remove it else givePlayerJetPack ( source ) -- give him one end end
See Also
- getPlayerTeam
- getPlayerBlurLevel
- setPlayerBlurLevel
- getPlayerSerial
- forcePlayerMap
- getPlayerScriptDebugLevel
- getPlayerFromName
- getPlayerMoney
- getPlayerName
- getPlayerNametagColor
- getPlayerNametagText
- getPlayerPing
- getPlayerWantedLevel
- givePlayerMoney
- isPlayerMapForced
- isPlayerNametagShowing
- setPlayerHudComponentVisible
- setPlayerMoney
- setPlayerNametagColor
- setPlayerNametagShowing
- setPlayerNametagText
- takePlayerMoney
- countPlayersInTeam
- getPlayersInTeam
- isVoiceEnabled
- setControlState
- getControlState