/admins list, names.
#7

Here you go buddy, enjoy Works fine i tested it.

pawn Код:
// Add this ontop of your script
new AdminDuty[MAX_PLAYERS];
pawn Код:
// Main command
if (strcmp(cmd, "/admins", true) == 0)
    {
    if(IsPlayerConnected(playerid))
      {
        SendClientMessage(playerid, COLOR_RED, " ");
        SendClientMessage(playerid, COLOR_RED, "Online Admins: ");
            for(new i = 0; i < MAX_PLAYERS; i++)
            {
                if(IsPlayerConnected(i))
                {
                  if(PlayerInfo[i][pAdmin] >= 1 && PlayerInfo[i][pAdmin] < 1341)
                  {
                    new admtext[64];
                    if(PlayerInfo[i][pAdmin] == 1337) { admtext = "Lead Admin"; }
                    else if(PlayerInfo[i][pAdmin] == 4) { admtext = "High Admin"; }
                        else if(PlayerInfo[i][pAdmin] == 3) { admtext = "Normal Admin"; }
                        else if(PlayerInfo[i][pAdmin] == 2) { admtext = "Low Admin"; }
                        else if(PlayerInfo[i][pAdmin] == 1) { admtext = "Moderator"; }
                        else { admtext = "Moderator"; }
                        GetPlayerName(i, sendername, sizeof(sendername));
                        if(AdminDuty[i] == 0)
                        {
                            format(string, 256, "%s ( %s )", sendername, admtext);
                            SendClientMessage(playerid, COLOR_WHITE, string);
                        }
                        else
                        {
                          format(string, 256, "%s ( %s )", sendername, admtext);
                            SendClientMessage(playerid, COLOR_YELLOW, string);
                        }
                    }
                }
            }
        }
        return 1;
    }
Reply


Messages In This Thread
/admins list, names. - by Landon - 19.02.2010, 07:21
Re: /admins list, names. - by Jeffry - 19.02.2010, 09:18
Re: /admins list, names. - by aircombat - 19.02.2010, 10:56
Re: /admins list, names. - by notime - 19.02.2010, 11:03
Re: /admins list, names. - by Landon - 19.02.2010, 13:59
Re: /admins list, names. - by Jeffry - 19.02.2010, 19:40
Re: /admins list, names. - by [NYRP]Mike. - 19.02.2010, 20:06
Re: /admins list, names. - by Landon - 19.02.2010, 21:19
Re: /admins list, names. - by Landon - 20.02.2010, 07:23
Re: /admins list, names. - by dice7 - 20.02.2010, 08:45

Forum Jump:


Users browsing this thread: 1 Guest(s)