Scripting/Squirrel/Functions/GetTimeRate: Difference between revisions

From Vice City Multiplayer
Jump to navigation Jump to search
Caution icon
This wiki is using an old backup from 2020
Some information may be old/missing
No edit summary
 
Line 14: Line 14:


== Example ==
== Example ==
 
<source lang=squirrel>
{{Scripting/Needs_Example}}
{
 
if ( cmd == "timerate" )
{
MessagePlayer( "Game time rate is: " + GetTimeRate(), player );
}
}
</source>
=== Notes ===
=== Notes ===


== Related Functions ==
== Related Functions ==

Latest revision as of 17:28, 26 April 2019

This function will get the timerate of the game.

Syntax

GetTimeRate()

Arguments

N/A

Return value

  • int timerate - The timerate of the game

Example

{
if ( cmd == "timerate" )
{
MessagePlayer( "Game time rate is: " + GetTimeRate(), player );
}
}

Notes

Related Functions