/admins command need help with
#2

You should try this:
ZCMD:
Code:
CMD:admins(playerid, params[])
{
    SendClientMessage(playerid, 0x1FFFFFF, "Administrators online:");
    {
        new level[128], string[128];

        if(PlayerInfo[playerid][pAdminLevel] >= 0)
        {
            switch(PlayerInfo[playerid][pAdminLevel])
            {
            case 1: level = ""adminlevel1" (1)";
            case 2: level = ""adminlevel2" (2)";
            case 3: level = ""adminlevel3" (3)";
            case 4: level = ""adminlevel4" (4)";
            case 5: level = ""adminlevel1338" (1338)";
            case 6: level = ""adminlevel1999" (1999)";
            case 7: level = ""adminlevel2000" (2000)";
            case 8: level = ""adminlevel2013" (2013)";
            case 9: level = ""adminlevel2014" (2014)";
            }
            format(string, sizeof(string), "%d - %s", level, GetPlayerName(pName) );
            SendClientMessage(playerid, 0xFFF84FFFF, string);
        }
    }
    return 1;
	}
Didn't tested it yet
Reply


Messages In This Thread
/admins command need help with - by Acres - 08.01.2014, 14:05
Re: /admins command need help with - by ViciousRoleplay123 - 08.01.2014, 14:44
Re: /admins command need help with - by sammp - 08.01.2014, 15:09
Re: /admins command need help with - by Acres - 08.01.2014, 16:24
Re: /admins command need help with - by sammp - 08.01.2014, 16:32

Forum Jump:


Users browsing this thread: 1 Guest(s)