[Ajuda]/Orgs com Lider
#1

Queria que o /orgs mostra-se os Lideres delas, pesso que me ajudem.
Comando /orgs:
pawn Код:
if(strcmp(cmd, "/orgs", true) == 0)
{
SendClientMessage(playerid,0x1229FAFF,"Policia Militar[ID:1]");
SendClientMessage(playerid,0x1229FAFF,"Policia Federal[ID:2]");
SendClientMessage(playerid,0xD52DFFFF,"Guarda Nacional[ID:3]");
SendClientMessage(playerid,0x1229FAFF,"Medicos[ID:4]");
SendClientMessage(playerid,0xD900D3C8,"Ballas[ID:5]");
SendClientMessage(playerid,0x00D900C8,"Groove[ID:6]");
SendClientMessage(playerid,0x00D900C8,"Presidencia[ID:7]");
SendClientMessage(playerid,0x00C2ECFF,"Hitmans[ID:8]");
SendClientMessage(playerid,0xF5DEB3AA,"Reporter[ID:9]");
SendClientMessage(playerid,0x80808096,"Lowriders[ID:10]");
SendClientMessage(playerid,COLOR_GRAD1,"Riffas[ID:11]");
SendClientMessage(playerid,0xFFC801C8,"Los Santos Vagos[ID:12]");
SendClientMessage(playerid,0x8000FF9A,"Asphalt King's[ID:13]");
SendClientMessage(playerid,0x1229FAFF,"Policia Rodoviaria Federal[ID:14]");
SendClientMessage(playerid,0x01FCFFC8,"Aztecas[ID:15]");
SendClientMessage(playerid,0x00C2ECFF,"Triads[ID:16]");
SendClientMessage(playerid,0x00C2ECFF,"Yakuza[ID:17]");
SendClientMessage(playerid,0xF5DEB3AA,"Drifters[ID:18]");
SendClientMessage(playerid,0xFF00007D,"Comando Vermelho[ID:19]");
SendClientMessage(playerid,0x0000FF78,"PCC[ID:20]");
SendClientMessage(playerid,0x1229FAFF,"Bope[ID:21]");
SendClientMessage(playerid,0x00808000,"Al-Qaeda[ID:22]");
SendClientMessage(playerid,0xFFFFFFFF,"Policia Civil[ID:23]");
return 0x01;
}
Comando /Lideres
pawn Код:
if (strcmp(cmd, "/lideres", true) == 0)
    {
        if(IsPlayerConnected(playerid))
        {
            SendClientMessage(playerid, COLOR_YELLOW, "|____{FF0000}[BSG]{FFFFFF} 1.3 lideres presentes____|");
            for(new i = 0; i < MAX_PLAYERS; i++)
            {
            if(IsPlayerConnected(i))
                {
                    if(PlayerInfo[i][pLeader] == 1){GetPlayerName(i, sendername, sizeof(sendername));format(string, 256, "Policia Militar: %s  | Telefone: %d", sendername,PlayerInfo[i][pPnumber]);SendClientMessage(playerid, TEAM_BLUE_COLOR, string);}
                    if(PlayerInfo[i][pLeader] == 2){GetPlayerName(i, sendername, sizeof(sendername));format(string, 256, "Policia Federal: %s  | Telefone: %d", sendername,PlayerInfo[i][pPnumber]);SendClientMessage(playerid, TEAM_BLUE_COLOR, string);}
                    if(PlayerInfo[i][pLeader] == 3){GetPlayerName(i, sendername, sizeof(sendername));format(string, 256, "Forcas Armadas: %s  | Telefone: %d", sendername,PlayerInfo[i][pPnumber]);SendClientMessage(playerid, COLOR_OLIVE, string);}
                    //if(PlayerInfo[i][pLeader] == 4){GetPlayerName(i, sendername, sizeof(sendername));format(string, 256, "Medicos: %s  | Tel: %d", sendername,PlayerInfo[i][pPnumber]);SendClientMessage(playerid, COLOR_RED, string);}
                    if(PlayerInfo[i][pLeader] == 5){GetPlayerName(i, sendername, sizeof(sendername));format(string, 256, "Ballas: %s  | Telefone: %d", sendername,PlayerInfo[i][pPnumber]);SendClientMessage(playerid, TEAM_BALLAS_COLOR, string);}
                    if(PlayerInfo[i][pLeader] == 6){GetPlayerName(i, sendername, sizeof(sendername));format(string, 256, "Grove Street: %s  | Telefone: %d", sendername,PlayerInfo[i][pPnumber]);SendClientMessage(playerid, TEAM_GROVE_COLOR, string);}
                    if(PlayerInfo[i][pLeader] == 7){GetPlayerName(i, sendername, sizeof(sendername));format(string, 256, "Presidente: %s  | Telefone: %d", sendername,PlayerInfo[i][pPnumber]);SendClientMessage(playerid,COLOR_YELLOW, string);}
                    if(PlayerInfo[i][pLeader] == 8){GetPlayerName(i, sendername, sizeof(sendername));format(string, 256, "Hitman: %s  | Telefone: %d", sendername,PlayerInfo[i][pPnumber]);SendClientMessage(playerid, COLOR_WHITE, string);}
                    if(PlayerInfo[i][pLeader] == 9){GetPlayerName(i, sendername, sizeof(sendername));format(string, 256, "Reporter: %s  | Telefone: %d", sendername,PlayerInfo[i][pPnumber]);SendClientMessage(playerid, LARANJA1, string);}
                    if(PlayerInfo[i][pLeader] == 10){GetPlayerName(i, sendername, sizeof(sendername));format(string, 256, "Lowrider: %s  | Telefone: %d", sendername,PlayerInfo[i][pPnumber]);SendClientMessage(playerid, COLOR_WHITE, string);}
                    if(PlayerInfo[i][pLeader] == 12){GetPlayerName(i, sendername, sizeof(sendername));format(string, 256, "Los Santos Vagos: %s  | Telefone: %d", sendername,PlayerInfo[i][pPnumber]);SendClientMessage(playerid, TEAM_VAGOS_COLOR, string);}
                    if(PlayerInfo[i][pLeader] == 13){GetPlayerName(i, sendername, sizeof(sendername));format(string, 256, "Asphalt King's: %s  | Telefone: %d", sendername,PlayerInfo[i][pPnumber]);SendClientMessage(playerid, TEAM_MOTOCA_COLOR, string);}
                    if(PlayerInfo[i][pLeader] == 14){GetPlayerName(i, sendername, sizeof(sendername));format(string, 256, "Policia Rodoviaria: %s  | Telefone: %d", sendername,PlayerInfo[i][pPnumber]);SendClientMessage(playerid, TEAM_BLUE_COLOR, string);}
                    if(PlayerInfo[i][pLeader] == 15){GetPlayerName(i, sendername, sizeof(sendername));format(string, 256, "Varrio Los Aztecas: %s  | Telefone: %d", sendername,PlayerInfo[i][pPnumber]);SendClientMessage(playerid, TEAM_AZTECAS_COLOR, string);}
                    if(PlayerInfo[i][pLeader] == 16){GetPlayerName(i, sendername, sizeof(sendername));format(string, 256, "Triads: %s  | Tel: %d", sendername,PlayerInfo[i][pPnumber]);SendClientMessage(playerid, COLOR_WHITE, string);}
                    if(PlayerInfo[i][pLeader] == 17){GetPlayerName(i, sendername, sizeof(sendername));format(string, 256, "Mafia Yakuza: %s  | Telefone: %d", sendername,PlayerInfo[i][pPnumber]);SendClientMessage(playerid, COLOR_WHITE, string);}
                    if(PlayerInfo[i][pLeader] == 18){GetPlayerName(i, sendername, sizeof(sendername));format(string, 256, "Drifters: %s  | Telefone: %d", sendername,PlayerInfo[i][pPnumber]);SendClientMessage(playerid, COLOR_WHITE, string);}
                    if(PlayerInfo[i][pLeader] == 19){GetPlayerName(i, sendername, sizeof(sendername));format(string, 256, "Comando Vermelho: %s  | Telefone: %d", sendername,PlayerInfo[i][pPnumber]);SendClientMessage(playerid, COLOR_RED, string);}
                    if(PlayerInfo[i][pLeader] == 20){GetPlayerName(i, sendername, sizeof(sendername));format(string, 256, "Pcc: %s  | Telefone: %d", sendername,PlayerInfo[i][pPnumber]);SendClientMessage(playerid, TEAM_PCC_COLOR, string);}
                    if(PlayerInfo[i][pLeader] == 21){GetPlayerName(i, sendername, sizeof(sendername));format(string, 256, "BOPE: %s  | Telefone: %d", sendername,PlayerInfo[i][pPnumber]);SendClientMessage(playerid, BLUE, string);}
                    if(PlayerInfo[i][pLeader] == 22){GetPlayerName(i, sendername, sizeof(sendername));format(string, 256, "Al-Qaeda: %s  | Telefone: %d", sendername,PlayerInfo[i][pPnumber]);SendClientMessage(playerid, COLOR_WHITE, string);}
                    if(PlayerInfo[i][pLeader] == 23){GetPlayerName(i, sendername, sizeof(sendername));format(string, 256, "Policia Civil: %s  | Telefone: %d", sendername,PlayerInfo[i][pPnumber]);SendClientMessage(playerid, COLOR_WHITE, string);}
                }
            }
        }
        return 1;
    }
Reply
#2

Era melhor,voce fazer em dialog....
Reply
#3

Alguem poderia me ajudar com isso?
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)