06.12.2009, 16:34
Title says it all, Iґve got the var kills[MAX_PLAYERS] and want to find the person with the most kills out.
new max;
for(new idx = 0; idx < MAX_PLAYERS; idx++)
{
if(kills[idx] > max)
{
max = kills[idx];
}
}
new Mkillsid=0;
for(new i=0; i<=MAX_PLAYERS; i++)if(IsPlayerConnected(i))if(kills[i]>kills[Mkillsid])Mkillsid=i;