Scripting/Squirrel/Functions/Game/GetMinute

From VC-MP Wiki

Jump to: navigation, search

This returns the current minute in the server.

Syntax

int GetMinute()

Arguments

  • None

Example

This example will tell the player the current time when they type '/c time'.

function onPlayerCommand( player, cmd, text )
{
     if ( cmd == "time" )
     {
          MessagePlayer( "Current time: " + GetHour() + ":" + GetMinute(), player );
     }
}

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
squirrel scripting