SA-MP Forums Archive
Server restart and makes problems! - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+---- Forum: Help Archive (https://sampforum.blast.hk/forumdisplay.php?fid=89)
+---- Thread: Server restart and makes problems! (/showthread.php?tid=251158)



Server restart and makes problems! - Panormitis - 25.04.2011

So guys, my server sometimes restart automatic and when my players is in game and have make money after the restart they lose the money that have collect the period between loging in game and restar. Is there any way to make the money save when the server restart and no people lose their money? What can effect the gamemode and it restart alone?? Filterscripts


Re: Server restart and makes problems! - Admigo - 25.04.2011

Same here:S


Re: Server restart and makes problems! - Emmet_ - 25.04.2011

I found what you're looking for:

https://sampforum.blast.hk/showthread.php?tid=250369

This will call 'OnPlayerDisconnect' when a server restart is initiated (I suppose you save stats in that callback). A server restart done from RCON doesn't call it. This gmxfix will call it, that way, all stats (money, too) saves! Credits to ******.