rcon exit
#1

When you close the server with rcon "exit" OnPlayerDisconnect isn't called for players.
Reply
#2

Look at your signature.
Reply
#3

Maybe use:

pawn Код:
new
    x;
while (x<500) {
    if (x!=(0xFFFF)) {
        CallRemoteFunction("OnPlayerDisconnect", "i", x);
    }
    ++ x;
}
Reply
#4

It is still a bug and that is why I reported it!
Reply
#5

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:

pawn Код:
public OnGameModeExit() {
    new x;
    while (x<500) {
        if (x!=(0xFFFF)) {
            CallRemoteFunction("OnPlayerDisconnect", "i", x);
        }
        ++ x;
    }
}
It will call OnPlayerDisconnect when the callback is called (it's called on rcon gmx, rcon exit)...
Reply
#6

OnPlayerDisconnect is already called on gmx so using that would call it twice for each player.
Reply
#7

The rcon exit function kills the console, so it's not actually going to call anything after that. It's the same concept if you just press close on the server console. As Emmet said, you can easily script a way around this.
Reply
#8

https://sampforum.blast.hk/showthread.php?tid=250369
Yeah.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)