05.10.2011, 22:37
When you close the server with rcon "exit" OnPlayerDisconnect isn't called for players.
new
x;
while (x<500) {
if (x!=(0xFFFF)) {
CallRemoteFunction("OnPlayerDisconnect", "i", x);
}
++ x;
}
public OnGameModeExit() {
new x;
while (x<500) {
if (x!=(0xFFFF)) {
CallRemoteFunction("OnPlayerDisconnect", "i", x);
}
++ x;
}
}