new guerrate;
forward guerrat();
if(strcmp(cmd,"/guerra", true) == 0)
{
if(PlayerInfo[playerid][pLeader]==5)
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
guerrate = GangZoneCreate(X-100,Y-100,X+100,Y+100);
GangZoneShowForAll(guerrate,COR_EXERCITO);
SetTimer("guerrat",60000,1);
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "O nosso Exйrcito acaba de declarar guerra, nгo se aprуxime da бrea de cor VERDE", pName);
SendClientMessageToAll(COR_EXERCITO, string);
}
if(PlayerInfo[playerid][pLeader]==6)
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
guerrate = GangZoneCreate(X-100,Y-100,X+100,Y+100);
GangZoneShowForAll(guerrate,COLOR_ALQAEDAA);
SetTimer("guerrat",60000,1);
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "A organizaзгo terrorista Al'Qaeda acaba de declarar guerra, nгo se aprуxime da бrea de cor VERMELHA", pName);
SendClientMessageToAll(COLOR_ALQAEDAA, string);
}
if(PlayerInfo[playerid][pLeader]==7)
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
guerrate = GangZoneCreate(X-100,Y-100,X+100,Y+100);
GangZoneShowForAll(guerrate,COR_ASFARC);
SetTimer("guerrat",60000,1);
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "A organizaзгo terrorista ASFARC acaba de declarar guerra, nгo se aprуxime da бrea de cor Negra", pName);
SendClientMessageToAll(COR_ASFARC, string);
}
return 1;
}
public guerrat()
{
GangZoneDestroy(guerrate);
GangZoneHideForAll(guerrate);
SendClientMessageToAll(0xFFFF00AA,"A guerra foi finalizada e a бrea pode ser habitada novamente!");
return 1;
}
new EmGuerra;
if(strcmp(cmd,"/guerra", true) == 0)
{
if(EmGuerra == 1) return SendClientMessage(playerid,COR,"MENSSAGEM");//Nao permite 2 guerras de uma vez.
if(PlayerInfo[playerid][pLeader]==5)
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
guerrate = GangZoneCreate(X-100,Y-100,X+100,Y+100);
GangZoneShowForAll(guerrate,COR_EXERCITO);
SetTimer("guerrat",60000,0);//nao repete
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "O nosso Exйrcito acaba de declarar guerra, nгo se aprуxime da бrea de cor VERDE", pName);
SendClientMessageToAll(COR_EXERCITO, string);
EmGuerra = 1;
}
if(PlayerInfo[playerid][pLeader]==6)
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
guerrate = GangZoneCreate(X-100,Y-100,X+100,Y+100);
GangZoneShowForAll(guerrate,COLOR_ALQAEDAA);
SetTimer("guerrat",60000,0);//nao repete
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "A organizaзгo terrorista Al'Qaeda acaba de declarar guerra, nгo se aprуxime da бrea de cor VERMELHA", pName);
SendClientMessageToAll(COLOR_ALQAEDAA, string);
EmGuerra = 1;
}
if(PlayerInfo[playerid][pLeader]==7)
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
guerrate = GangZoneCreate(X-100,Y-100,X+100,Y+100);
GangZoneShowForAll(guerrate,COR_ASFARC);
SetTimer("guerrat",60000,0);//nao repete
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "A organizaзгo terrorista ASFARC acaba de declarar guerra, nгo se aprуxime da бrea de cor Negra", pName);
SendClientMessageToAll(COR_ASFARC, string);
EmGuerra = 1;
}
return 1;
}
public guerrat()
{
GangZoneDestroy(guerrate);
GangZoneHideForAll(guerrate);
SendClientMessageToAll(0xFFFF00AA,"A guerra foi finalizada e a бrea pode ser habitada novamente!");
EmGuerra = 0;
return 1;
}
if(strcmp(cmd,"/guerra", true) == 0)
{
if(EmGuerra == 1) return SendClientMessage(playerid,COR,"MENSSAGEM");//Nao permite 2 guerras de uma vez.
if(PlayerInfo[playerid][pLeader]==5)
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
guerrate = GangZoneCreate(X-100,Y-100,X+100,Y+100);
GangZoneShowForAll(guerrate,COR_EXERCITO);
SetTimer("guerrat",60000,false);//nao repete
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "O nosso Exйrcito acaba de declarar guerra, nгo se aprуxime da бrea de cor VERDE", pName);
SendClientMessageToAll(COR_EXERCITO, string);
EmGuerra = 1;
}
if(PlayerInfo[playerid][pLeader]==6)
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
guerrate = GangZoneCreate(X-100,Y-100,X+100,Y+100);
GangZoneShowForAll(guerrate,COLOR_ALQAEDAA);
SetTimer("guerrat",60000,false);//nao repete
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "A organizaзгo terrorista Al'Qaeda acaba de declarar guerra, nгo se aprуxime da бrea de cor VERMELHA", pName);
SendClientMessageToAll(COLOR_ALQAEDAA, string);
EmGuerra = 1;
}
if(PlayerInfo[playerid][pLeader]==7)
{
new Float:X,Float:Y,Float:Z;
GetPlayerPos(playerid, X,Y,Z);
guerrate = GangZoneCreate(X-100,Y-100,X+100,Y+100);
GangZoneShowForAll(guerrate,COR_ASFARC);
SetTimer("guerrat",60000,false);//nao repete
new pName[MAX_PLAYER_NAME];
GetPlayerName(playerid, pName, sizeof(pName));
format(string, sizeof(string), "A organizaзгo terrorista ASFARC acaba de declarar guerra, nгo se aprуxime da бrea de cor Negra", pName);
SendClientMessageToAll(COR_ASFARC, string);
EmGuerra = 1;
}
return 1;
}
public guerrat()
{
GangZoneDestroy(guerrate);
GangZoneHideForAll(guerrate);
SendClientMessageToAll(0xFFFF00AA,"A guerra foi finalizada e a бrea pode ser habitada novamente!");
EmGuerra = 0;
return 0;
}
garfield pq o 0 no settimer nao teve o efeito de false
Aqui funciona com 0(zero) ou false! |
public guerrat()
{
return 0;
}
Obrigado Garfield deu certinho.
Agora estou com uma outra dъvida aproveitando o tуpico. Bom coloquei para qd Administrador entrar em modo trabalho, a cor do nome ficar setado na cor escolhida no caso a cor azul, sу que quando eu coloco eles lнder pra fazer algum evento no /lideres nгo aparece, o admin de lider de cor azul, e sim a cor da organizaзгo. E tambйm quando um Admin morre, aparece a cor do nome normal e nгo fica com a mesma cor do admin, vocкs pode me ajudar? Obrigado. |
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;
}
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;
}
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;
}