CanPlayerBeKnockedOffBike
From Multi Theft Auto: Wiki
This function is deprecated. This means that its use is discouraged and that it might not exist in future versions. | |
Please use canPedBeKnockedOffBike instead. |
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
- forcePlayerMap
- getAlivePlayers
- getDeadPlayers
- getPlayerACInfo
- getPlayerAnnounceValue
- getPlayerBlurLevel
- getPlayerCount
- getPlayerFromName
- getPlayerIdleTime
- getPlayerIP
- getPlayerMoney
- getPlayerName
- getPlayerNametagColor
- getPlayerNametagText
- getPlayerPing
FROM VERSION 1.5.7 r19626 ONWARDS
- getPlayerSerial
- getPlayerTeam
- getPlayerVersion
- getPlayerWantedLevel
- getRandomPlayer
- givePlayerMoney
- isPlayerMapForced
- isPlayerMuted
- isPlayerNametagShowing
- isVoiceEnabled
- redirectPlayer
- resendPlayerACInfo
- resendPlayerModInfo
- setPlayerAnnounceValue
- setPlayerBlurLevel
- setPlayerHudComponentVisible
- setPlayerMoney
- setPlayerMuted
- setPlayerName
- setPlayerNametagColor
- setPlayerNametagShowing
- setPlayerNametagText
FROM VERSION 1.5.7 r19626 ONWARDS
- setPlayerTeam
- setPlayerVoiceBroadcastTo
- setPlayerVoiceIgnoreFrom
- setPlayerWantedLevel
- spawnPlayer
- takePlayerMoney
- takePlayerScreenShot