StatsX: Format team score (g_sScore) on demand

This commit is contained in:
Valentin Grünbacher 2014-05-01 15:08:20 +02:00
parent ccd0adb84d
commit f630a8afc8

View File

@ -243,7 +243,6 @@ public plugin_init()
// Init buffers and some global vars. // Init buffers and some global vars.
g_sBuffer[0] = 0 g_sBuffer[0] = 0
save_team_chatscore(0, g_sScore)
g_HudSync_EndRound = CreateHudSyncObj() g_HudSync_EndRound = CreateHudSyncObj()
g_HudSync_SpecInfo = CreateHudSyncObj() g_HudSync_SpecInfo = CreateHudSyncObj()
@ -1143,6 +1142,7 @@ public cmdScore(id)
return PLUGIN_HANDLED return PLUGIN_HANDLED
} }
save_team_chatscore(id, g_sScore)
client_print(id, print_chat, "%L: %s", id, "GAME_SCORE", g_sScore) client_print(id, print_chat, "%L: %s", id, "GAME_SCORE", g_sScore)
return PLUGIN_CONTINUE return PLUGIN_CONTINUE
@ -1588,8 +1588,6 @@ endround_stats()
log_amx("End round stats") log_amx("End round stats")
#endif #endif
save_team_chatscore(0, g_sScore)
// Get and save round end stats time. // Get and save round end stats time.
g_fShowStatsTime = get_gametime() g_fShowStatsTime = get_gametime()