diff --git a/BossHP/scripting/BossHP_Ranking.sp b/BossHP/scripting/BossHP_Ranking.sp index 66741a9..4fe7867 100644 --- a/BossHP/scripting/BossHP_Ranking.sp +++ b/BossHP/scripting/BossHP_Ranking.sp @@ -277,35 +277,21 @@ public void OnBossKilled(CBoss Boss, CConfig Config, int reason) else PrintToChatAll(sBuffer); - char sBuffer_rest[8192]; for (int i = 0; i <= MaxClients; i++) { if (iSortedList[i][0]) { + char sBuffer_rest[512]; Format(sBuffer_rest, sizeof(sBuffer_rest), "%s\n%i. %N - %d %s", sBuffer_rest, i, iSortedList[i][0], iSortedList[i][1], sType); + PrintToConsoleAll(sBuffer_rest); } - } - for (int i = 0; i <= MaxClients; i++) - { - if (IsValidClient(i) && IsPlayerAlive(i) && ZR_IsClientHuman(i)) + else { - bool inlist = false; - for (int j = 0; j <= MaxClients; j++) - { - if (iSortedList[i][0] && iSortedList[j][0] == i) - { - inlist = true; - break; - } - } - if (!inlist) - { - Format(sBuffer_rest, sizeof(sBuffer_rest), "%s\n-1. %N - Did not shoot.", sBuffer_rest, i); - } + char sBuffer_rest[512]; + Format(sBuffer_rest, sizeof(sBuffer_rest), "%s\n-1. %N - Did not shoot.", sBuffer_rest, i); + PrintToConsoleAll(sBuffer_rest); } } - //printing all damage output to console - PrintToConsoleAll(sBuffer_rest); } } }