Squirrel/Server/Functions/Game/SetTimeLock

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(Example)
 
Line 1: Line 1:
__NOTOC__
+
{{Squirrel/Title|SetTimeLock}}
 
This function locks or unlocks the server time.
 
This function locks or unlocks the server time.
  

Latest revision as of 10:46, 11 October 2010

Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

This function locks or unlocks the server time.

[edit] Syntax

  1. bool SetTimeLock( bool bLocked )

[edit] Arguments

  • bLocked - A boolean representing whether the server time should be locked or unlocked

[edit] Example

  1.  
  2. function onPlayerCommand( player, command, text )
  3. {
  4. if ( command == "settimelock" ) SetTimeLock( true );
  5. }
  6.  
  7.  

[edit] Notes

This command is used to lock the time inside of the server.

[edit] Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox