29.12.2017, 09:04
I guess I explained a bit wrong.
Well using
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.
Well using
Код:
new hours, minutes; gettime(hours, minutes); SetPlayerTime(playerid, minutes);
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.