Squirrel/Server/Functions/Game/GetHour
From Liberty Unleashed Wiki
(Difference between revisions)
m (Updated with the latest functions) |
m |
||
Line 30: | Line 30: | ||
== Related Functions == | == Related Functions == | ||
− | {{Squirrel/Functions/Game}} | + | {{Squirrel/Server/Functions/Game}} |
Revision as of 23:25, 26 November 2009
Returns the current hour in the server.
Syntax
int GetHour()
Arguments
- None
Example
This command will tell player the current time in the server when they type '/time'.
function onPlayerCommand( plr, cmd, text ) { if ( cmd == "time" ) { MessagePlayer( "Server time is: " + GetHour() + ":" + GetMinute(), plr ); } }
Notes
The functions MessagePlayer, GetMinute and call onPlayerCommand were used in in this example. More info about them in corresponding pages.
Related Functions
- CloseGarage
- CloseSSVBridge
- EnableTrains
- GetBoundariesLower
- GetBoundariesUpper
- GetFriendlyFire
- GetGamespeed
- GetGravity
- GetHour
- GetIslands
- GetMinute
- GetSSVBridgeLock
- GetSSVBridgeUpdateTime
- GetSurfaceTraction
- GetTimeLock
- GetWeather
- GetWeatherLock
- IsSSVBridgeUp
- OpenGarage
- OpenSSVBridge
- SetBoundaries
- SetFriendlyFire
- SetGamespeed
- SetGravity
- SetIslands
- SetSSVBridgeLock
- SetSSVBridgeUpdateTime
- SetSurfaceTraction
- SetTime
- SetTimeLock
- SetWeather
- SetWeatherLock