probably good enough for displaying in console who shot and who did not
This commit is contained in:
parent
fd32ddc101
commit
921ae4e136
@ -277,36 +277,22 @@ public void OnBossKilled(CBoss Boss, CConfig Config, int reason)
|
|||||||
else
|
else
|
||||||
PrintToChatAll(sBuffer);
|
PrintToChatAll(sBuffer);
|
||||||
|
|
||||||
char sBuffer_rest[8192];
|
|
||||||
for (int i = 0; i <= MaxClients; i++)
|
for (int i = 0; i <= MaxClients; i++)
|
||||||
{
|
{
|
||||||
if (iSortedList[i][0])
|
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);
|
Format(sBuffer_rest, sizeof(sBuffer_rest), "%s\n%i. %N - %d %s", sBuffer_rest, i, iSortedList[i][0], iSortedList[i][1], sType);
|
||||||
}
|
|
||||||
}
|
|
||||||
for (int i = 0; i <= MaxClients; i++)
|
|
||||||
{
|
|
||||||
if (IsValidClient(i) && IsPlayerAlive(i) && ZR_IsClientHuman(i))
|
|
||||||
{
|
|
||||||
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);
|
|
||||||
}
|
|
||||||
}
|
|
||||||
}
|
|
||||||
//printing all damage output to console
|
|
||||||
PrintToConsoleAll(sBuffer_rest);
|
PrintToConsoleAll(sBuffer_rest);
|
||||||
}
|
}
|
||||||
|
else
|
||||||
|
{
|
||||||
|
char sBuffer_rest[512];
|
||||||
|
Format(sBuffer_rest, sizeof(sBuffer_rest), "%s\n-1. %N - Did not shoot.", sBuffer_rest, i);
|
||||||
|
PrintToConsoleAll(sBuffer_rest);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user