AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   client_disconnect firing on mapchange? (https://forums.alliedmods.net/showthread.php?t=94476)

supergreg 06-11-2009 18:08

client_disconnect firing on mapchange?
 
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! :crab:

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 :)

Bugsy 06-11-2009 18:09

Re: client_disconnect firing on mapchange?
 
client_disconnect() will get called on players @ mapchange.

supergreg 06-11-2009 18:43

Re: client_disconnect firing on mapchange?
 
Excellent news! I already love that function. Thanks!


All times are GMT -4. The time now is 14:04.

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