Posts: 182
Threads: 52
Joined: Dec 2010
Reputation:
0
Hello guys, i have a problem, that all day and night, i have the same server time (i have a clock that works fine).
But my point is , i want at the morning to be morning time, and at night night time. what i have now is
for example 22:30 -> day time on the server.
+1 rep for helpers!
Posts: 2,524
Threads: 109
Joined: Sep 2009
Reputation:
0
you have to use SetWorldTime to actually change the visual time of your server, and you can use gettime function, storing the hour in a variable, and setting the world time to that hour. it's not hard, if you place it under a timer (1 hour) for example.
Posts: 6
Threads: 1
Joined: Apr 2012
Reputation:
0
In your main filterscripts folder, When you install the server
You should have something like gl_realtime, or W/E tries it.
Posts: 2,629
Threads: 40
Joined: Mar 2008
Reputation:
0
Take a look in your filterscripts directory in gl_realtime. It comes with the sa-mp server and it shows you how to make a real time clock.
Posts: 182
Threads: 52
Joined: Dec 2010
Reputation:
0
It's ok i solved it by my self, thanks anyways.