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'.