09.04.2012, 08:09
===> I made this rank system cmd. But i am little confusing. I want like If you Have Score = 0 or greater than it than your rank will rookie.
2- If score will equal to 150 or greater than it than your rank will private.
3- If score will equal to 250 or greater than it than your rank will corporal.
4- If score will equal to 350 or greater than it than your rank will sergeant.
5- If score will equal to 500 or greater than it than your rank will Captain.
6- If score will equal to 750 or greater than it than your rank will Bargadier.
7- If score will equal to 1200 or greater than it than your rank will general.
8- If score will equal to 2000 or greater than it than your rank will Commander.
2- If score will equal to 150 or greater than it than your rank will private.
3- If score will equal to 250 or greater than it than your rank will corporal.
4- If score will equal to 350 or greater than it than your rank will sergeant.
5- If score will equal to 500 or greater than it than your rank will Captain.
6- If score will equal to 750 or greater than it than your rank will Bargadier.
7- If score will equal to 1200 or greater than it than your rank will general.
8- If score will equal to 2000 or greater than it than your rank will Commander.
pawn Код:
CMD:rank(playerid,params[])
{
if(GetPlayerScore(playerid) > 0 )
{
SendClientMessage(playerid,GREEN,"Your rank is Rookie!");
}
if(GetPlayerScore(playerid) > 150)
{
SendClientMessage(playerid,GREEN,"Your rank is Private!");
}
if(GetPlayerScore(playerid) > 250)
{
SendClientMessage(playerid,GREEN,"Your rank is Corporal!");
}
if(GetPlayerScore(playerid) > 350)
{
SendClientMessage(playerid,GREEN,"Your rank is Sergeant!");
}
if(GetPlayerScore(playerid) > 500)
{
SendClientMessage(playerid,GREEN,"Your rank is Captain!");
}
if(GetPlayerScore(playerid) > 750)
{
SendClientMessage(playerid, GREEN,"Your rank is Bergadier!");
}
if(GetPlayerScore(playerid) > 1200)
{
SendClientMessage(playerid, GREEN,"Your rank is General!");
}
else if(GetPlayerScore(playerid) >= 2000)
{
SendClientMessage(playerid,GREEN,"Your rank is Commander!");
}
return 1;
}