22.09.2016, 14:22
And what if the player crashes, his electricity shuts down, internet fails or a strange script opcode occurs? The player will have to wait 3 hours in-game again since his time will be reset to 0 once he connects again.
If you use a 1 minute timer and save the player time you will avoid this. Perhaps, if you don't want a timer just save the time played when a player disconnects, but you will not be able to check when a player reaches exactly 3 hours since you're not using a timer. You must use one in order to make it work properly.
If you use a 1 minute timer and save the player time you will avoid this. Perhaps, if you don't want a timer just save the time played when a player disconnects, but you will not be able to check when a player reaches exactly 3 hours since you're not using a timer. You must use one in order to make it work properly.