Scripting/Squirrel/Functions/SetMinute

From Vice City Multiplayer
Revision as of 08:41, 26 April 2019 by Xhefri (talk | contribs) (→‎Example)
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing

This function sets the game minutes.

Syntax

SetMinute( minute )

Arguments

  • int minute - The minute of the game (from 00 to 59)

Example

else if ( cmd == "setmin" )
{
if ( !text ) MessagePlayer( "Use /setmin <Minutes>.", player );
else if ( !IsNum( text ) ) MessagePlayer( "Game minutes must be an integer.", player );
else {
SetMinute(text.tointeger())
MessagePlayer( "Game minutes has been changed." , player );
}
}

Notes

Related Functions