26.07.2010, 17:18
(
Последний раз редактировалось irffri; 26.07.2010 в 18:44.
)
pawn Код:
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(PM) Contato: %d ",sendername, PlayerInfo[playerid][pPnumber]);
SendClientMessage(playerid,COP_COLOR,string);
}
else if(PlayerInfo[i][pLider] == 2)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lider: %s(B.O.P.E) Contato: %d ",sendername, PlayerInfo[playerid][pPnumber]);
SendClientMessage(playerid,TEAM_BOPE_COLOR,string);
}
else if(PlayerInfo[i][pLider] == 3)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lider: %s(Exercito) Contato: %d ",sendername, PlayerInfo[playerid][pPnumber]);
SendClientMessage(playerid,TEAM_GREEN_COLOR,string);
}
else if(PlayerInfo[i][pLider] == 4)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lider: %s(SAMU) Contato: %d ",sendername, PlayerInfo[playerid][pPnumber]);
SendClientMessage(playerid,COLOR_RED,string);
}
else if(PlayerInfo[i][pLider] == 5)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lider: %s(Crips) Contato: %d ",sendername, PlayerInfo[playerid][pPnumber]);
SendClientMessage(playerid,COLOR_DBLUE,string);
}
else if(PlayerInfo[i][pLider] == 6)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lider: %s(Asfarc) Contato: %d ",sendername, PlayerInfo[playerid][pPnumber]);
SendClientMessage(playerid,COLOR_ASFARC,string);
}
else if(PlayerInfo[i][pLider] == 7)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"=> Prefeito: %s Contato: %d <=",sendername, PlayerInfo[playerid][pPnumber]);
SendClientMessage(playerid,COLOR_DBLUE,string);
}
else if(PlayerInfo[i][pLider] == 8)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lider: %s(Assassinos) Contato: %d ",sendername, PlayerInfo[playerid][pPnumber]);
SendClientMessage(playerid,COLOR_ASSASSINOS,string);
}
else if(PlayerInfo[i][pLider] == 9)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lider: %s(Reporter) Contato: %d ",sendername, PlayerInfo[playerid][pPnumber]);
SendClientMessage(playerid,COLOR_WHITE,string);
}
else if(PlayerInfo[i][pLider] == 10)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lider: %s(Taxista) Contato: %d ",sendername, PlayerInfo[playerid][pPnumber]);
SendClientMessage(playerid,COLOR_TAXISTA,string);
}
else if(PlayerInfo[i][pLider] == 11)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lider: %s(DETRAN) Contato: %d ",sendername, PlayerInfo[playerid][pPnumber]);
SendClientMessage(playerid,COLOR_TAXISTA,string);
}
else if(PlayerInfo[i][pLider] == 12)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lider: %s(G.A.T.E) Contato: %d ",sendername, PlayerInfo[playerid][pPnumber]);
SendClientMessage(playerid,COP_COLOR,string);
}
else if(PlayerInfo[i][pLider] == 13)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lider: %s(Surfistas) Contato: %d ",sendername, PlayerInfo[playerid][pPnumber]);
SendClientMessage(playerid,SURF_COLOR,string);
}
else if(PlayerInfo[i][pLider] == 14)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lider: %s(Punks) Contato: %d ",sendername, PlayerInfo[playerid][pPnumber]);
SendClientMessage(playerid,COLOR_RED,string);
}
else if(PlayerInfo[i][pLider] == 15)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lider: %s(Groove) Contato: %d ",sendername, PlayerInfo[playerid][pPnumber]);
SendClientMessage(playerid,TEAM_GROVE_COLOR,string);
}
else if(PlayerInfo[i][pLider] == 16)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lider: %s(Al'Qaeda) Contato: %d ",sendername, PlayerInfo[playerid][pPnumber]);
SendClientMessage(playerid,COR_ALQAEDA,string);
}
else if(PlayerInfo[i][pLider] == 17)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lider: %s(PC) Contato: %d ",sendername, PlayerInfo[playerid][pPnumber]);
SendClientMessage(playerid,0x93833EF6,string);
}
else if(PlayerInfo[i][pLider] == 18)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lider: %s(Ballas) Contato: %d ",sendername, PlayerInfo[playerid][pPnumber]);
SendClientMessage(playerid,TEAM_BALLAS_COLOR,string);
}
else if(PlayerInfo[i][pLider] == 19)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lider: %s(Latin Kings) Contato: %d ",sendername, PlayerInfo[playerid][pPnumber]);
SendClientMessage(playerid,COLOR_YELLOW,string);
}
else if(PlayerInfo[i][pLider] == 20)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lider: %s(Mбfia Yakuza) Contato: %d ",sendername, PlayerInfo[playerid][pPnumber]);
SendClientMessage(playerid,0x00007DF6,string);
}
else if(PlayerInfo[i][pLider] == 21)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lider: %s(Os Cobras) Contato: %d ",sendername, PlayerInfo[playerid][pPnumber]);
SendClientMessage(playerid,0x570000F6,string);
}
else if(PlayerInfo[i][pLider] == 22)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lider: %s(Mбfia LH) Contato: %d ",sendername, PlayerInfo[playerid][pPnumber]);
SendClientMessage(playerid,0x00E7C6F6,string);
}
else if(PlayerInfo[i][pLider] == 23)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lider: %s(Bloodz) Contato: %d ",sendername, PlayerInfo[playerid][pPnumber]);
SendClientMessage(playerid,COLOR_RED,string);
}
else if(PlayerInfo[i][pLider] == 24)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lider: %s(Drifters) Contato: %d ",sendername, PlayerInfo[playerid][pPnumber]);
SendClientMessage(playerid,0xA774E2F6,string);
}
else if(PlayerInfo[i][pLider] == 25)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lider: %s(FAB) Contato: %d ",sendername, PlayerInfo[playerid][pPnumber]);
SendClientMessage(playerid,0xA774E2F6,string);
}
else if(PlayerInfo[i][pLider] == 26)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lider: %s(Marinha) Contato: %d ",sendername, PlayerInfo[playerid][pPnumber]);
SendClientMessage(playerid,COP_COLOR3,string);
}
else if(PlayerInfo[i][pLider] == 27)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lider: %s(Forзa Tarefa) Contato: %d ",sendername, PlayerInfo[playerid][pPnumber]);
SendClientMessage(playerid,CIA_COLOR,string);
}
else if(PlayerInfo[i][pLider] == 28)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lider: %s(Policia Federal) Contato: %d ",sendername, PlayerInfo[playerid][pPnumber]);
SendClientMessage(playerid,PF_COLOR,string);
}
}
}
}
return 1;
}
pawn Код:
,"Lider: %s(Policia Federal) Contato: %d ",sendername, PlayerInfo[playerid][pPnumber]);