IsPlayerOnGround: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
|||
Line 9: | Line 9: | ||
===Returns=== | ===Returns=== | ||
Returns true if the player is on the ground, 'false' otherwise. | Returns ''true'' if the player is on the ground, ''false'' otherwise. | ||
==Example== | ==Example== |
Revision as of 10:17, 21 August 2006
This function is used to determine whether or not a player is on the ground.
Syntax
bool isPlayerOnGround ( player thePlayer )
Required Arguments
- thePlayer: The player you are checking.
Returns
Returns true if the player is on the ground, false otherwise.
Example
[lua] addCommandHandler ( "amiflying", "isHeFlying" ) function isHeFlying ( source, key ) if ( isPlayerOnGround ( source ) ) then outputChatBox ( "no, you're not flying, you're just stoned!" ) else outputChatBox ( "is it a bird, is it a plane.. no its " .. getClientName ( source ) ) 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