14.01.2015, 15:27
I want to know the names of police levels like:
cheif 10
And other ?
cheif 10
And other ?
stock GetPlayerPoliceRank(playerid)
{
new arank[128];
switch(YourPoliceVariable)
{
case 10: arank = "Chief";
case 9: arank = "Name Rank 9";
case 8: arank = "Name Rank 8";
// Continue (....)
case 1: arank = "Name Rank 1";
default: arank = "None";
}
return arank;
}
CMD:rank(playerid, params[])
{
new string[60];
format(string, sizeof(string), "Your Police Level it's: %s.", GetPlayerPoliceRank(playerid));
SendClientMessage(playerid, -1, string);
return 1;
}