AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Client_disconnect trouble (https://forums.alliedmods.net/showthread.php?t=293363)

Andu. 01-30-2017 08:18

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.

edon1337 01-30-2017 08:45

Re: Client_disconnect trouble
 
client_disconnect is called on "disconnect" command. I think crash is not called it directly quits somehow.

Andu. 01-30-2017 10:23

Re: Client_disconnect trouble
 
So what can i do?

EFFx 01-30-2017 10:38

Re: Client_disconnect trouble
 
https://forums.alliedmods.net/showthread.php?p=1545485

Andu. 01-30-2017 10:58

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?

EFFx 01-30-2017 11:00

Re: Client_disconnect trouble
 
Try if the DR_OTHER do it.

Andu. 01-30-2017 11:24

Re: Client_disconnect trouble
 
Still not working

EFFx 01-30-2017 11:33

Re: Client_disconnect trouble
 
Did you know that you should have the orpheu module installed and the current plugin's signature?

Andu. 01-30-2017 11:49

Re: Client_disconnect trouble
 
Yep, i installed orpheu and i put the file in orpheu/functions xD

Bugsy 01-30-2017 18:03

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.