Raised This Month: $ Target: $400
 0% 

client_disconnect firing on mapchange?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
supergreg
Senior Member
Join Date: Jul 2007
Location: Oslo, Norway
Old 06-11-2009 , 18:08   client_disconnect firing on mapchange?
Reply With Quote #1

Well, I assume it does not. Thing is I am currently using client_disconnect to trigger a function which stores the users played time in a mysql database - Great Success!

Suddenly it hit me, what happens on mapchange? Do I need to make sure to fire that same db-storage function for every player on each mapchange to ensure that the db receives all played time? Which event do I hook into to do this?

Thanks again for helping a newbie
supergreg is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 06-11-2009 , 18:09   Re: client_disconnect firing on mapchange?
Reply With Quote #2

client_disconnect() will get called on players @ mapchange.
__________________
Bugsy is offline
supergreg
Senior Member
Join Date: Jul 2007
Location: Oslo, Norway
Old 06-11-2009 , 18:43   Re: client_disconnect firing on mapchange?
Reply With Quote #3

Excellent news! I already love that function. Thanks!
supergreg 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 14:04.


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