From 15bd719cf54484acc31597122278fcd3eb710971 Mon Sep 17 00:00:00 2001 From: David Anderson Date: Tue, 5 Apr 2005 14:48:06 +0000 Subject: [PATCH] FireStorm's fix --- plugins/dod/stats_logging.sma | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/dod/stats_logging.sma b/plugins/dod/stats_logging.sma index 7dab0da8..60c428c8 100755 --- a/plugins/dod/stats_logging.sma +++ b/plugins/dod/stats_logging.sma @@ -15,7 +15,7 @@ public plugin_init() register_plugin("Stats Logging",AMXX_VERSION_STR,"AMXX Dev Team") public client_disconnect(id) { - if ( is_user_bot( id ) || !isDSMActive() ) return PLUGIN_CONTINUE + if ( is_user_bot( id ) || !is_user_connected(id) || !isDSMActive() ) return PLUGIN_CONTINUE remove_task( id ) new szTeam[16],szName[32],szAuthid[32], iStats[9], iHits[8], szWeapon[16] new iUserid = get_user_userid( id )