04.04.2011, 14:12
Could anyone make or give me a script to find out who are the top 10 killers? I use as variable: kills[playerid];
new TotalScores[15];
new PlayerScore[2];
for(new player;player<MAX_PLAYERS;player++)
{
PlayerScore[0]=GetPlayerScore(player);
for(new place;place<sizeof(TotalScores);place++)
{
if(PlayerScore[0]>TotalScores[place])
{
strins(TotalScores,PlayerScore,place);
place=sizeof(TotalScores); //Stop the second loop (place)
}
}
}