Squirrel/Server/Functions/Cheats/GetFlyingCars
From Liberty Unleashed Wiki
(Difference between revisions)
m (copypaste bs) |
|||
Line 25: | Line 25: | ||
=== Notes === | === Notes === | ||
− | The function [[Squirrel/Server/Functions/Messages/MessagePlayer|MessagePlayer]] and event [[Squirrel/Server/Events/Player/onPlayerCommand|onPlayerCommand]] were used | + | The function [[Squirrel/Server/Functions/Messages/MessagePlayer|MessagePlayer]] and event [[Squirrel/Server/Events/Player/onPlayerCommand|onPlayerCommand]] were used in this example. More info about them in the corresponding pages. |
== Related Functions == | == Related Functions == | ||
{{Squirrel/Server/Functions/Cheats}} | {{Squirrel/Server/Functions/Cheats}} |
Latest revision as of 19:58, 24 September 2010
This function returns whether the flying cars cheat code (chittychittybb in GTA III / comeflywithme in GTA:VC) has been activated for a certain player or the server.
[edit] Syntax
bool GetFlyingCars( [ Player plr ] )
[edit] Arguments
- plr - With this optional argument you can check the cheat status for an individual player. Without it the function will return the global server status
[edit] Example
This command returns whether the flying cars cheat has been globally activated.
function onPlayerCommand( player, command, text ) { if ( command == "flyingcars" ) MessagePlayer( "Flying vehicles are currently set to " + GetFlyingCars(), player ); return 1; }
[edit] Notes
The function MessagePlayer and event onPlayerCommand were used in this example. More info about them in the corresponding pages.
[edit] Related Functions
- GetFlyingCars
- GetHandlingCheat
- SetFlyingCars
- SetHandlingCheat