04.04.2011, 15:36
pawn Код:
stock GetHighestKillCount()
{
new player = -1;
for(new i=0; i<GetMaxPlayers(); i++)
{
if(IsPlayerConnected(i))
{
if(player == -1) player = i;
if(KillCount[i] > KillCount[player])
{
player = i;
}
}
}
return player;
}