if (strcmp(cmd,"/Lideres",true) == 0)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid,COLOR_RED,"|______Lideres Online:______|");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pLider] == 1)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lider: %s(Policia Militar)",sendername);
SendClientMessage(playerid,COP_COLOR,string);
}
else if(PlayerInfo[i][pLider] == 2)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lider: %s(G.T.3)",sendername);
SendClientMessage(playerid,TEAM_BOPE_COLOR,string);
}
else if(PlayerInfo[i][pLider] == 3)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lider: %s(Exercito)",sendername);
SendClientMessage(playerid,TEAM_GREEN_COLOR,string);
}
else if(PlayerInfo[i][pLider] == 4)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lider: %s(SAMU)",sendername);
SendClientMessage(playerid,COLOR_RED,string);
}
else if(PlayerInfo[i][pLider] == 5)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lider: %s(Aztecas)",sendername);
SendClientMessage(playerid,COLOR_DBLUE,string);
}
else if(PlayerInfo[i][pLider] == 6)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lider: %s(Hamas)",sendername);
SendClientMessage(playerid,COLOR_HAMAS,string);
}
else if(PlayerInfo[i][pLider] == 7)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"=> Prefeito: %s <=",sendername);
SendClientMessage(playerid,COLOR_DBLUE,string);
}
else if(PlayerInfo[i][pLider] == 8)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lider: %s(Assassinos)",sendername);
SendClientMessage(playerid,COLOR_ASSASSINOS,string);
}
else if(PlayerInfo[i][pLider] == 9)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lider: %s(Reporter)",sendername);
SendClientMessage(playerid,COLOR_WHITE,string);
}
else if(PlayerInfo[i][pLider] == 10)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lider: %s(Taxista)",sendername);
SendClientMessage(playerid,COLOR_TAXISTA,string);
}
else if(PlayerInfo[i][pLider] == 15)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lider: %s(Grove Street)",sendername);
SendClientMessage(playerid,TEAM_GROVE_COLOR,string);
}
else if(PlayerInfo[i][pLider] == 16)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lider: %s(Al'Qaeda)",sendername);
SendClientMessage(playerid,COLOR_ALCAIDA,string);
}
else if(PlayerInfo[i][pLider] == 17)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lider: %s(Policia Civil)",sendername);
SendClientMessage(playerid,COP_COLOR,string);
}
else if(PlayerInfo[i][pLider] == 18)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lider: %s(Ballas)",sendername);
SendClientMessage(playerid,TEAM_BALLAS_COLOR,string);
}
else if(PlayerInfo[i][pLider] == 19)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lider: %s(Vagos)",sendername);
SendClientMessage(playerid,COLOR_YELLOW,string);
}
else if(PlayerInfo[i][pLider] == 20)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lider: %s(Mбfia Yakuza)",sendername);
SendClientMessage(playerid,0x00007DF6,string);
}
else if(PlayerInfo[i][pLider] == 21)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lider: %s(Os Cobras)",sendername);
SendClientMessage(playerid,0x570000F6,string);
}
else if(PlayerInfo[i][pLider] == 22)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lider: %s(Mбfia LH)",sendername);
SendClientMessage(playerid,0x00E7C6F6,string);
}
else if(PlayerInfo[i][pLider] == 23)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lider: %s(Guerrilha MOB)",sendername);
SendClientMessage(playerid,COLOR_WHITE,string);
}
else if(PlayerInfo[i][pLider] == 24)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lider: %s(Drifters)",sendername);
SendClientMessage(playerid,0xA774E2F6,string);
}
}
}
}
return 1;
}
}
}// em baixo dessa chave adicione
}
}
return 1;
}
else if(PlayerInfo[i][pLider] == 25) // ID DA Organizaзгo nova criada no lideres
{
GetPlayerName(i,sendername,sizeof(sendername)); // pega o nome
format(string,256,"Lider: %s(Forum SA-MP)",sendername); /// formata a msg
SendClientMessage(playerid,0xA774E2F6,string);// envia
}
LOL
Isso nгo й um Tutorial, e sim uma Tentativa de TUT Fail. Aprende primeiro qoeu й um tut mano em vez de ficar pegando COD e tentando fazer TUT ¬¬ |