Squirrel/Server/Functions/Game/GetMinute

From Liberty Unleashed Wiki
(Difference between revisions)
Jump to: navigation, search
(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

  1. int GetMinute()

Arguments

  • None

Example

This command will tell player the current time in the server when they type '/time'.

  1.  
  2. function OnPlayerCommand( id, cmd, text )
  3. {
  4. if ( cmd == "time" )
  5. {
  6. MessagePlayer( "Server time is: " + GetHour() + ":" + GetMinute(), id );
  7. }
  8. }
  9.  

Notes

The functions MessagePlayer, GetHour and call OnPlayerCommand were used in in this example. More info about them in corresponding pages.

Related Functions

Template:Squirrel/Functions/Game

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox