28.12.2017, 21:51
What it basically do is get the real time (the server's host location) - it stores the returned hour & minute time of the server's host location real time into a variable. You use that variable to set a player's game time using the SetPlayerTime function.
Placing it on a timer or OnPlayerUpdate callback will cause you no hassle or troubles as no matter what you do, set the player time manually with a cmd etc. it will set back to the server's real time hence why I recommend you to put it on a timer or OnPlayerUpdate.
Placing it on a timer or OnPlayerUpdate callback will cause you no hassle or troubles as no matter what you do, set the player time manually with a cmd etc. it will set back to the server's real time hence why I recommend you to put it on a timer or OnPlayerUpdate.