Squirrel/Server/Functions/Cheats/GetFlyingCars

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(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">
-- todo
+
function onPlayerCommand( player, command, text )
 +
{
 +
if ( command == "flyingcars" ) MessagePlayer( "Flying vehicles are currently set to " + GetFlyingCars(), player );
 +
}
 
</code>
 
</code>
  
 
=== Notes ===
 
=== Notes ===
  
-- Example notes here
+
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

  1. 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
  1.  
  2. function onPlayerCommand( player, command, text )
  3. {
  4. if ( command == "flyingcars" ) MessagePlayer( "Flying vehicles are currently set to " + GetFlyingCars(), player );
  5. }
  6.  

Notes

This function returns a simple true/false value.

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox