Scripting/Squirrel/Functions/GetFlyingCars: Difference between revisions
Jump to navigation
Jump to search
This wiki is using an old backup from 2020
Some information may be old/missing
(Created page with "This function will return the current status of the flying cars ability. == Syntax == <pre>EnabledFlyingCars()</pre> == Arguments == '''N/A''' == Return value == * ''boo...") |
No edit summary |
||
(4 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
This function will return the current status of the flying cars ability. | This function will return the current status of the flying cars ability. | ||
== Syntax == | == Syntax == | ||
<pre> | <pre>GetFlyingCars()</pre> | ||
== Arguments == | == Arguments == | ||
Line 11: | Line 10: | ||
== Return value == | == Return value == | ||
* ''bool'' '''toggled | * ''bool'' '''toggled''' | ||
== Example == | == Example == | ||
This command will check whether the flying cars is on or off | |||
<source lang=squirrel> | |||
function onPlayerCommand(player,cmd,text) | |||
{ | |||
if(cmd=="gfc") | |||
{ | |||
MessagePlayer("Flyingcars Status: "+GetFlyingCars(),player); | |||
} | |||
} | |||
</source> | |||
=== Notes === | === Notes === | ||
Call [[onPlayerCommand]] were used in this example. More info about them in the corresponding pages. | |||
== Related Functions == | == Related Functions == | ||
{{Scripting/Squirrel/Functions/ | {{Scripting/Squirrel/Functions/Server Settings}} | ||
[[Category:Scripting/Squirrel/Functions/Server_Settings _Functions]] |
Latest revision as of 19:08, 30 January 2017
This function will return the current status of the flying cars ability.
Syntax
GetFlyingCars()
Arguments
N/A
Return value
- bool toggled
Example
This command will check whether the flying cars is on or off
function onPlayerCommand(player,cmd,text)
{
if(cmd=="gfc")
{
MessagePlayer("Flyingcars Status: "+GetFlyingCars(),player);
}
}
Notes
Call onPlayerCommand were used in this example. More info about them in the corresponding pages.
Related Functions
- GetDeathmatchScoreboard
- GetDeathMessages
- GetDrivebyEnabled
- GetDriveOnWater
- GetFallEnabled
- GetFastSwitch
- GetFlyingCars
- GetFrameLimiter
- GetFriendlyFire
- GetGameModeName
- GetGamespeed
- GetGravity
- GetHour
- GetJoinMessages
- GetJumpSwitch
- GetKillDelay
- GetMaxHeight
- GetMaxPlayers
- GetMinute
- GetObjectCount
- GetPerfectHandling
- GetPickupCount
- GetPlayers
- GetServerName
- GetPassword
- GetShootInAir
- GetShowNametags
- GetShowOnlyTeamMarkers
- GetShowOnRadar
- GetSkinID
- GetStuntBike
- GetSyncFrameLimiter
- GetTaxiBoostJump
- GetTickCount
- GetTimeRate
- GetVehicleCount
- GetVehiclesForcedRespawnHeight
- GetWallglitch
- GetWaterLevel
- GetWeaponSync
- GetWeather
- ReloadScripts
- SetDeathmatchScoreboard
- SetDeathMessages
- SetDrivebyEnabled
- SetDriveOnWater
- SetFallEnabled
- SetFastSwitch
- SetFlyingCars
- SetFrameLimiter
- SetFriendlyFire
- SetGameModeName
- SetGamespeed
- SetGravity
- SetHour
- SetJoinMessages
- SetJumpSwitch
- SetKillDelay
- SetMaxHeight
- SetMaxPlayers
- SetMinute
- SetPerfectHandling
- SetServerName
- SetPassword
- SetShootInAir
- SetShowNametags
- SetShowOnlyTeamMarkers
- SetShowOnRadar
- SetStuntBike
- SetSyncFrameLimiter
- SetTaxiBoostJump
- SetTimeRate
- SetTime
- SetVehiclesForcedRespawnHeight
- SetWallglitch
- SetWaterLevel
- SetWeaponSync
- ShutdownServer