/admin command
#10

Try this:

pawn Код:
dcmd_admins(playerid, params[])
{
    #pragma unused params

    new count = 0, string[250];
    for(new i = 0; i < MAX_PLAYERS; i ++)
    {
    if(IsPlayerConnected(i))
    {
    if(AdminLevel[playerid] == 1)//Change this!
    {
    format(string, sizeof(string),"%s{09F709}Admin Level 1:{32CD32} %s {E61A1A}[Trial Moderator]\n", string, GetName(i));
    count++;
    }
    if(AdminLevel[playerid] == 2)//Change this!
    {
    format(string, sizeof(string),"%s{09F709}Admin Level 2:{32CD32} %s {E61A1A}[Moderator]", string, GetName(i));
    count++;
    }
    if(AdminLevel[playerid] == 3)//Change this!
    {
    format(string, sizeof(string),"%s{09F709}Admin Level 3:{32CD32} %s {E61A1A}[Administrator]", string, GetName(i));
    count++;
    }
    if(AdminLevel[playerid] == 4)//Change this!
    {
    format(string, sizeof(string),"%s{09F709}Admin Level 4:{32CD32} %s {E61A1A}[Head Administrator]", string, GetName(i));
    count++;
    }
    if(AdminLevel[playerid] == 5)//Change this!
    {
    format(string, sizeof(string),"%s{09F709}Admin Level 5:{32CD32} %s {E61A1A}[Server Co-Owner]", string, GetName(i));
    count++;
    }
    if(AdminLevel[playerid] == 1337)//Change this!
    {
    format(string, sizeof(string),"%s{09F709}Admin Level 1337:{32CD32} %s {E61A1A}[Server Owner]", string, GetName(i));
    count++;
    }
    }
    }
    if(count == 0)
    {
    SendClientMessage(playerid, -1, "There are no Admins online!");
    }
    else
    {
    SendClientMessage(playerid, -1, "==========Online Admins=========");
    SendClientMessage(playerid, -1, string);
    SendClientMessage(playerid, -1, "================================");
    }
    return 1;
}
Reply


Messages In This Thread
/admin command - by NoahF - 02.06.2013, 18:43
Re: /admin command - by Scenario - 02.06.2013, 18:58
Re: /admin command - by NoahF - 02.06.2013, 19:01
Re: /admin command - by Scenario - 02.06.2013, 19:05
Re: /admin command - by NoahF - 02.06.2013, 19:17
Re: /admin command - by Areax - 02.06.2013, 19:20
Re: /admin command - by NoahF - 02.06.2013, 19:21
Re: /admin command - by NoahF - 02.06.2013, 19:25
Re: /admin command - by Areax - 02.06.2013, 19:27
Re: /admin command - by Areax - 02.06.2013, 19:38

Forum Jump:


Users browsing this thread: 2 Guest(s)