Time Cycle?? - Printable Version
+- SA-MP Forums Archive (
https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (
https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (
https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: Time Cycle?? (
/showthread.php?tid=447537)
Time Cycle?? -
NoahF - 30.06.2013
How would I make it so the server cycles from day to night, like in Singleplayer? P.S. Sorry for the numerous threads!!!
Re: Time Cycle?? -
LeeXian99 - 30.06.2013
https://sampwiki.blast.hk/wiki/TogglePlayerClock
Maybe this work.
Re: Time Cycle?? -
NoahF - 30.06.2013
Show/Hide the in-game clock (top right corner) for a specific player. Not what I wanted, but thanks. How would I make it so the SERVER has a time cycle?
Re: Time Cycle?? -
GeniusPobs - 30.06.2013
Use timer to make one.
Re: Time Cycle?? -
NoahF - 30.06.2013
Is there any easier way?
Re: Time Cycle?? -
Twizted - 30.06.2013
https://sampforum.blast.hk/showthread.php?tid=273751
Re: Time Cycle?? -
MP2 - 30.06.2013
Use TogglePlayerClock, but keep the time stored in variable. I suggest you use the timerfix inc/plugin (fixes2 by ******), otherwise you'll be behind by like 10 seconds every minute. This is what I do on my server:
Week starts at 6AM monday. On a one second timer, the time progresses by 1 second (and minutes/hours/days too). When a player spawns, set their time to the one stored in the server.
On my server, the weather changes every 4 hours, and when it changes, every player's time is synced with the server. If you set their weather then a minute later set their time, the weather will change instantly. If you don't want interpolated weather, don't use TogglePlayerClock.
Re: Time Cycle?? -
NoahF - 30.06.2013
I use TogglePlayerClock but the time is going crazy! its going up like 10 minutes every second!