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...) |
Revision as of 14:39, 20 October 2008
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.