Raised This Month: $ Target: $400
 0% 

Client_disconnect trouble


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Andu.
Member
Join Date: Oct 2013
Location: Belgravistan
Old 01-30-2017 , 08:18   Client_disconnect trouble
Reply With Quote #1

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.
Andu. is offline
edon1337
Penguin Enthusiast
Join Date: Jun 2016
Location: Macedonia
Old 01-30-2017 , 08:45   Re: Client_disconnect trouble
Reply With Quote #2

client_disconnect is called on "disconnect" command. I think crash is not called it directly quits somehow.
__________________
edon1337 is offline
Andu.
Member
Join Date: Oct 2013
Location: Belgravistan
Old 01-30-2017 , 10:23   Re: Client_disconnect trouble
Reply With Quote #3

So what can i do?
Andu. is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 01-30-2017 , 10:38   Re: Client_disconnect trouble
Reply With Quote #4

https://forums.alliedmods.net/showthread.php?p=1545485
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
Andu.
Member
Join Date: Oct 2013
Location: Belgravistan
Old 01-30-2017 , 10:58   Re: Client_disconnect trouble
Reply With Quote #5

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?
Andu. is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 01-30-2017 , 11:00   Re: Client_disconnect trouble
Reply With Quote #6

Try if the DR_OTHER do it.
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
Andu.
Member
Join Date: Oct 2013
Location: Belgravistan
Old 01-30-2017 , 11:24   Re: Client_disconnect trouble
Reply With Quote #7

Still not working
Andu. is offline
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 01-30-2017 , 11:33   Re: Client_disconnect trouble
Reply With Quote #8

Did you know that you should have the orpheu module installed and the current plugin's signature?
__________________
• Ranking System • AutoMix 5vs5 System
• Web Ban System • Plugins for free

____________________________________________
For private works:
• Discord: EFFEXo#8850 • Steam: EFFEXo
EFFx is offline
Andu.
Member
Join Date: Oct 2013
Location: Belgravistan
Old 01-30-2017 , 11:49   Re: Client_disconnect trouble
Reply With Quote #9

Yep, i installed orpheu and i put the file in orpheu/functions xD
Andu. is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 01-30-2017 , 18:03   Re: Client_disconnect trouble
Reply With Quote #10

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.
__________________

Last edited by Bugsy; 01-30-2017 at 18:09.
Bugsy is offline
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 20:57.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode