Help with command 2
#5

A little bit complicated but the logic something like that:

pawn Код:
//Command
    new
      MaxPlayers = GetMaxPlayers(),
      string[128];
     
    for(new i; i < MaxPlayers; i++) if(!IsPlayerConnected(i) || PlayerInfo[i][pAdmin] != 1) continue;
    {
        format(string, 128, "Helper level %d - %s [%d]",PlayerInfo[i][pAdmin], Pname(i), i);
        SendClientMessage(playerid, 0x99CCCCAA, string);
    }
   
    for(new i; i < MaxPlayers; i++) if(!IsPlayerConnected(i) || PlayerInfo[i][pAdmin] != 2) continue;
    {
        format(string, 128, "Global Tester level %d - %s [%d]",PlayerInfo[i][pAdmin], Pname(i), i);
        SendClientMessage(playerid, 0x99CCCCAA, string);
    }
   
    for(new i; i < MaxPlayers; i++) if(!IsPlayerConnected(i) || PlayerInfo[i][pAdmin] != 3) continue;
    {
        format(string, 128, "Moderator level %d - %s [%d]",PlayerInfo[i][pAdmin], Pname(i), i);
        SendClientMessage(playerid, 0x99CCCCAA, string);
    }
   
    for(new i; i < MaxPlayers; i++) if(!IsPlayerConnected(i) || PlayerInfo[i][pAdmin] != 4) continue;
    {
        format(string, 128, "Admin level %d - %s [%d]",PlayerInfo[i][pAdmin], Pname(i), i);
        SendClientMessage(playerid, 0x99CCCCAA, string);
    }
//......
   
stock pName(playerid)
{
  new name[MAX_PLAYER_NAME];
  GetPlayerName(playerid, name, sizeof(name));
  return name;
}
Reply


Messages In This Thread
Help with command 2 - by DokerJr - 13.02.2010, 19:53
Re: Help with command 2 - by LuxurioN™ - 13.02.2010, 20:15
Re: Help with command 2 - by DokerJr - 14.02.2010, 08:49
Re: Help with command 2 - by DokerJr - 14.02.2010, 10:30
Re: Help with command 2 - by smeti - 14.02.2010, 11:36
Re: Help with command 2 - by Niixie - 14.02.2010, 11:57
Re: Help with command 2 - by smeti - 14.02.2010, 12:27

Forum Jump:


Users browsing this thread: 3 Guest(s)