Setting admins
#2

not sure about this but try it
PHP код:
stock GetAdminRank(playerid)
{
    new 
Rank[60];
    if(
PlayerStat[playerid][AdminLevel] > 0)
    {
        if(
PlayerStat[playerid][AdminLevel] == 1format(Ranksizeof(Rank), "Guider");
        else if(
PlayerStat[playerid][AdminLevel] == 2format(Ranksizeof(Rank), "Senior Guider");
        else if(
PlayerStat[playerid][AdminLevel] == 3format(Ranksizeof(Rank), "Chief Guider");
        else if(
PlayerStat[playerid][AdminLevel] == 4format(Ranksizeof(Rank), "Server Monitor");
        else if(
PlayerStat[playerid][AdminLevel] == 5format(Ranksizeof(Rank), "Junior Staff Member");
        else if(
PlayerStat[playerid][AdminLevel] == 6format(Ranksizeof(Rank), "General Staff Member");
        else if(
PlayerStat[playerid][AdminLevel] == 7format(Ranksizeof(Rank), "Senior Staff Member");
        else if(
PlayerStat[playerid][AdminLevel] == 8format(Ranksizeof(Rank), "Staff Executive");
        else if(
PlayerStat[playerid][AdminLevel] == 9format(Ranksizeof(Rank), "Staff Director");
        else if(
PlayerStat[playerid][AdminLevel] == 10format(Ranksizeof(Rank), "Server Director");
        else if(
PlayerStat[playerid][AdminLevel] == 101format(Ranksizeof(Rank), "Server Director [HoS]");
    }
    else
    {
        
Rank "Unassigned Administrator";
    }
    return 
Rank;

and please tell me how you set admin level if it doesn't work
Reply


Messages In This Thread
Setting admins - by Josh_Main - 01.10.2014, 10:10
Re: Setting admins - by amirab - 01.10.2014, 10:20
Re: Setting admins - by Josh_Main - 01.10.2014, 10:26
Re: Setting admins - by ReD_HunTeR - 01.10.2014, 10:29
Re: Setting admins - by Josh_Main - 01.10.2014, 10:35
Re: Setting admins - by thefatshizms - 01.10.2014, 10:37
Re: Setting admins - by Josh_Main - 01.10.2014, 10:38
Re: Setting admins - by MillenniumG - 01.10.2014, 11:12
Re: Setting admins - by Josh_Main - 01.10.2014, 11:44
Re: Setting admins - by MillenniumG - 01.10.2014, 12:59

Forum Jump:


Users browsing this thread: 1 Guest(s)