27.03.2013, 03:15
I need a text draw to appear just right below the wanted stars.
I just wanted it to appear as "Rank: Generel" or whatever.
This is the rank variable.
Rank stock.
I just wanted it to appear as "Rank: Generel" or whatever.
This is the rank variable.
pawn Код:
RankName(playerid)
Rank stock.
pawn Код:
stock Rank(playerid)
{
new rank;
if (GetPlayerScore(playerid) >= 0 && GetPlayerScore(playerid) < RANK2) rank = 1;
else if(GetPlayerScore(playerid) >= RANK2 && GetPlayerScore(playerid) < RANK3) rank = 2;
else if(GetPlayerScore(playerid) >= RANK3 && GetPlayerScore(playerid) < RANK4) rank = 3;
else if(GetPlayerScore(playerid) >= RANK4 && GetPlayerScore(playerid) < RANK5) rank = 4;
else if(GetPlayerScore(playerid) >= RANK5 && GetPlayerScore(playerid) < RANK6) rank = 5;
else if(GetPlayerScore(playerid) >= RANK6 && GetPlayerScore(playerid) < RANK7) rank = 6;
else if(GetPlayerScore(playerid) >= RANK7 && GetPlayerScore(playerid) < RANK8) rank = 7;
else if(GetPlayerScore(playerid) >= RANK8 && GetPlayerScore(playerid) < RANK9) rank = 8;
else if(GetPlayerScore(playerid) >= RANK9 && GetPlayerScore(playerid) < RANK10) rank = 9;
else if(GetPlayerScore(playerid) >= RANK10 && GetPlayerScore(playerid) < RANK11) rank = 10;
else if(GetPlayerScore(playerid) >= RANK11 && GetPlayerScore(playerid) < RANK12) rank = 11;
else if(GetPlayerScore(playerid) >= RANK12 && GetPlayerScore(playerid) < RANK13) rank = 12;
else if(GetPlayerScore(playerid) >= RANK13 && GetPlayerScore(playerid) < RANK14) rank = 13;
else if(GetPlayerScore(playerid) >= RANK14 && GetPlayerScore(playerid) < RANK15) rank = 14;
return rank;
}