Server Time = Real Time
#7

I guess I explained a bit wrong.
Well using
Код:
	new hours, minutes;
	gettime(hours, minutes);
	SetPlayerTime(playerid, minutes);
is fine to sync the player time with server time. Even gl_realtime would do the job, but I wanted that if player uses the command /time, it continues from there, and the above 2 methods wont let it be, they'll sync the time continuously.
Then I thought of using a timer on the above code and killing the timer when "/time" has been used but then that would again continue as 1 server minute = 1 real second which I don't really want.

Is there another way to do it?
If not, I guess we can just get the real minutes and set just the minutes. That would even continue if player uses /time.. But how can I set just the minutes?

I don't want the time to sync between the players. I just want that the day cycles in 24 hours.
Reply


Messages In This Thread
Server Time = Real Time - by TahaMhr - 28.12.2017, 21:27
Re: Server Time = Real Time - by JaKe Elite - 28.12.2017, 21:36
Re: Server Time = Real Time - by TahaMhr - 28.12.2017, 21:46
Re: Server Time = Real Time - by JaKe Elite - 28.12.2017, 21:51
Re: Server Time = Real Time - by Lucases - 28.12.2017, 21:53
Re: Server Time = Real Time - by Sew_Sumi - 28.12.2017, 22:18
Re: Server Time = Real Time - by TahaMhr - 29.12.2017, 09:04
Re: Server Time = Real Time - by Sew_Sumi - 29.12.2017, 18:24
Re: Server Time = Real Time - by TahaMhr - 30.12.2017, 20:14
Re: Server Time = Real Time - by Sew_Sumi - 30.12.2017, 22:16

Forum Jump:


Users browsing this thread: 4 Guest(s)