Squirrel/Server/Functions/Cheats/GetFlyingCars
From Liberty Unleashed Wiki
(Difference between revisions)
(New page: __NOTOC__ This function returns whether the flying cars cheat code (''chittychittybb'' in GTA III / ''comeflywithme'' in GTA:VC) has been activated. == Syntax == <code>bool GetFlyingCars...) |
|||
Line 14: | Line 14: | ||
{{Squirrel/NeedsExample}} | {{Squirrel/NeedsExample}} | ||
<code lang="squirrel"> | <code lang="squirrel"> | ||
− | + | function onPlayerCommand( player, command, text ) | |
+ | { | ||
+ | if ( command == "flyingcars" ) MessagePlayer( "Flying vehicles are currently set to " + GetFlyingCars(), player ); | ||
+ | } | ||
</code> | </code> | ||
=== Notes === | === Notes === | ||
− | + | This function returns a simple true/false value. | |
== Related Functions == | == Related Functions == | ||
{{Squirrel/Server/Functions/Cheats}} | {{Squirrel/Server/Functions/Cheats}} |
Revision as of 02:27, 7 January 2010
This function returns whether the flying cars cheat code (chittychittybb in GTA III / comeflywithme in GTA:VC) has been activated.
Syntax
bool GetFlyingCars()
Arguments
- none
Example
This function needs an example. You can help us complete the wiki by writing one, or maybe even more :o
function onPlayerCommand( player, command, text ) { if ( command == "flyingcars" ) MessagePlayer( "Flying vehicles are currently set to " + GetFlyingCars(), player ); }
Notes
This function returns a simple true/false value.
Related Functions
- GetFlyingCars
- GetHandlingCheat
- SetFlyingCars
- SetHandlingCheat