Squirrel/Server/Functions/Game/GetMinute
From Liberty Unleashed Wiki
(Difference between revisions)
(New page: __NOTOC__ Returns the current minute in the server. == Syntax == <code>int GetMinute()</code> == Arguments == * '''None''' == Example == This command will tell player the current tim...) |
m (Squirrel/Functions/Game/GetMinute moved to Squirrel/Server/Functions/Game/GetMinute: Server-side scripting only) |
Revision as of 20:06, 26 November 2009
Returns the current minute in the server.
Syntax
int GetMinute()
Arguments
- None
Example
This command will tell player the current time in the server when they type '/time'.
function OnPlayerCommand( id, cmd, text ) { if ( cmd == "time" ) { MessagePlayer( "Server time is: " + GetHour() + ":" + GetMinute(), id ); } }
Notes
The functions MessagePlayer, GetHour and call OnPlayerCommand were used in in this example. More info about them in corresponding pages.