14.04.2012, 02:21
Bom pessoal as vezes e uma forga minha ficar toda hora pedindo ajuda eu queria tirar um cmd /lideres de dialog ja tentei de algumas formas quando da certo fica com alguns warnings logo abaixo mostrarei o cmd
if (strcmp(cmd,"/Lideres",true) == 0)
{
if(IsPlayerConnected(playerid))
{
new DialogThiago[1500];
//SendClientMessage(playerid,COLOR_WHITE, "|________________[ Lideres Online ]________________|");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
new celular = PlayerInfo[i][pPnumber];
if(PlayerInfo[i][pLider] == 1)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {7AADFF}(Polнcia Militar){FFFFFF} Cel [%d] {7AADFF}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 2)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {ADC7D9}(B.O.P.E){FFFFFF} Cel [%d] {ADC7D9}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 3)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {6CD950}(Exercito){FFFFFF} Cel [%d] {6CD950}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 4)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {F7819A}(S.A.M.U){FFFFFF} Cel [%d] {F7819A}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 5)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {337EFF}(Los Aztecas){FFFFFF} Cel [%d] {337EFF}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 6)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {48A3E0}(Hamas){FFFFFF} Cel [%d] {48A3E0}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 7)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}=> {6AB4E6}Prefeito: %s {FFFFFF}<= Cel [%d] {6AB4E6}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] ==
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {C2CBD1}(Hitmans){FFFFFF} Cel [%d] {C2CBD1}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 9)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {EDD893}(Rede Globo){FFFFFF} Cel [%d] {EDD893}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 10)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {93EDDE}(Taxistas){FFFFFF} Cel [%d] {93EDDE}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 11)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {9191FF}(Esquadrгo De Elite){FFFFFF} Cel [%d] {BFA873}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 12)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {BF9B47}(Mбfia Cosa Nostra){FFFFFF} Cel [%d] {BF9B47}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 13)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {8136B3}(Mбfia Yakuza){FFFFFF} Cel [%d] {8136B3}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 14)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {00DB1D} (Groove){FFFFFF} Cel [%d] {00DB1D} ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 15)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {EDE187}(Al'qaeda){FFFFFF} Cel [%d] {EDE187}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 16)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {BDA34D}(Polнcia Civil){FFFFFF} Cel [%d] {BDA34D}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 17)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {CB42E3}(Ballas){FFFFFF} Cel [%d] {CB42E3}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 1
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {E1ED00}(Vagos){FFFFFF} Cel [%d] {E1ED00}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 19)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {FF0000}(Bloodz){FFFFFF} Cel:[%d] {FF0000}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 20)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {C90000}(Sons of Anarchy){FFFFFF} Cel:[%d] {C90000}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 21)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {46F274}(Drifters){FFFFFF} Cel:[%d] ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 22)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {A87A31}(Triads){FFFFFF} Cel:[%d] ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 23)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {FF0066}(F.A.R.C){FFFFFF} Cel [%d] {FF0066}ID[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
ShowPlayerDialog(playerid, 8793, DIALOG_STYLE_MSGBOX, "Lideres Online", DialogThiago, "Fechar", "");
}
}
}
return true;
}
Mesmo se nгo conseguir estб otimo porque ninguen nasce sabendo tudo
Logo mais postarei um map do Medicos
if (strcmp(cmd,"/Lideres",true) == 0)
{
if(IsPlayerConnected(playerid))
{
new DialogThiago[1500];
//SendClientMessage(playerid,COLOR_WHITE, "|________________[ Lideres Online ]________________|");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
new celular = PlayerInfo[i][pPnumber];
if(PlayerInfo[i][pLider] == 1)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {7AADFF}(Polнcia Militar){FFFFFF} Cel [%d] {7AADFF}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 2)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {ADC7D9}(B.O.P.E){FFFFFF} Cel [%d] {ADC7D9}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 3)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {6CD950}(Exercito){FFFFFF} Cel [%d] {6CD950}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 4)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {F7819A}(S.A.M.U){FFFFFF} Cel [%d] {F7819A}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 5)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {337EFF}(Los Aztecas){FFFFFF} Cel [%d] {337EFF}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 6)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {48A3E0}(Hamas){FFFFFF} Cel [%d] {48A3E0}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 7)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}=> {6AB4E6}Prefeito: %s {FFFFFF}<= Cel [%d] {6AB4E6}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] ==
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {C2CBD1}(Hitmans){FFFFFF} Cel [%d] {C2CBD1}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 9)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {EDD893}(Rede Globo){FFFFFF} Cel [%d] {EDD893}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 10)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {93EDDE}(Taxistas){FFFFFF} Cel [%d] {93EDDE}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 11)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {9191FF}(Esquadrгo De Elite){FFFFFF} Cel [%d] {BFA873}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 12)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {BF9B47}(Mбfia Cosa Nostra){FFFFFF} Cel [%d] {BF9B47}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 13)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {8136B3}(Mбfia Yakuza){FFFFFF} Cel [%d] {8136B3}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 14)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {00DB1D} (Groove){FFFFFF} Cel [%d] {00DB1D} ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 15)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {EDE187}(Al'qaeda){FFFFFF} Cel [%d] {EDE187}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 16)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {BDA34D}(Polнcia Civil){FFFFFF} Cel [%d] {BDA34D}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 17)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {CB42E3}(Ballas){FFFFFF} Cel [%d] {CB42E3}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 1
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {E1ED00}(Vagos){FFFFFF} Cel [%d] {E1ED00}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 19)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {FF0000}(Bloodz){FFFFFF} Cel:[%d] {FF0000}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 20)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {C90000}(Sons of Anarchy){FFFFFF} Cel:[%d] {C90000}ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 21)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {46F274}(Drifters){FFFFFF} Cel:[%d] ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 22)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {A87A31}(Triads){FFFFFF} Cel:[%d] ID:[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
else if(PlayerInfo[i][pLider] == 23)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,128,"{FFFFFF}Lider: %s {FF0066}(F.A.R.C){FFFFFF} Cel [%d] {FF0066}ID[%d]\n",sendername,celular,i);
strcat(DialogThiago,string);
}
ShowPlayerDialog(playerid, 8793, DIALOG_STYLE_MSGBOX, "Lideres Online", DialogThiago, "Fechar", "");
}
}
}
return true;
}
Mesmo se nгo conseguir estб otimo porque ninguen nasce sabendo tudo
Logo mais postarei um map do Medicos