Raised This Month: $ Target: $400
 0% 

Client_disconnect trouble


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
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
 



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