...tips
Code:
public void Event_RoundStart(Event event, const char[] name, bool dontBroadcast)
{
g_bRoundEnd = false;
for (int i = 1; i <= MaxClients; i++)
{
if (IsClientInGame(i))
{
SI_KillCount [i] = 0;
Boss_KillCount [i] = 0;
}
}
}
Why not reset
whole array, either client is in game or not.
Code:
for (client = 1; client <= MaxClients; client++)
{
if (!IsClientInGame(client) || GetClientTeam(client) == 3) continue;
players_clients[players] = client;
players++;
}
... I don't remember L4D teams, but now you exlude clients from that team only. What about spectators ?
Should it be
GetClientTeam(client) != 2, if any another team than index 2
This look nonsense, what happened here ?
Code:
SortCustom1D(players_clients, players, SortDescending);
{
client = players_clients [0];
SI_KillCount_MVP = SI_KillCount [client];
PrintToChatAll("MVP SI Kills: %N (%d)", client, SI_KillCount_MVP);
}
SortCustom1D(players_clients, players, SortDescending);
{
client = players_clients [0];
Boss_KillCount_MVP = Boss_KillCount [client];
PrintToChatAll("MVP Boss Kills: %N (%d)", client, Boss_KillCount_MVP);
}
}
__________________