01.10.2014, 10:20
not sure about this but try it
and please tell me how you set admin level if it doesn't work
PHP код:
stock GetAdminRank(playerid)
{
new Rank[60];
if(PlayerStat[playerid][AdminLevel] > 0)
{
if(PlayerStat[playerid][AdminLevel] == 1) format(Rank, sizeof(Rank), "Guider");
else if(PlayerStat[playerid][AdminLevel] == 2) format(Rank, sizeof(Rank), "Senior Guider");
else if(PlayerStat[playerid][AdminLevel] == 3) format(Rank, sizeof(Rank), "Chief Guider");
else if(PlayerStat[playerid][AdminLevel] == 4) format(Rank, sizeof(Rank), "Server Monitor");
else if(PlayerStat[playerid][AdminLevel] == 5) format(Rank, sizeof(Rank), "Junior Staff Member");
else if(PlayerStat[playerid][AdminLevel] == 6) format(Rank, sizeof(Rank), "General Staff Member");
else if(PlayerStat[playerid][AdminLevel] == 7) format(Rank, sizeof(Rank), "Senior Staff Member");
else if(PlayerStat[playerid][AdminLevel] == 8) format(Rank, sizeof(Rank), "Staff Executive");
else if(PlayerStat[playerid][AdminLevel] == 9) format(Rank, sizeof(Rank), "Staff Director");
else if(PlayerStat[playerid][AdminLevel] == 10) format(Rank, sizeof(Rank), "Server Director");
else if(PlayerStat[playerid][AdminLevel] == 101) format(Rank, sizeof(Rank), "Server Director [HoS]");
}
else
{
Rank = "Unassigned Administrator";
}
return Rank;
}