22.07.2012, 09:21
I'm making a TDM script with MySql. I have Money as player's stat and its stored in MySql table. I've scripted a Stats saving function which is called under OnPlayerDisconnect. Its alright when player leaves the game. But when player timesout, OnPlayerDisconnect isnt called and stats arent updated. I dont want to call that function in OnPlayerUpdate 'cause its just a single stat 'Money' and it doesnt needs to be updated so often and i believe it would be buggy and would consume more processing. So is there any other callback or any other way i can save stats after some time or when player timesout?
Any help would be appreciated.
Any help would be appreciated.