Posts: 89
Threads: 23
Joined: Jun 2013
Reputation:
0
How to save player stats after auto restart/normal restart/gmx restart?
I did register system but it's not save my stats when the server make a auto restart or I do the restart...
+Rep to helper!
Posts: 241
Threads: 18
Joined: Oct 2013
Reputation:
0
Just loop through all the players and save their stats OnGameModeExit
EDIT: another solution would be if you have a scripted command to reset the server you can save the players stats here too
Posts: 109
Threads: 19
Joined: Jun 2015
Reputation:
0
We need to see your codes to know why they don't change
Also We can't know how your game mode work to help you to code it. (Variables and so on)
Also this section isn't for requesting a script.
Posts: 47
Threads: 3
Joined: Feb 2017
Reputation:
0
What you can simply do is just create a function that kicks every player right before you shut down the server.
This will force every player to endure the "OnPlayerDisconnect" code.
Meaning, they will have their stats force-saved in a way.
Posts: 70
Threads: 1
Joined: May 2017
Create a stock to save player statistics, Then refer it to OnGameModeExit, It will be automatically saved if the player connected, You can also make OnGameModeExit refer to OnPlayerDisconnect, There are much ways to save it out.