[HELP] Sort scoreboard by score!
#2

if i understand you, tou want to check the player who has the biggest score:

i'l build for you stock

Код:
stock GetHighestScore()
{
    new score,player;
    for(new i; i<MAX_PLAYERS; i++) if(IsPlayerConnected(i)) if(GetPlayerScore(i) > score) score  = GetPlayerScore(i),player = i;
    return player;
}
and if you want to check the player with the highest score:

Код:
new highscoreplayer = GetHighestScore();
and in the highscoreplayer it has the id of the player with the highest score..
Reply


Messages In This Thread
[HELP] Sort scoreboard by score! - by anito - 19.08.2012, 11:40
Re: [HELP] Sort scoreboard by score! - by avivelkayam - 19.08.2012, 12:41

Forum Jump:


Users browsing this thread: 2 Guest(s)