i think you want it for cs:
Code:
getMostKills( CsTeams:team )
{
new maxPlayers = get_maxplayers();
new mostkills[2] = { 0, 0 }; // 0 = id, 1 = frags
for( new i = 1; i <= maxPlayers; i++ )
{
if( !is_user_connected( i ) || cs_get_user_team( i ) != team )
continue;
new frags = get_user_frags( i );
if( frags > mostkills[1] )
{
mostkills[1] = frags;
mostkills[0] = i;
}
}
return mostkills[0];
}
I didn't tried it, so use it at you own risk
edit:
v3x why are you always so fast?