Squirrel/Server/Functions/Game/SetTimeLock
From Liberty Unleashed Wiki
(Difference between revisions)
(New page: __NOTOC__ This function locks or unlocks the server time. == Syntax == <code>bool SetTimeLock( bool bLocked )</code> == Arguments == * '''bLocked''' - A boolean representing whether th...) |
(→Example) |
||
Line 12: | Line 12: | ||
== Example == | == Example == | ||
− | |||
<code lang="squirrel"> | <code lang="squirrel"> | ||
− | + | function onPlayerCommand( player, command, text ) | |
+ | { | ||
+ | if ( command == "settimelock" ) SetTimeLock( true ); | ||
+ | } | ||
+ | |||
</code> | </code> | ||
=== Notes === | === Notes === | ||
− | + | This command is used to lock the time inside of the server. | |
== Related Functions == | == Related Functions == | ||
{{Squirrel/Server/Functions/Game}} | {{Squirrel/Server/Functions/Game}} |
Revision as of 02:55, 7 January 2010
This function locks or unlocks the server time.
Syntax
bool SetTimeLock( bool bLocked )
Arguments
- bLocked - A boolean representing whether the server time should be locked or unlocked
Example
function onPlayerCommand( player, command, text ) { if ( command == "settimelock" ) SetTimeLock( true ); }
Notes
This command is used to lock the time inside of the server.
Related Functions
- CloseGarage
- CloseSSVBridge
- EnableTrains
- GetBoundariesLower
- GetBoundariesUpper
- GetFriendlyFire
- GetGamespeed
- GetGravity
- GetHour
- GetIslands
- GetMinute
- GetSSVBridgeLock
- GetSSVBridgeUpdateTime
- GetSurfaceTraction
- GetTimeLock
- GetWeather
- GetWeatherLock
- IsSSVBridgeUp
- OpenGarage
- OpenSSVBridge
- SetBoundaries
- SetFriendlyFire
- SetGamespeed
- SetGravity
- SetIslands
- SetSSVBridgeLock
- SetSSVBridgeUpdateTime
- SetSurfaceTraction
- SetTime
- SetTimeLock
- SetWeather
- SetWeatherLock