20.03.2010, 10:58
Kicking every player just to do a restart may cause some of them to just leave, I don't recommend it at all...
Alright, I had thought maybe OnPlayerDisconnect isn't called during a gamemode reset, so I'd then throw in your save function because it worked for me. If OnPlayerDisconnect is too important & MUST be called before the reset, I have to suggest creating a command that just calls that call back alone which would then be followed by your GMX command manually.
I think in my GMX command, I tried to call OnPlayerDisconnect before the gamemodeexit function, but don't think it worked, but could always try that if you want before making a new command
Alright, I had thought maybe OnPlayerDisconnect isn't called during a gamemode reset, so I'd then throw in your save function because it worked for me. If OnPlayerDisconnect is too important & MUST be called before the reset, I have to suggest creating a command that just calls that call back alone which would then be followed by your GMX command manually.
I think in my GMX command, I tried to call OnPlayerDisconnect before the gamemodeexit function, but don't think it worked, but could always try that if you want before making a new command