GivePlayerJetPack
Jump to navigation
Jump to search
This function is used to give a player a jetpack. Note: The player must be on-foot.
Syntax
bool givePlayerJetPack ( player thePlayer )
Required Arguments
- player: The player you want to give a jetpack to.
Returns
Returns 'true' if the player was on-foot and didn't already have a jetpack, 'false' otherwise.
Example
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