2021-03-19, 05:15 PM
(2021-03-19, 05:02 PM)Kodokushi Wrote:Code:public OnGameModeExit() {
? ? ON_GAMEMODE_EXIT_SAVE = true;
? ? // ..SAVE
? ? return true
}
public OnPlayerDisconnect(playerid, reason) {
? ? if(ON_GAMEMODE_EXIT_SAVE == true)
? ? ? ? return false;
? ? // ..SAVE
? ? return true;
}
I don't know if the values of the variables are kept after gmx, I never used that
If they are, you will have to modify the variable in OnGamemodeInit setting as 'false'.
When the player disconnects I save the data and reset the variables.