25.09.2012, 10:15
Quote:
Can you explain how can I make a top 3 players online with this?
What I'm trying to do is I've made a textdraw which should show 1. [NAME] [MapKills] 2. [NAME] [MapKills] 3. [NAME] [MapKills] You [MapKills] Now, the you part is okay But BUT BUT The 1-2-3 all show ID 0. Now I'm trying to use your include to do it and here's my stock pawn Код:
|
pawn Код:
stock GetSpots()
{
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i)) FeedInfo(i, pStats[i][MapKills]);
}
new rank[3];
for(new i=0;i<3;++i) rank[i] = t_GetPlayer(i+1, 1)//Descending as we wish player with max kills to be first
//Now rank[0] have player whose rank is first, rank[1] with second and so on.
//You can now get PlayerName by using
GetPlayerName(rank[0]..
return 1;
}