SA-MP Forums Archive
[Help]how to make stars in the ranks? - Printable Version

+- SA-MP Forums Archive (https://sampforum.blast.hk)
+-- Forum: SA-MP Scripting and Plugins (https://sampforum.blast.hk/forumdisplay.php?fid=8)
+--- Forum: Scripting Help (https://sampforum.blast.hk/forumdisplay.php?fid=12)
+--- Thread: [Help]how to make stars in the ranks? (/showthread.php?tid=576486)



[Help]how to make stars in the ranks? - Okrs - 04.06.2015

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;
}


Re: [Help]how to make stars in the ranks? - dominik523 - 04.06.2015

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


Respuesta: Re: [Help]how to make stars in the ranks? - Okrs - 04.06.2015

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


Re: [Help]how to make stars in the ranks? - dominik523 - 05.06.2015

Please show us your code.