01.10.2014, 10:29
pawn Код:
stock GetAdminRank(playerid)
{
new adminlevelname[128];
if(PlayerStat[playerid][AdminLevel] > 0)
{
if(PlayerStat[playerid][AdminLevel] == 1) { adminlevelname = "Guider"; }
else if(PlayerStat[playerid][AdminLevel] == 2) { adminlevelname = "Senior Guider"; }
else if(PlayerStat[playerid][AdminLevel] == 3) { adminlevelname = "Chief Guider"; }
else if(PlayerStat[playerid][AdminLevel] == 4) { adminlevelname = "Server Monitor"; }
else if(PlayerStat[playerid][AdminLevel] == 5) { adminlevelname = "Junior Staff Member"; }
else if(PlayerStat[playerid][AdminLevel] == 6) { adminlevelname = "General Staff Member"; }
else if(PlayerStat[playerid][AdminLevel] == 7) { adminlevelname = "Senior Staff Member"; }
else if(PlayerStat[playerid][AdminLevel] == 8) { adminlevelname = "Staff Executive"; }
else if(PlayerStat[playerid][AdminLevel] == 9) { adminlevelname = "Staff Director"; }
else if(PlayerStat[playerid][AdminLevel] == 10) { adminlevelname = "Server Director"; }
else if(PlayerStat[playerid][AdminLevel] == 101) { adminlevelname = "Server Director [HoS]"; }
}
else { adminlevelname = "Unassigned Administrator"; }
return adminlevelname;
}