Leaderboard[kills]
#6

It should be something like this
Add this on the top:

pawn Код:
new place[MAX_PLAYERS];
new out[MAX_PLAYERS];
And this is how you get the place of a player:

pawn Код:
for(new i=0; i < MAX_PLAYERS; i++)
{
out[i] = 0:
}

new places = 1;
for(new p =0; p < MAX_PLAYERS; p++)
{
new kills = 0;
for(new i = 0; i < MAX_PLAYERS; i ++)
{
if(out[i] != 1)
{
if(roundkills[i] >= kills)
{
kills = roundkills[i];
place[i] = places;
out[i] = 1;
places ++;
}
}
}
}
U know everyone rank now all what u need to do is add them to the textdraw

For example if you want to sendclientmessage to the player that are on 6th place

pawn Код:
for(new i=0; i<MAX_PLAYERS; i++)
{
if(place[i] == 6)
{
SendClientMessage(i,-1,"bla boa");
}
}
P.S haven't tested it if there's any errors tell me
Reply


Messages In This Thread
Leaderboard[kills] - by DavidBilla - 28.05.2014, 09:33
Re: Leaderboard[kills] - by DavidBilla - 28.05.2014, 17:18
Re: Leaderboard[kills] - by DavidBilla - 29.05.2014, 09:50
Re: Leaderboard[kills] - by Matess - 29.05.2014, 10:10
Re: Leaderboard[kills] - by DavidBilla - 29.05.2014, 17:15
Re: Leaderboard[kills] - by JFF - 29.05.2014, 19:52
Re: Leaderboard[kills] - by R0 - 29.05.2014, 20:09
Re: Leaderboard[kills] - by FeniX70 - 30.03.2015, 02:10
Re: Leaderboard[kills] - by SickAttack - 30.03.2015, 02:15

Forum Jump:


Users browsing this thread: 1 Guest(s)