}
if(IsPlayerConnected(para1))
{
if(para1 != INVALID_PLAYER_ID)
{
if(strcmp(InfoOrg[level][Lider],"Ninguem",true)==0)
{
ConviteInfoOrg(PlayerName(para1), level, 6);
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "Jб tem lнder nessa ORG, use /limparlider antes de colocar outro lider");
return true;
}
if(level == 1) { PlayerInfo[para1][pSkin] = 265; }//Policia Militar
else if(level == 2) { PlayerInfo[para1][pSkin] = 285; }//Rotam
else if(level == 3) { PlayerInfo[para1][pSkin] = 287; }//Exйrcito
else if(level == 4) { PlayerInfo[para1][pSkin] = 70; }//Fire/Ambulance
else if(level == 5) { PlayerInfo[para1][pSkin] = 115; }//Varrios Los Aztecas
else if(level == 6) { PlayerInfo[para1][pSkin] = 249; }//Guerrilheiros Israelitas
else if(level == 7) { PlayerInfo[para1][pSkin] = 147; }//Prefeito
else if(level == 8) { PlayerInfo[para1][pSkin] = 294; }//Hitmans
else if(level == 9) { PlayerInfo[para1][pSkin] = 227; }//Repуrters
else if(level == 10) { PlayerInfo[para1][pSkin] = 61; }//Taxistas
else if(level == 11) { PlayerInfo[para1][pSkin] = 286; }//Policia Federal
//else if(level == 12) { PlayerInfo[para1][pSkin] = 113; }//Mбfia Cosa Nostra
//else if(level == 13) { PlayerInfo[para1][pSkin] = 120; }//Mбfia Yakuza
else if(level == 14) { PlayerInfo[para1][pSkin] = 270; }//Groove
else if(level == 15) { PlayerInfo[para1][pSkin] = 123; }//ALQaeda
//else if(level == 16) { PlayerInfo[para1][pSkin] = 283; }//Policia Civil
else if(level == 17) { PlayerInfo[para1][pSkin] = 104; }//Ballas
else if(level == 18) { PlayerInfo[para1][pSkin] = 108; }//Vagos
else if(level == 19) { PlayerInfo[para1][pSkin] = 19; }//CV
else if(level == 20) { PlayerInfo[para1][pSkin] = 100; }//Sons of Anarchy
else if(level == 21) { PlayerInfo[para1][pSkin] = 292; }//Drifters
else if(level == 22) { PlayerInfo[para1][pSkin] = 117; }//Triads
else if(level == 23) { PlayerInfo[para1][pSkin] = 47; }//PCC
else if(level == 24) { PlayerInfo[para1][pSkin] = 270; }//Groove SF
else if(level == 25) { PlayerInfo[para1][pSkin] = 108; }//Vagos SF
else if(level == 26) { PlayerInfo[para1][pSkin] = 47; }//PCC SF
else if(level == 27) { PlayerInfo[para1][pSkin] = 70; }//Mйdicos SF
else if(level == 28) { PlayerInfo[para1][pSkin] = 19; }//CV SF
else if(level == 29) { PlayerInfo[para1][pSkin] = 104; }//Ballas SF
else if(level == 30) { PlayerInfo[para1][pSkin] = 147; }//Prefeito SF
else if(level == 31) { PlayerInfo[para1][pSkin] = 115; }//Aztecas SF
else if(level == 32) { PlayerInfo[para1][pSkin] = 227; }//Repуrters SF
else if(level == 33) { PlayerInfo[para1][pSkin] = 61; }//Taxistas SF
else if(level == 34) { PlayerInfo[para1][pSkin] = 265; }//Policia Militar SF
else if(level == 35) { PlayerInfo[para1][pSkin] = 285; }//Rotam SF
else if(level == 36) { PlayerInfo[para1][pSkin] = 153; }//DETRAN
//else if(level == 37) { PlayerInfo[para1][pSkin] = 279; }//Bombeiros
else if(level == 38) { PlayerInfo[para1][pSkin] = 44; }//Bombeiros
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
PlayerInfo[para1][pLider] = level;
if(admtrampando[playerid] == 1 && admhide[playerid] == 1)
{
SendClientMessage(para1, COLOR_LIGHTBLUE, " Vocк foi promovido a lider pelo admin Capetinha");
}
else
{
format(string, sizeof(string), " Vocк foi promovido a lider pelo admin %s", PlayerName(playerid));
SendClientMessage(para1, COLOR_LIGHTBLUE, string);
}
SendClientMessage(para1, COLOR_LIGHTBLUE," Promovido Com sucesso !!");
format(string, sizeof(string), " Vocк promoveu %s a Lider.", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "ADMIN: %s deu lнder da org:[%s] para %s.", sendername, NomeORG(level), giveplayer);
LideresLog(string);
MedicBill[para1] = 0;
gTeam[para1] = 11;
PlayerInfo[para1][pTeam] = 11;
PlayerInfo[para1][pCargo] = 6;
SetPlayerSkin(para1, PlayerInfo[para1][pSkin]);
SetPlayerSpawn(para1);
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Vocк nгo esta autorizado a usar este comando!");
}
}
return true;
}
if(strcmp(InfoOrg[level][Lider],"Ninguem",true)==0)
{
ConviteInfoOrg(PlayerName(para1), level, 6);
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "Jб tem lнder nessa ORG, use /limparlider antes de colocar outro lider");
return true;
}
if(strcmp(cmd, "/darlider", true) == 0)
{
if(IsPlayerConnected(playerid))
{
tmp = strtok(cmdtext, idx);
if(!strlen(tmp))
{
SendClientMessage(playerid, COLOR_GRAD2, "USE:[id] [Numero(1-37)]");
return true;
}
new para1;
new level;
para1 = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
level = strval(tmp);
if(level == 0) { SendClientMessage(playerid, COLOR_GREY, "Para tirar o lider de uma organizaзгo vocк deve usar /limparlider"); return true; }
if(level > 38 || level < 1) { SendClientMessage(playerid, COLOR_GREY, "Empregos de 1 a 38"); return true; }
GetPlayerName(playerid, sendername, 256);
if (PlayerInfo[playerid][pAdmin] >= 1337)
{
if(admtrampando[playerid] < 1 && PlayerInfo[playerid][pAdmin] != 1341)
{
SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! {E31919}(/jogar)");
return true;
}
if(PlayerInfo[para1][pLider] != 0 || PlayerInfo[para1][pMembro] != 0)
{
SendClientMessage(playerid, COLOR_GRAD1, " Este player jб participa de uma organizaзгo!");
return true;
}
if(IsPlayerConnected(para1))
{
if(para1 != INVALID_PLAYER_ID)
{
if(strcmp(InfoOrg[level][Lider],"Ninguem",true)==0)
{
ConviteInfoOrg(PlayerName(para1), level, 6);
}
else
{
SendClientMessage(playerid, COLOR_GRAD2, "Jб tem lнder nessa ORG, use /limparlider antes de colocar outro lider");
return true;
}
if(level == 1) { PlayerInfo[para1][pSkin] = 265; }//Policia Militar
else if(level == 2) { PlayerInfo[para1][pSkin] = 285; }//Rotam
else if(level == 3) { PlayerInfo[para1][pSkin] = 287; }//Exйrcito
else if(level == 4) { PlayerInfo[para1][pSkin] = 70; }//Fire/Ambulance
else if(level == 5) { PlayerInfo[para1][pSkin] = 115; }//Varrios Los Aztecas
else if(level == 6) { PlayerInfo[para1][pSkin] = 249; }//Guerrilheiros Israelitas
else if(level == 7) { PlayerInfo[para1][pSkin] = 147; }//Prefeito
else if(level == 8) { PlayerInfo[para1][pSkin] = 294; }//Hitmans
else if(level == 9) { PlayerInfo[para1][pSkin] = 227; }//Repуrters
else if(level == 10) { PlayerInfo[para1][pSkin] = 61; }//Taxistas
else if(level == 11) { PlayerInfo[para1][pSkin] = 286; }//Policia Federal
//else if(level == 12) { PlayerInfo[para1][pSkin] = 113; }//Mбfia Cosa Nostra
//else if(level == 13) { PlayerInfo[para1][pSkin] = 120; }//Mбfia Yakuza
else if(level == 14) { PlayerInfo[para1][pSkin] = 270; }//Groove
else if(level == 15) { PlayerInfo[para1][pSkin] = 123; }//ALQaeda
//else if(level == 16) { PlayerInfo[para1][pSkin] = 283; }//Policia Civil
else if(level == 17) { PlayerInfo[para1][pSkin] = 104; }//Ballas
else if(level == 18) { PlayerInfo[para1][pSkin] = 108; }//Vagos
else if(level == 19) { PlayerInfo[para1][pSkin] = 19; }//CV
else if(level == 20) { PlayerInfo[para1][pSkin] = 100; }//Sons of Anarchy
else if(level == 21) { PlayerInfo[para1][pSkin] = 292; }//Drifters
else if(level == 22) { PlayerInfo[para1][pSkin] = 117; }//Triads
else if(level == 23) { PlayerInfo[para1][pSkin] = 47; }//PCC
else if(level == 24) { PlayerInfo[para1][pSkin] = 270; }//Groove SF
else if(level == 25) { PlayerInfo[para1][pSkin] = 108; }//Vagos SF
else if(level == 26) { PlayerInfo[para1][pSkin] = 47; }//PCC SF
else if(level == 27) { PlayerInfo[para1][pSkin] = 70; }//Mйdicos SF
else if(level == 28) { PlayerInfo[para1][pSkin] = 19; }//CV SF
else if(level == 29) { PlayerInfo[para1][pSkin] = 104; }//Ballas SF
else if(level == 30) { PlayerInfo[para1][pSkin] = 147; }//Prefeito SF
else if(level == 31) { PlayerInfo[para1][pSkin] = 115; }//Aztecas SF
else if(level == 32) { PlayerInfo[para1][pSkin] = 227; }//Repуrters SF
else if(level == 33) { PlayerInfo[para1][pSkin] = 61; }//Taxistas SF
else if(level == 34) { PlayerInfo[para1][pSkin] = 265; }//Policia Militar SF
else if(level == 35) { PlayerInfo[para1][pSkin] = 285; }//Rotam SF
else if(level == 36) { PlayerInfo[para1][pSkin] = 153; }//DETRAN
//else if(level == 37) { PlayerInfo[para1][pSkin] = 279; }//Bombeiros
else if(level == 38) { PlayerInfo[para1][pSkin] = 44; }//Bombeiros
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
PlayerInfo[para1][pLider] = level;
if(admtrampando[playerid] == 1 && admhide[playerid] == 1)
{
SendClientMessage(para1, COLOR_LIGHTBLUE, " Vocк foi promovido a lider pelo admin Capetinha");
}
else
{
format(string, sizeof(string), " Vocк foi promovido a lider pelo admin %s", PlayerName(playerid));
SendClientMessage(para1, COLOR_LIGHTBLUE, string);
}
SendClientMessage(para1, COLOR_LIGHTBLUE," Promovido Com sucesso !!");
format(string, sizeof(string), " Vocк promoveu %s a Lider.", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "ADMIN: %s deu lнder da org:[%s] para %s.", sendername, NomeORG(level), giveplayer);
LideresLog(string);
MedicBill[para1] = 0;
gTeam[para1] = 11;
PlayerInfo[para1][pTeam] = 11;
PlayerInfo[para1][pCargo] = 6;
SetPlayerSkin(para1, PlayerInfo[para1][pSkin]);
SetPlayerSpawn(para1);
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Vocк nгo esta autorizado a usar este comando!");
}
}
return true;
}
if(strcmp(cmd, "/fakelider", true) == 0)
{
if(IsPlayerConnected(playerid))
{
new
para1,level
;
tmp = strtok(cmdtext, idx);
if(!strlen(tmp)) return SendClientMessage(playerid, COLOR_GRAD2, "USE:[id] [Numero(1-37)]");
para1 = ReturnUser(tmp);
tmp = strtok(cmdtext, idx);
level = strval(tmp);
if(level == 0) { SendClientMessage(playerid, COLOR_GREY, "Para tirar o lider de uma organizaзгo vocк deve usar /limparlider"); return true; }
if(level > 38 || level < 1) { SendClientMessage(playerid, COLOR_GREY, "Empregos de 1 a 38"); return true; }
GetPlayerName(playerid, sendername, 24);
if (PlayerInfo[playerid][pAdmin] >= 1337)
{
if(admtrampando[playerid] < 1 && PlayerInfo[playerid][pAdmin] != 1341)
{
SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo estб trabalhando! {E31919}(/jogar)");
return true;
}
if(PlayerInfo[para1][pLider] != 0 || PlayerInfo[para1][pMembro] != 0)
{
SendClientMessage(playerid, COLOR_GRAD1, " Este player jб participa de uma organizaзгo!");
return true;
}
if(IsPlayerConnected(para1))
{
if(para1 != INVALID_PLAYER_ID)
{
GetPlayerName(para1, giveplayer, sizeof(giveplayer));
GetPlayerName(playerid, sendername, sizeof(sendername));
format(string, sizeof(string), " Vocк foi promovido a lider pelo admin %s", PlayerName(playerid));
SendClientMessage(para1, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "| FAKE | Vocк promoveu %s a Lider.", giveplayer);
SendClientMessage(playerid, COLOR_LIGHTBLUE, string);
format(string, sizeof(string), "ADMIN: %s deu lнder da org:[%s] para %s.", sendername, NomeORG(level), giveplayer);
SetPlayerSpawn(para1);
}
}
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Vocк nгo esta autorizado a usar este comando!");
}
}
return true;
}
Olб amigos!
Venho dar um UP! Aqui. OBS: Jб se passaram 24 horas! Vlw! |