/admins help please
#8

Quote:
Originally Posted by DarrenReeder
there

pawn Код:
if(strcmp(cmd, "/admins", true) == 0)
    {
    if(IsPlayerConnected(playerid))
      {
        new count = 0;
            SendClientMessage(playerid, COLOR_RED, "<|> Admins Online <|>");
            for(new i = 0; i < MAX_PLAYERS; i++)
            {
                if(IsPlayerConnected(i))
                {
                  if(PlayerInfo[i][pAdmin] >= 1)
                  {
                        if(PlayerInfo[i][pAdmin] == 1){
                        format(string, 256, "Administrator: %s - [Administrator Level: %d]", GetPlayerNameEx(i),PlayerInfo[i][pAdmin]);
                        SendClientMessage(playerid, COLOR_WHITE, string);
                        }else if(PlayerInfo[i][pAdmin] == 2){
                        format(string, 256, "Administrator: %s - [Administrator Level: %d]", GetPlayerNameEx(i),PlayerInfo[i][pAdmin]);
                        SendClientMessage(playerid, COLOR_WHITE, string);
                        }else if(PlayerInfo[i][pAdmin] == 3){
                        format(string, 256, "Administrator: %s - [Administrator Level: %d]", GetPlayerNameEx(i),PlayerInfo[i][pAdmin]);
                        SendClientMessage(playerid, COLOR_WHITE, string);
                        }else if(PlayerInfo[i][pAdmin] == 4){
                        format(string, 256, "Administrator: %s - [Administrator Level: %d]", GetPlayerNameEx(i),PlayerInfo[i][pAdmin]);
                        SendClientMessage(playerid, COLOR_WHITE, string);
                        }else{
                        format(string, 256, "Administrator: %s - [Administrator Level: %d]", GetPlayerNameEx(i),PlayerInfo[i][pAdmin]);
                        SendClientMessage(playerid, COLOR_WHITE, string);
                        }
                        count++;
                    }
                }
            }
            if(count == 0)
            {
                SendClientMessage(playerid, COLOR_WHITE, "(INFO) Currently no administrators");
            }
            SendClientMessage(playerid, COLOR_RED, "<|> Admins Online <|>");
        }
        return 1;
Fill it out urself
thank you so much,bro
Reply


Messages In This Thread
/admins help please - by GanGXt3r_Ali - 06.04.2010, 13:39
Re: /admins help please - by GanGXt3r_Ali - 06.04.2010, 15:46
Re: /admins help please - by GanGXt3r_Ali - 06.04.2010, 18:34
Re: /admins help please - by GanGXt3r_Ali - 06.04.2010, 18:42
Re: /admins help please - by GanGXt3r_Ali - 06.04.2010, 18:45
Re: /admins help please - by GanGXt3r_Ali - 06.04.2010, 18:52
Re: /admins help please - by DarrenReeder - 06.04.2010, 19:27
Re: /admins help please - by GanGXt3r_Ali - 06.04.2010, 20:52

Forum Jump:


Users browsing this thread: 1 Guest(s)