[Help]how to make stars in the ranks?
#1

Hi all, how to make stars in the ranks? (GM World War III)
num RankEnum
{
r_name[30],
r_score
};
new gRank[][RankEnum] =
{

{"Newbie", 0},
{"Begginer", 50},
{"Specialist", 100},
{"Super Specialist", 200},
{"Gunnery", 500},
{"Chief", 1000},
{"Master Chief", 1500},
{"Ensign", 2500},
{"Killer", 4500},
{"Lieutenant", 8000},
{"Captain", 10000},
{"Commander", 13000},
{"Major", 15000},
{"Sexy Major", 20000},
{"Brigadier", 25000},
{"General", 40000},
{"Field Marshal", 55000},
{"Killer", 70000},
{"Warlord", 150000},
{"Master Of War", 200000},
{"God Of War", 999999999}
};



GetPlayerRank(playerid)
{
for(new i = 0; i < sizeof(gRank); i++)
{
if(GetPlayerScore(playerid) <= 0)
{
return 0;
}
else if(GetPlayerScore(playerid) >= gRank[(sizeof(gRank) - 1)][r_score])
{
return (sizeof(gRank) - 1);
}
else if(GetPlayerScore(playerid) < gRank[i][r_score])
{
return (i - 1);
}
}
return 0;
}
Reply
#2

You can use textdraw font 0 or 2 and write "]" in your textdraw. This will be shown as a star.
Reply
#3

Quote:
Originally Posted by dominik523
Посмотреть сообщение
You can use textdraw font 0 or 2 and write "]" in your textdraw. This will be shown as a star.
I made it! thank you very much friend, the problem now is that when I complete the score, not a star increases, only increased when I die and not instantly
Reply
#4

Please show us your code.
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)