[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


Messages In This Thread
[Help]how to make stars in the ranks? - by Okrs - 04.06.2015, 17:01
Re: [Help]how to make stars in the ranks? - by dominik523 - 04.06.2015, 17:09
Respuesta: Re: [Help]how to make stars in the ranks? - by Okrs - 04.06.2015, 19:50
Re: [Help]how to make stars in the ranks? - by dominik523 - 05.06.2015, 07:37

Forum Jump:


Users browsing this thread: 1 Guest(s)