SetPlayerCanBeKnockedOffBike: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 16: | Line 16: | ||
This example sets the canBeKnockedOff status true or false. | This example sets the canBeKnockedOff status true or false. | ||
<syntaxhighlight lang="lua">function | <syntaxhighlight lang="lua">function changeCanBeKnockedOff ( command, state ) | ||
-- The player should enter /knock true or /knock false | -- The player should enter /knock true or /knock false | ||
setPlayerCanBeKnockedOffBike ( getLocalPlayer(), state ) | setPlayerCanBeKnockedOffBike ( getLocalPlayer(), state ) | ||
-- Get the player and set true or false | -- Get the player and set true or false | ||
end | end | ||
addCommandHandler ( "knock", | addCommandHandler ( "knock", changeCanBeKnockedOff ) | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==See Also== | ==See Also== | ||
{{Player functions}} | {{Player functions}} |
Revision as of 08:02, 17 February 2008
This article needs checking. | |
Reason(s): Is this correct? |
This function controls if you can fall of your bike.
Syntax
bool setPlayerCanBeKnockedOffBike ( player thePlayer, bool canBeKnockedOffBike )
Required Arguments
- thePlayer: the player whose knockoffstatus being changed
- state: the true or false state
Example
This example sets the canBeKnockedOff status true or false.
function changeCanBeKnockedOff ( command, state ) -- The player should enter /knock true or /knock false setPlayerCanBeKnockedOffBike ( getLocalPlayer(), state ) -- Get the player and set true or false end addCommandHandler ( "knock", changeCanBeKnockedOff )
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