Client_disconnect trouble
Hello, why client_disconnect(id) is not called when a player crashes, is there a way that can be solved?
I'm using amxmodx 1.8.2. Thank you. |
Re: Client_disconnect trouble
client_disconnect is called on "disconnect" command. I think crash is not called it directly quits somehow.
|
Re: Client_disconnect trouble
So what can i do?
|
Re: Client_disconnect trouble
|
Re: Client_disconnect trouble
Where i hosted my server i have gamecp and there i restart my server. After i restart it client_disconnect is not called, is there a forward who's called before server shutdown or something?
|
Re: Client_disconnect trouble
Try if the DR_OTHER do it.
|
Re: Client_disconnect trouble
Still not working
|
Re: Client_disconnect trouble
Did you know that you should have the orpheu module installed and the current plugin's signature?
|
Re: Client_disconnect trouble
Yep, i installed orpheu and i put the file in orpheu/functions xD
|
Re: Client_disconnect trouble
You're not doing anything wrong and I don't think this can be handled directly with client_disconnect() or Disconnect Reason. The problem is the user disappears/drops off and the server does not immediately realize it. Eventually it realizes it has not gotten any responses from the user after X time/attempts so it then calls client_disconnect()...by this time the player is long gone. I just tested a similar scenario where I joined a game and then terminated my HL.exe process. It took 1 minute and 9 seconds for the server to drop me.
You can try to find a function that pings a player using orpheu and react based on the response, or lack thereof. |
| All times are GMT -4. The time now is 20:57. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.