hook mapchange before client_disconnect
Hello,
Is there any way to hook a mapchange event before the client_disconnect function is called? I only want code to be executed if the client is really retrying or disconnecting and not if the map is changed. I have tried with the following events but none of them seems to be hooked before the client_disconnect function. PHP Code:
|
Re: hook mapchange before client_disconnect
plugin_end()
|
Re: hook mapchange before client_disconnect
Quote:
|
Re: hook mapchange before client_disconnect
as for the amxx design, client_disconnect is always executed before other forwards in server deactivating. Although FM_ServerDeactivate should be executed before client_disconnect(), but fakemeta executes after amxx core, so it still be executed even after plugin_end(). You can edit meta_api.cpp in amxx, add a forward yourself, right before client_disconnect forward in C_ServerDeactivate function.
|
Re: hook mapchange before client_disconnect
Thanks alot!
|
Re: hook mapchange before client_disconnect
Doesn't SVC_INTERMISSION also call before the map ends, just when the scoreboard is forced upon clients ?
|
Re: hook mapchange before client_disconnect
Quote:
|
| All times are GMT -4. The time now is 03:20. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.