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
(Created page with "This function will get the timerate of the game. == Syntax == <pre>GetTimeRate()</pre> == Arguments == '''N/A''' == Return value == * ''int'' '''timerate''' - The timera...")
 
 
(One intermediate revision by one other user not shown)
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 ==


{{Scripting/Squirrel/Functions/Server_Settings}}
{{Scripting/Squirrel/Functions/Server_Settings}}
[[Category:Scripting/Squirrel/Functions/Server_Settings _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