problem at a commands /admins
#2

Here you go bro!
pawn Код:
if(strcmp("/admins",cmdtext,true) == 0 || strcmp("/ad",cmdtext,true) == 0)
    {
        new string[128];
        for(new i = 0; i<MAX_PLAYERS; i++)
        {
            if(IsPlayerConnected(i))
            {
                if(Ad[i][Level] >= 1 && Ad[i][Level] <= 9)
                {
                    format(string,sizeof(string),"Admin %s[id:%d] [Level: %d]",GetName(i),playerid,Ad[i][Level]);
                    SendClientMessage(playerid,0xff9900ff,string);
                }
                if(Ad[i][Level] >= 10 && Ad[i][Level] <= 14)
                {
                    format(string,sizeof(string),"Super Admin %s[id:%d] [Level: %d]",GetName(i),playerid,Ad[i][Level]);
                    SendClientMessage(playerid,0x00ff00ff,string);
                }
                if(Ad[i][Level] >= 15 && Ad[i][Level] <= 18)
                {
                    format(string,sizeof(string),"High Management %s[id:%d] [Level: %d]",GetName(i),playerid,Ad[i][Level]);
                    SendClientMessage(playerid,0xff6600ff,string);
                }
                if(Ad[i][Level] == 19)
                {
                    format(string,sizeof(string),"Sub Manager %s[id:%d] [Level: %d]",GetName(i),playerid,Ad[i][Level]);
                    SendClientMessage(playerid,0xff0000ff,string);
                }
                if(Ad[i][Level] == 20)
                {
                    format(string,sizeof(string),"Server Manager %s[id:%d] [Level: %d]",GetName(i),playerid,Ad[i][Level]);
                    SendClientMessage(playerid,0xff0000ff,string);
                }
            }
        }
        return 1;
    }
Reply


Messages In This Thread
problem at a commands /admins - by karni357 - 31.01.2013, 15:13
Re: problem at a commands /admins - by Ballu Miaa - 31.01.2013, 16:07
Re: problem at a commands /admins - by karni357 - 31.01.2013, 16:23

Forum Jump:


Users browsing this thread: 2 Guest(s)