Raised This Month: $4 Target: $400
 1% 

Disconnect Reason


Post New Thread Reply   
 
Thread Tools Display Modes
EFFx
Veteran Member
Join Date: Feb 2016
Location: São Paulo, Brasil
Old 02-19-2017 , 16:40   Re: Disconnect Reason
Reply With Quote #71

Dude, he's from USA. If he told that it's correct who'll be against him? A person from 'Street'?
__________________
EFFx is offline
Send a message via Skype™ to EFFx
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 02-19-2017 , 22:27   Re: Disconnect Reason
Reply With Quote #72

Lol, really? Its proper English, chief. Google "I can't imagine" if you don't believe me. It's basically saying "I cannot think of a reason why."

Back on topic.
__________________

Last edited by Bugsy; 02-19-2017 at 22:32.
Bugsy is offline
Schopenhauer
Member
Join Date: Mar 2013
Location: Chicago, Illinois
Old 02-27-2017 , 21:08   Re: Disconnect Reason
Reply With Quote #73

It's not working. Unapproved
__________________
For thousands of years, the Ichthyosaurs flourished in a Hidden Paradise.. until a small group of lost soldiers discovered them, and of course, did what man did best.. Have fun.
https://forums.alliedmods.net/signaturepics/sigpic225149_1.gif
Schopenhauer is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 02-27-2017 , 21:17   Re: Disconnect Reason
Reply With Quote #74

Just tested
__________________
Bugsy is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 02-27-2017 , 21:54   Re: Disconnect Reason
Reply With Quote #75

Can this be done somehow without Orpheu or any other extra module?

I was thinking about hooking the console print sent to the players "X has left the game", but don't know how to do it.
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 02-27-2017 , 22:21   Re: Disconnect Reason
Reply With Quote #76

Do you care how/why the player left? If yes then nothing out of box detects why the disconnect happened.
__________________
Bugsy is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 02-27-2017 , 23:26   Re: Disconnect Reason
Reply With Quote #77

Quote:
Originally Posted by Bugsy View Post
Do you care how/why the player left? If yes then nothing out of box detects why the disconnect happened.
No, not really. I just need a fix to cover all disconnect cases in AMXX 1.8.2 without any extra modules.

But if what I said can be done, the same can be done with the previous same type message(X dropped/timed out, etc) which is printed before "has left the game".
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 02-27-2017 , 23:28   Re: Disconnect Reason
Reply With Quote #78

I don't know how you can differentiate a time out, kick, graceful drop without a non OOTB module.
__________________
Bugsy is offline
georgik57
Veteran Member
Join Date: Oct 2008
Location: 🎧Music World
Old 02-28-2017 , 10:33   Re: Disconnect Reason
Reply With Quote #79

Quote:
Originally Posted by georgik57 View Post
I was thinking about hooking the console print sent to the players "X has left the game"
__________________
georgik57 is offline
Send a message via MSN to georgik57 Send a message via Yahoo to georgik57 Send a message via Skype™ to georgik57
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 02-28-2017 , 17:35   Re: Disconnect Reason
Reply With Quote #80

But that does not tell you why, right? May as well use client_disconnect(). There will always be a delay when a player times out and when client_disconnect() gets called because the game does not know he is gone until he fails to respond for a certain interval -- just the nature of the UDP protocol. I tested this recently and IIRC, it was ~1 minute.
__________________

Last edited by Bugsy; 02-28-2017 at 17:44.
Bugsy is offline
Reply


Thread Tools
Display Modes

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 16:24.


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