Raised This Month: $51 Target: $400
 12% 

[AMXX 5144] FM_ClientDisconnect


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Depresie
Veteran Member
Join Date: Nov 2013
Old 11-16-2017 , 10:29   [AMXX 5144] FM_ClientDisconnect
Reply With Quote #1

I remember we had a fix regarding the old client_disconnect forward which wasn't called in all situations and we got client_disconnected forward as a fix for that

Well, it seems like someone forgot to also update this Fakemeta forward "FM_ClientDisconnect" or at least provide a forward for client disconnect in post which is called in all situations..
__________________
Depresie is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 11-16-2017 , 11:20   Re: [AMXX 5144] FM_ClientDisconnect
Reply With Quote #2

FM_ClientDisconnect is same as client_disconnect. client_disconnected is SV_DropClient.

Fakemeta forwards are same as Ham - there's no additional code to fix something or whatever, those functions are provided by the game/engine.

Last edited by klippy; 11-16-2017 at 11:21.
klippy is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 11-16-2017 , 16:52   Re: [AMXX 5144] FM_ClientDisconnect
Reply With Quote #3

Ahm, i did some tests, and it looks like client_disconnect is actually not FM_ClientDisconnect, or am i missing something ?

When client_disconnect is called the player is still "on the server", for example using get_players in client_disconnect would also catch the disconnecting player, while if i do it in FM_ClientDisconnect pre it won't..
__________________

Last edited by Depresie; 11-16-2017 at 16:54.
Depresie is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 11-16-2017 , 17:05   Re: [AMXX 5144] FM_ClientDisconnect
Reply With Quote #4

pfnClientDisconnect in AMXX is called before it is called in any other AMXX module (meaning fakemeta). client_disconnect will be called right before AMXX marks the player as disconnected, so when it's fakemeta's turn to handle pfnClientDisconnect, the client is already considered disconnected by AMXX.

Last edited by klippy; 11-16-2017 at 17:06.
klippy is offline
Depresie
Veteran Member
Join Date: Nov 2013
Old 11-16-2017 , 17:19   Re: [AMXX 5144] FM_ClientDisconnect
Reply With Quote #5

Thanks Klippy
__________________

Last edited by Depresie; 11-16-2017 at 17:20.
Depresie 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 05:06.


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