GetFullTime: Difference between revisions

From Vice City Multiplayer
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing
 
(4 intermediate revisions by one other user not shown)
Line 1: Line 1:
{{Scripting/Deprecated}}
#REDIRECT [[Scripting/Squirrel/Functions/GetFullTime]]
This function will get the time and the date.
 
== Syntax ==
 
<pre>GetServerName()</pre>
 
== Arguments ==
 
'''N/A'''
 
== Return value ==
 
* ''string'' '''servername''' - The name of the server
 
== Example ==
 
<source language="squirrel">
function onPlayerCommand( plr, cmd, text )
{
    if ( cmd == "date" )
    {
          ClientMessage( "The time is now: " + GetFullTime(), plr, 135, 210, 40 );
    }
   
    return 1;
}
</source>
 
=== Notes ===
 
== Related Functions ==
 
{{Scripting/Squirrel/Functions/Server_Settings}}

Latest revision as of 09:23, 2 August 2015