From 4afefa25d12d1a4744a8feb98a9407399fda1452 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Valentin=20Gr=C3=BCnbacher?= Date: Thu, 1 May 2014 14:56:01 +0200 Subject: [PATCH] StatsX: Format roundend stats for each player individually --- plugins/cstrike/statsx.sma | 19 +++++++------------ 1 file changed, 7 insertions(+), 12 deletions(-) diff --git a/plugins/cstrike/statsx.sma b/plugins/cstrike/statsx.sma index f0aa8ab1..f3809755 100755 --- a/plugins/cstrike/statsx.sma +++ b/plugins/cstrike/statsx.sma @@ -1399,6 +1399,7 @@ public delay_resethud(args[]) #endif fGameTime = get_gametime() show_user_hudstats(id, fGameTime) + format_roundend_hudstats(id, g_sAwardAndScore) show_roundend_hudstats(id, fGameTime, g_sAwardAndScore) // Reset round stats @@ -1587,6 +1588,11 @@ 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() + for (iPlayer = 0; iPlayer < iPlayers; iPlayer++) { id = iaPlayers[iPlayer] @@ -1595,19 +1601,8 @@ endround_stats() { kill_stats(id) } - } - format_roundend_hudstats(0, g_sAwardAndScore) - - save_team_chatscore(0, g_sScore) - - // Get and save round end stats time. - g_fShowStatsTime = get_gametime() - - // Display round end stats to all players. - for (iPlayer = 0; iPlayer < iPlayers; iPlayer++) - { - id = iaPlayers[iPlayer] + format_roundend_hudstats(id, g_sAwardAndScore) show_roundend_hudstats(id, 0.0, g_sAwardAndScore) }