Squirrel/Server/Functions/Game/SetTimeLock

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(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 ==
  
{{Squirrel/NeedsExample}}
 
 
<code lang="squirrel">
 
<code lang="squirrel">
-- todo
+
function onPlayerCommand( player, command, text )
 +
{
 +
if ( command == "settimelock" ) SetTimeLock( true );
 +
}
 +
 
 
</code>
 
</code>
  
 
=== Notes ===
 
=== Notes ===
  
-- Example notes here
+
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

  1. bool SetTimeLock( bool bLocked )

Arguments

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

Example

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

Notes

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

Related Functions

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox