06.10.2011, 03:20
I'm not sure if it's supposed to call OnPlayerDisconnect, as it's meant to shut the server down (like you're doing maintenance). It's the same as cmd.exe. If you type 'exit' in the console, it will close. Happens with SA:MP servers too. However, you can try this:
It will call OnPlayerDisconnect when the callback is called (it's called on rcon gmx, rcon exit)...
pawn Код:
public OnGameModeExit() {
new x;
while (x<500) {
if (x!=(0xFFFF)) {
CallRemoteFunction("OnPlayerDisconnect", "i", x);
}
++ x;
}
}