19.12.2010, 01:16
pawn Код:
if (strcmp(cmd,"/lideres",true) == 0)
{
if(IsPlayerConnected(playerid))
{
SendClientMessage(playerid,COLOR_MODOADMIN,"Lнderes Online:");
for(new i = 0; i < MAX_PLAYERS; i++)
{
if(IsPlayerConnected(i))
{
if(PlayerInfo[i][pLeader] == 1)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lнder: %s (Policia Militar de LS)",sendername);
SendClientMessage(playerid,COLOR_PM12,string);
}
else if(PlayerInfo[i][pLeader] == 2)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lнder: %s (ROTAM de LS)",sendername);
SendClientMessage(playerid,COLOR_ROTAORG,string);
}
else if(PlayerInfo[i][pLeader] == 3)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lнder: %s (Policia Militar de SF)",sendername);
SendClientMessage(playerid,COLOR_ROTAORG,string);
}
else if(PlayerInfo[i][pLeader] == 4)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lнder: %s (ROTAM de SF)",sendername);
SendClientMessage(playerid,COR_POLICIA,string);
}
else if(PlayerInfo[i][pLeader] == 5)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lнder: %s (Exйrcito)",sendername);
SendClientMessage(playerid,COR_EXERCITO,string);
}
else if(PlayerInfo[i][pLeader] == 6)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lнder: %s (Al'Qaeda)",sendername);
SendClientMessage(playerid,COLOR_ALQAEDAA,string);
}
else if(PlayerInfo[i][pLeader] == 7)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lнder: %s O(ASFARC)",sendername);
SendClientMessage(playerid,COR_ASFARC,string);
}
else if(PlayerInfo[i][pLeader] == 8)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lнder: %s (Los Aztecas de LS)",sendername);
SendClientMessage(playerid,COR_AZTECAS,string);
}
else if(PlayerInfo[i][pLeader] == 9)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lнder: %s O(Groove Street de LS)",sendername);
SendClientMessage(playerid,COR_GROOVE,string);
}
else if(PlayerInfo[i][pLeader] == 10)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lнder: %s (Vagos de LS)",sendername);
SendClientMessage(playerid,COR_VAGOS,string);
}
else if(PlayerInfo[i][pLeader] == 11)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lнder: %s (Ballas de LS)",sendername);
SendClientMessage(playerid,COR_BALLAS,string);
}
else if(PlayerInfo[i][pLeader] == 12)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lнder: %s (Os Maiorais de LS)",sendername);
SendClientMessage(playerid,COR_MAIORAIS,string);
}
else if(PlayerInfo[i][pLeader] == 13)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lнder: %s (Mйdicos de LS)",sendername);
SendClientMessage(playerid,COLOR_MEDICOS,string);
}
else if(PlayerInfo[i][pLeader] == 14)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lнder: %s O(Mйdicos de SF)",sendername);
SendClientMessage(playerid,COLOR_MEDICOS,string);
}
else if(PlayerInfo[i][pLeader] == 15)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lнder: %s (Repуrteres de LS)",sendername);
SendClientMessage(playerid,COR_NEWS,string);
}
else if(PlayerInfo[i][pLeader] == 16)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lнder: %s (Repуrteres SF)",sendername);
SendClientMessage(playerid,COR_NEWS,string);
}
else if(PlayerInfo[i][pLeader] == 17)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lнder: %s (Repуrteres Eleiзгo)",sendername);
SendClientMessage(playerid,COR_NEWS,string);
}
else if(PlayerInfo[i][pLeader] == 18)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lнder: %s (Hitmans)",sendername);
SendClientMessage(playerid,COR_ASSASSINOS,string);
}
else if(PlayerInfo[i][pLeader] == 19)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lнder: %s (Policia Federal)",sendername);
SendClientMessage(playerid,COLOR_PF12,string);
}
else if(PlayerInfo[i][pLeader] == 20)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lнder: %s (Instrutores)",sendername);
SendClientMessage(playerid,COR_INSTRUTOR,string);
}
else if(PlayerInfo[i][pLeader] == 21)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lнder: %s (Tбxista de LS)",sendername);
SendClientMessage(playerid,COR_TAXI,string);
}
else if(PlayerInfo[i][pLeader] == 22)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lнder: %s (Tбxista SF)",sendername);
SendClientMessage(playerid,COR_TAXI,string);
}
else if(PlayerInfo[i][pLeader] == 23)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lнder: %s (Loz Aztecas de SF)",sendername);
SendClientMessage(playerid,COR_AZTECA,string);
}
else if(PlayerInfo[i][pLeader] == 24)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lнder: %s (Groove Street de SF)",sendername);
SendClientMessage(playerid,COR_GROOVE,string);
}
else if(PlayerInfo[i][pLeader] == 25)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lнder: %s (Vagos de SF)",sendername);
SendClientMessage(playerid,COR_VAGOS,string);
}
else if(PlayerInfo[i][pLeader] == 26)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lнder: %s (Ballas de SF)",sendername);
SendClientMessage(playerid,COR_BALLAS,string);
}
else if(PlayerInfo[i][pLeader] == 27)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lнder: %s (Os Maiorais de SF)",sendername);
SendClientMessage(playerid,COR_MAIORAIS,string);
}
else if(PlayerInfo[i][pLeader] == 28)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lнder: %s (Prefeito de LS)",sendername);
SendClientMessage(playerid,COR_GOVERNO,string);
}
else if(PlayerInfo[i][pLeader] == 29)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lнder: %s (Prefeito de SF)",sendername);
SendClientMessage(playerid,COR_GOVERNO,string);
}
else if(PlayerInfo[i][pLeader] == 30)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lнder: %s (Hitmans de SF)",sendername);
SendClientMessage(playerid,COR_ASSASSINOS,string);
}
}
}
}
return 1;
}