Raised This Month: $ Target: $400
 0% 

hook mapchange before client_disconnect


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
sparkey
Senior Member
Join Date: May 2010
Old 08-07-2011 , 21:25   hook mapchange before client_disconnect
Reply With Quote #1

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:
register_srvcmd("changelevel""call_mapchange");

register_forward(FM_ChangeLevel"call_mapchange");

register_forward(FM_ServerDeactivate"call_mapchange"); 
best regards
sparkey 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 03:20.


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