Top 10 killers
#1

Could anyone make or give me a script to find out who are the top 10 killers? I use as variable: kills[playerid];
Reply
#2

http://forum.sa-mp.com/showthread.ph...re#post1002107
Reply
#3

Код:
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)
        }
    }
}
I read ur stuff, but I didnt get it. I get 10 textdraws and it should show the first name (top killer) in Name1 (<-- textdraw) and the second one in Name2 etc. I want a top 10. Could you edit the script for me?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)