19.08.2012, 12:41
if i understand you, tou want to check the player who has the biggest score:
i'l build for you stock
and if you want to check the player with the highest score:
and in the highscoreplayer it has the id of the player with the highest 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; }
Код:
new highscoreplayer = GetHighestScore();