Quote:
Originally Posted by Bacardi
...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.
|
Thanks I changed it now,
Quote:
Originally Posted by Bacardi
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
|
Thanks for the tips, yeah I should have changed that cause it showed even some spec kills when they go afk, excellent
Bacardi
Quote:
Originally Posted by Bacardi
This look nonsense, what happened here ?
|
Me neither
, I'm not familiar with it, what my end result which is working at least
< I'm sure its not the best way > is like this, when round end it will print in this way:
MVP SI Kills: Mike (12)
MVP Boss Kills: Sara (2)
only the one with highest value and ignoring the rest of players with lower value
__________________