Scripting/Squirrel/Functions/Game/GetTimerate
From VC-MP Wiki
Returns the current timerate in the server
Syntax
int GetTimeRate()
Arguments
- none
Example
To know, what timerate is set on the server, the player type '/c asktimerate'
function onPlayerCommand( player, cmd, text ) { if ( cmd == "asktimerate" ) { PrivMessage( "Here is your answer! The timerate on this server is set to: " + GetTimeRate() + ".", player ); } }
Notes
The function PrivMessage and call onPlayerCommand were used in in this example. More info about them in the corresponding pages.
Related Functions
- GetHour
- SetHour
- GetMinute
- SetMinute
- SetTime
- GetTimeRate
- SetTimeRate
- GetWeather
- SetWeather
- GetWeatherRate
- SetWeatherRate
- GetWeatherLock
- SetWeatherLock
- SetAmmuWeapon
- IsAmmuWeaponEnabled
- SetAmmuWeaponEnabled
- CreateMarker
- CreateMarkerForPlayer
- GetWeaponSync
- SetWeaponSync
- GetGravity
- SetGravity
- GetGamespeed
- SetGamespeed
- GetWaterLevel
- SetWaterLevel
