How to make only logged player saving stats.. :)
#4

basically yes, but as i dont know what the 2 functions are supposed to do for sure i cant tell you, its up to you...
Also, try to avoid timers for "huge" processes like player savings.
I assume that you loop through all connected players once every 15 minutes to save their data AT THE SAME time.
I would suggest to use gettime(); (returns the current timestamp) e.g. under OnPlayerSpawn and check there if 15 minutes have already passed since the last saving.
In that manner you would avoid a timer and also what is more important avoiding the circumstance that the data of all players is saved at the "exact" same moment.
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)