Admin level/ranks
#4

Код:
if (strcmp("/admins", cmdtext, true, 10) == 0)
{
  	new count, bool:online, string[128], AdminRank[70], name[24];
    for(new i,g=GetMaxPlayers(); i < g; i++)
    {
        if(IsPlayerConnected(i))
        {
            if(1 <= pAdminLevel[i]/*<<<Change this var to yours*/ <= 99999)
            {


	                on‌line = true;
	                switch(pAdminLevel[i]) /*Change this var to yours*/
	                {
	                    case 1: AdminRank = "Moderator";
	                    case 2: AdminRank = "Junior Admin";
	                    case 3: AdminRank = "General Admin";
	                    case 4: AdminRank = "Senior Admin";
	                    case 1337: AdminRank = "Head Admin";
                        case 1338: AdminRank = "Scripter";
                        case 1339: AdminRank = "Head Scripter";
                        case 99998: AdminRank = "Co-Owner";
                        case 99999: AdminRank = "Owner";

	                }
	                GetPlayerName(i, name, sizeof(name));
	                format(string,sizeof(string), "%s %s [%s],",string, name, AdminRank);
	                count++;
	                if(count == 4)
	                {
	                    format(string,sizeof(string),"Admins: %s",string);
	                    SendClientMessage(playerid, -1, string);
	                    string = "";
	                    count = 0;
	                }

            }
        }
    }
    if(count)
    {
        format(string,sizeof(string),"Admins: %s",string);
        SendClientMessage(playerid, -1, string);
    }
    if(!online) SendClientMessage(playerid, -1,"No Admin online in the list.");
	return 1;
}
i did try this and i get like 4 errors from it

i tried changing "level 4 admin" like you said but thats not in the script
Reply


Messages In This Thread
Admin level/ranks - by CSLangdale - 08.02.2016, 20:42
Re: Admin level/ranks - by Joron - 08.02.2016, 20:43
Re: Admin level/ranks - by JamalMaddox - 08.02.2016, 20:51
Re: Admin level/ranks - by CSLangdale - 08.02.2016, 21:04
Re: Admin level/ranks - by CSLangdale - 08.02.2016, 21:09
Re: Admin level/ranks - by Prokill911 - 08.02.2016, 21:13
Re: Admin level/ranks - by Joron - 08.02.2016, 21:14

Forum Jump:


Users browsing this thread: 1 Guest(s)