19.12.2010, 02:27
tenta
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,GetPlayerColor(playerid),string);
}
else if(PlayerInfo[i][pLeader] == 2)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lнder: %s (ROTAM de LS)",sendername);
SendClientMessage(playerid,GetPlayerColor(playerid),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,GetPlayerColor(playerid),string);
}
else if(PlayerInfo[i][pLeader] == 4)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lнder: %s (ROTAM de SF)",sendername);
SendClientMessage(playerid,GetPlayerColor(playerid),string);
}
else if(PlayerInfo[i][pLeader] == 5)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lнder: %s (Exйrcito)",sendername);
SendClientMessage(playerid,GetPlayerColor(playerid),string);
}
else if(PlayerInfo[i][pLeader] == 6)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lнder: %s (Al'Qaeda)",sendername);
SendClientMessage(playerid,GetPlayerColor(playerid),string);
}
else if(PlayerInfo[i][pLeader] == 7)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lнder: %s O(ASFARC)",sendername);
SendClientMessage(playerid,GetPlayerColor(playerid),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,GetPlayerColor(playerid)S,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,GetPlayerColor(playerid),string);
}
else if(PlayerInfo[i][pLeader] == 10)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lнder: %s (Vagos de LS)",sendername);
SendClientMessage(playerid,GetPlayerColor(playerid),string);
}
else if(PlayerInfo[i][pLeader] == 11)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lнder: %s (Ballas de LS)",sendername);
SendClientMessage(playerid,GetPlayerColor(playerid),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,GetPlayerColor(playerid),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,GetPlayerColor(playerid),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,GetPlayerColor(playerid),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,GetPlayerColor(playerid),string);
}
else if(PlayerInfo[i][pLeader] == 16)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lнder: %s (Repуrteres SF)",sendername);
SendClientMessage(playerid,GetPlayerColor(playerid),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,GetPlayerColor(playerid),string);
}
else if(PlayerInfo[i][pLeader] == 18)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lнder: %s (Hitmans)",sendername);
SendClientMessage(playerid,GetPlayerColor(playerid),string);
}
else if(PlayerInfo[i][pLeader] == 19)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lнder: %s (Policia Federal)",sendername);
SendClientMessage(playerid,GetPlayerColor(playerid),string);
}
else if(PlayerInfo[i][pLeader] == 20)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lнder: %s (Instrutores)",sendername);
SendClientMessage(playerid,GetPlayerColor(playerid),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,GetPlayerColor(playerid),string);
}
else if(PlayerInfo[i][pLeader] == 22)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lнder: %s (Tбxista SF)",sendername);
SendClientMessage(playerid,GetPlayerColor(playerid),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,GetPlayerColor(playerid),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,GetPlayerColor(playerid),string);
}
else if(PlayerInfo[i][pLeader] == 25)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lнder: %s (Vagos de SF)",sendername);
SendClientMessage(playerid,GetPlayerColor(playerid),string);
}
else if(PlayerInfo[i][pLeader] == 26)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lнder: %s (Ballas de SF)",sendername);
SendClientMessage(playerid,GetPlayerColor(playerid),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,GetPlayerColor(playerid),string);
}
else if(PlayerInfo[i][pLeader] == 28)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lнder: %s (Prefeito de LS)",sendername);
SendClientMessage(playerid,GetPlayerColor(playerid),string);
}
else if(PlayerInfo[i][pLeader] == 29)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lнder: %s (Prefeito de SF)",sendername);
SendClientMessage(playerid,GetPlayerColor(playerid),string);
}
else if(PlayerInfo[i][pLeader] == 30)
{
GetPlayerName(i,sendername,sizeof(sendername));
format(string,256,"Lнder: %s (Hitmans de SF)",sendername);
SendClientMessage(playerid,GetPlayerColor(playerid),string);
}
}
}
}
return 1;
}