GetMinute

From Liberty Unleashed Wiki
Jump to: navigation, search
Home   |   Squirrel Scripting   |   Server Functions   |   Server Events   |   Client Functions   |   Client Events

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( plr, cmd, text )
  3. {
  4. if ( cmd == "time" )
  5. {
  6. MessagePlayer( "Server time is: " + GetHour() + ":" + GetMinute(), plr );
  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

Personal tools
Namespaces

Variants
Actions
Navigation
scripting
Toolbox