CanPlayerBeKnockedOffBike: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 2: | Line 2: | ||
{{Client function}} | {{Client function}} | ||
{{Deprecated}} | {{Deprecated}} | ||
Please use [[canPedBeKnockedOffBike]] | |||
This function checks if a player can fall off bikes. | This function checks if a player can fall off bikes. | ||
Revision as of 21:09, 20 April 2011
This function is deprecated. This means that its use is discouraged and that it might not exist in future versions, but there should be a more generic way to perform what it does. | |
Please use canPedBeKnockedOffBike
This function checks if a player can fall off bikes.
Syntax
bool canPlayerBeKnockedOffBike ( player thePlayer )
Required Arguments
- thePlayer: the player whose knockoffstatus being asked
Returns
Returns true if the player can be knocked off bikes, false if he can't or an invalid element was passed.
Example
This example puts the knockoff status in the chatbox.
function canBeKnockedOff ( command ) -- The player should enter /knockstatus if canPlayerBeKnockedOffBike ( getLocalPlayer() ) then outputChatBox ( "You can be knocked off your bike." ) else outputChatBox ( "You can't be knocked off your bike." ) end end addCommandHandler ( "knockstatus", canBeKnockedOff )
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