Posts: 791
Threads: 93
Joined: Oct 2009
Reputation:
0
From my point this is a serious bug. Calling rcon function `gmx` OnPlayerDisconnect would be taken first which is my problem, but with function `exit` OnPlayerDisconnect gets called second so no problems and worries.
I don`t want to explane whole problem. I am just looking for solution to detect `gmx` before OnPlayerDisconnent gets called.
Posts: 791
Threads: 93
Joined: Oct 2009
Reputation:
0
That is the reason - if server restarts via console?
@meta Think before posting.
So we can make a little suggestion @ OnPlayerDisconnect add one more reason (Server crashed/shutting down/restarting)
Posts: 2,082
Threads: 118
Joined: Jan 2010
Reputation:
0
It would be my approach, just to make an alternative command, and pass variables to OnPlayerDisconnect
Posts: 791
Threads: 93
Joined: Oct 2009
Reputation:
0
OMG just get the f. off this thread if you dont want to post something realy useful, stop collecting post ammount.
@ ****** - Miguel wrote an exclusive example. Although if I use array to store players name, all information would go wrong...
Posts: 554
Threads: 49
Joined: Feb 2007
I had the same problem.. Just make new callback called OPB and put OnPlayerDisconnect code under there. put OPB under OnPlayerDisconnect and OnGameModeExit.