From f630a8afc8be6b3f6e9f693a8bd9ab33552dd305 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Valentin=20Gr=C3=BCnbacher?= Date: Thu, 1 May 2014 15:08:20 +0200 Subject: [PATCH] StatsX: Format team score (g_sScore) on demand --- plugins/cstrike/statsx.sma | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/plugins/cstrike/statsx.sma b/plugins/cstrike/statsx.sma index 43ad801b..f2cb2862 100755 --- a/plugins/cstrike/statsx.sma +++ b/plugins/cstrike/statsx.sma @@ -243,7 +243,6 @@ public plugin_init() // Init buffers and some global vars. g_sBuffer[0] = 0 - save_team_chatscore(0, g_sScore) g_HudSync_EndRound = CreateHudSyncObj() g_HudSync_SpecInfo = CreateHudSyncObj() @@ -1143,6 +1142,7 @@ public cmdScore(id) return PLUGIN_HANDLED } + save_team_chatscore(id, g_sScore) client_print(id, print_chat, "%L: %s", id, "GAME_SCORE", g_sScore) return PLUGIN_CONTINUE @@ -1588,8 +1588,6 @@ endround_stats() log_amx("End round stats") #endif - save_team_chatscore(0, g_sScore) - // Get and save round end stats time. g_fShowStatsTime = get_gametime()