Tenta assim. Eu acho que tem a ver com o PlayerToPoint entгo substitui para a "IsPlayerInRangeOfPoint"
pawn Код:
public OnPlayerKeyStateChange(playerid,newkeys,oldkeys)
{
new victimid = GetClosestPlayer(playerid);
if(IsPlayerConnected(victimid))
{
if(ContinuarTaser[playerid] == 1)
{
//TogglePlayerControllable(playerid, 0);
TogglePlayerControllable(victimid, 0);
ContinuarTaser[playerid] = 1;
ApplyAnimation(victimid,"CRACK","crckidle1",4.1,0,1,1,1,1);
ApplyAnimation(victimid,"CRACK","crckidle1",4.1,0,1,1,1,1);
SetTimerEx("TiempoTaser", Taser_Tiempo, 0, "d", victimid);
SetTimerEx("CortarTaser", Taser_Tiempo, 0, "d", playerid);
}
return 1;
}
if(newkeys == 2 && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
OnPlayerCommandText(playerid,"/pe");
OnPlayerCommandText(playerid,"/pg");
OnPlayerCommandText(playerid,"/pmec");
OnPlayerCommandText(playerid,"/ptadm1");
OnPlayerCommandText(playerid,"/ptadm2");
OnPlayerCommandText(playerid,"/ppr");
OnPlayerCommandText(playerid,"/abrirgn");
OnPlayerCommandText(playerid,"/ppf");
OnPlayerCommandText(playerid,"/ptr");
OnPlayerCommandText(playerid,"/ptr2");
OnPlayerCommandText(playerid,"/pce");
OnPlayerCommandText(playerid,"/pcg");
OnPlayerCommandText(playerid,"/pgov");
OnPlayerCommandText(playerid,"/ptaxi");
OnPlayerCommandText(playerid,"/portaoreporter");
OnPlayerCommandText(playerid,"/portaoreporter2");
}
PlayerInactivity[playerid] = 0;
if(newkeys == 16 && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
OnPlayerCommandText(playerid,"/sair");
}
if((newkeys == 16 && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT ))
{
OnPlayerCommandText(playerid,"/entrar");
OnPlayerCommandText(playerid,"/sair");
if(IsPlayerInRangeOfPoint(playerid, 1.0,,247.8818,71.5204,1003.6406))
{
ApplyAnimation(playerid, "HEIST9","Use_SwipeCard", 4.0, 0, 0, 0, 0, 0);
SetTimerEx("LimparAnim", 2000, false, "i", playerid);
OnPlayerCommandText(playerid,"/pp");
}
if(IsPlayerInRangeOfPoint(playerid, 1.0,,249.0358,74.6236,1003.6406) || IsPlayerInRangeOfPoint(playerid, 1.0,,247.4305,77.2490,1003.6406))
{
ApplyAnimation(playerid, "HEIST9","Use_SwipeCard", 4.0, 0, 0, 0, 0, 0);
SetTimerEx("LimparAnim", 2000, false, "i", playerid);
OnPlayerCommandText(playerid,"/pv");
}
if(IsPlayerInRangeOfPoint(playerid, 1.0,,249.9555,64.5031,1003.6406) || IsPlayerInRangeOfPoint(playerid, 1.0,,251.3744,64.5719,1003.6406))
{
ApplyAnimation(playerid, "HEIST9","Use_SwipeCard", 4.0, 0, 0, 0, 0, 0);
SetTimerEx("LimparAnim", 2000, false, "i", playerid);
OnPlayerCommandText(playerid,"/pr");
}
if(IsPlayerInRangeOfPoint(playerid, 1.0,,925.3904,-1210.9376,16.9796) || IsPlayerInRangeOfPoint(playerid, 1.0,,921.4904,-1211.2009,16.9832)) //
{
ApplyAnimation(playerid, "HEIST9","Use_SwipeCard", 4.0, 0, 0, 0, 0, 0);
SetTimerEx("LimparAnim", 2000, false, "i", playerid);
OnPlayerCommandText(playerid,"/ptpc");
}
if(IsPlayerInRangeOfPoint(playerid, 1.0,,923.5170, -1209.0148, 18.7499))
{
ApplyAnimation(playerid, "HEIST9","Use_SwipeCard", 4.0, 0, 0, 0, 0, 0);
SetTimerEx("LimparAnim", 2000, false, "i", playerid);
OnPlayerCommandText(playerid,"/pc");
}
if(IsPlayerInRangeOfPoint(playerid, 1.0,,925.3904,-1210.9376,16.9796) || IsPlayerInRangeOfPoint(playerid, 1.0,,921.4904,-1211.2009,16.9832)) //
{
ApplyAnimation(playerid, "HEIST9","Use_SwipeCard", 4.0, 0, 0, 0, 0, 0);
SetTimerEx("LimparAnim", 2000, false, "i", playerid);
OnPlayerCommandText(playerid,"/ptpc");
}
if(IsPlayerInRangeOfPoint(playerid, 2.0,,1483.5026,-1716.7286,14.9203))
{
new DinheiroCaixinha = 10000 + random(50000);
new RespeitoCaixinha = random(2);
new string[126];
if(PlayerInfo[playerid][pCaixinha] == char)
{
if(caixinha != char){SendClientMessage(playerid, COLOR_GRAD1, "Presentes bloqueados no momento.");return 1;}
SendClientMessage(playerid, COLOR_GRAD1, "Vocк pegou uma caixinha hб pouco tempo, volte no prуximo Payday!");
return 1;
}
else
{
if(caixinha != char){SendClientMessage(playerid, COLOR_GRAD1, "Presentes bloqueados no momento.");return 1;}
PlayerInfo[playerid][pCaixinha] = char;
format(string, sizeof(string), "%s {33DDFF}pegou uma caixinha e ganhou R$%d e %d de respeito.",PlayerName(playerid), DinheiroCaixinha, RespeitoCaixinha);
SendClientMessageToAll(0x1BFF10AA,string);
GivePlayerMoneyEx(playerid, DinheiroCaixinha);
PlayerInfo[playerid][pExp] += RespeitoCaixinha;
SendClientMessage(playerid, 0x1BFF10AA, "Vocк ganhou uma caixinha de presente, volte no prуximo Payday!");
format(string, sizeof(string), "{33DDFF}Na caixinha continha R$%d e %d de respeito !",
DinheiroCaixinha, RespeitoCaixinha);
SendClientMessage(playerid, COLOR_RED, string);
}
}
if(IncendioAcontecendo == true)
{
if((newkeys == KEY_FIRE && GetPlayerWeapon(playerid) == 42) || (newkeys == KEY_FIRE && GetVehicleModel(GetPlayerVehicleID(playerid)) == 407))
{
if((newkeys == KEY_FIRE && GetPlayerWeapon(playerid) == 42))
{
MeioDeApagar[playerid] = EXTINTOR;
ApagandoIncendio[playerid] = true;
if(Extintor[playerid] == 0)
{
SetTimerEx("ApagarFogo", 9000, false, "i", playerid);
Extintor[playerid]++;
}
}
else if(newkeys == KEY_FIRE && GetVehicleModel(GetPlayerVehicleID(playerid)) == 407)
{
if(IsPlayerInRangeOfPoint(playerid, 20.0, FogoX[1]-8.3718,FogoY[1]-8.429,FogoZ[1]))
{
ApagandoIncendio[playerid] = true;
MeioDeApagar[playerid] = CAMINHAO;
if(Extintor[playerid] == 0)
{
SetTimerEx("ApagarFogo", 9000, false, "i", playerid);
Extintor[playerid]++;
}
}
}
}
else
{
MeioDeApagar[playerid] = 0;
ApagandoIncendio[playerid] = false;
}
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1642.3599,-2238.1589,13.4979) || IsPlayerInRangeOfPoint(playerid, 2.0, -1421.4819,-287.3259,14.1484) || IsPlayerInRangeOfPoint(playerid, 2.0, 1673.2532,1447.8350,10.7860))
{
OnPlayerCommandText(playerid,"/viajar");
}
if(IsPlayerInRangeOfPoint(playerid, 3.0,,1215.5846,-1819.0411,13.5981))
{
OnPlayerCommandText(playerid,"/bcbomb");
}
if(IsPlayerInRangeOfPoint(playerid, 3.0,,1725.1278,-1457.9430,5.2504))
{
OnPlayerCommandText(playerid,"/cmercado");
}
if(IsPlayerInRangeOfPoint(playerid, 2.0,,2249.8088,-2257.7874,14.7647))
{
OnPlayerCommandText(playerid,"/vendermadeira");
}
if(IsPlayerInRangeOfPoint(playerid, 1.0,,1685.1094,-1343.2587,17.4349))
{
OnPlayerCommandText(playerid,"/creditos");
}
if(IsPlayerInRangeOfPoint(playerid, 1.0,,2146.3818,1632.4958,993.5761))
{
OnPlayerCommandText(playerid,"/ptbanco");
}
if(IsPlayerInRangeOfPoint(playerid, 2.0,,1450.0607,-1965.0198,29.8656))
{
OnPlayerCommandText(playerid,"/cortarmadeira");
}
if (IsPlayerInRangeOfPoint(playerid, 2.0, -1695.3196,1355.9562,7.1797))
{
OnPlayerCommandText(playerid,"/dTriad");
}
if (IsPlayerInRangeOfPoint(playerid, 2.0, 1097.9315,-311.2839,73.9922))
{
OnPlayerCommandText(playerid,"/dHit");
}
if(IsPlayerInRangeOfPoint(playerid, 1.5,,2224.1484,-1141.8772,1025.7969) || IsPlayerInRangeOfPoint(playerid, 1.0,,1929.5409,-1785.1664,13.5469) || IsPlayerInRangeOfPoint(playerid, 1.0,,2232.2886,-1162.6107,25.8906) || IsPlayerInRangeOfPoint(playerid, 1.0,,1550.4796,-1669.7039,13.5624) || IsPlayerInRangeOfPoint(playerid, 1.5,,957.4803,-48.7381,1001.1172)
|| IsPlayerInRangeOfPoint(playerid, 2.0,,229.6725,153.8311,1003.0234) || IsPlayerInRangeOfPoint(playerid, 1.5,,-1347.6376,499.9476,11.1953) || IsPlayerInRangeOfPoint(playerid, 1.5,2308.7908,-13.2499,26.7422) || IsPlayerInRangeOfPoint(playerid, 1.5,,1468.6473,-1767.3595,18.7958) || IsPlayerInRangeOfPoint(playerid, 1.5,,648.8112,-520.1576,16.3359))
{
OnPlayerCommandText(playerid,"/banco");
}
if (IsPlayerInRangeOfPoint(playerid, 2.0, 361.8300,173.5202,1008.3828))
{
OnPlayerCommandText(playerid,"/getemprego");
}
if (IsPlayerInRangeOfPoint(playerid, 2.0, 1490.2411,1307.2179,1093.2891))
{
OnPlayerCommandText(playerid,"/licencas");
}
if (IsPlayerInRangeOfPoint(playerid, 2.0, -26.8819,-89.6936,1003.5469) || IsPlayerInRangeOfPoint(playerid, 2.0, -22.2540,-55.6456,1003.5469)
|| IsPlayerInRangeOfPoint(playerid, 2.0, -22.3265,-138.4765,1003.5469) || IsPlayerInRangeOfPoint(playerid, 2.0, -30.3140,-28.3121,1003.5573)
|| IsPlayerInRangeOfPoint(playerid, 2.0, 1128.7734,-1651.9916,18.6182))
{
Controle(playerid, 0);
ShowPlayerDialog(playerid, 5, DIALOG_STYLE_LIST, "Loja 24/7", "Celular\nAgenda\nDados\nCamisinha\nCD-Player\nFrango\nHamburguer\nPizza\n20 Creditos\n50 Creditos", "Confirmar", "Cancelar");
}
if (IsPlayerInRangeOfPoint(playerid, 2.0, 312.2183,-165.9908,999.6010) || IsPlayerInRangeOfPoint(playerid, 2.0, 296.4907,-80.6641,1001.5156))
{
Controle(playerid, 0);
ShowPlayerDialog(playerid, 6, DIALOG_STYLE_LIST, "Loja de Armas", "Kitvip\nEagle\nMP5\nShotgun\nAk-47\nM4\nRifle", "Confirmar", "Cancelar");
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 768.2192,-3.9873,1000.7203))
{
Controle(playerid, 0);
ShowPlayerDialog(playerid, DIALOGID2, DIALOG_STYLE_LIST, "BKS Estilos De Luta", "Cotoveladas\nBoxe\nRua\nKickBoxing\nKarate\nNormal", "confirma", "Cancela");
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 2152.4727,-1014.0005,62.8375) || IsPlayerInRangeOfPoint(playerid, 2.0, 1450.4479,-2287.0803,13.5469) || IsPlayerInRangeOfPoint(playerid, 2.0, 1919.1384,-1415.4775,13.5703) || IsPlayerInRangeOfPoint(playerid, 2.0, 1123.7664,-1506.4692,15.7869))
{
if (PlayerInfo[playerid][pEmprego] == 4)
{
Controle(playerid, 0);
ShowPlayerDialog(playerid, 2572, DIALOG_STYLE_LIST, "Pegar Drogas", "Pegar Maconha\nPegar Cocaina\nPegar Crack\nEsconder Maconha\nEsconder Cocaina\nEsconder Crack\nPegar Safe Maconha\nPegar Safe Cocaina\nPegar Safe Crack", "Confirma", "Cancela");
}
else
{
SendClientMessage(playerid, COLOR_GRAD1, " Vocк nгo й um vendedor de drogas");
}
}
if (IsPlayerInRangeOfPoint(playerid, 2.0, 1524.4977,-1677.9469,6.2188) || IsPlayerInRangeOfPoint(playerid, 2.0, 1565.1235,-1666.9944,28.3956) || IsPlayerInRangeOfPoint(playerid, 2.0, 246.2975,87.4735,1003.6406))
{
Controle(playerid, 0);
ShowPlayerDialog(playerid, 2585, DIALOG_STYLE_LIST, "Elevador", "Garagem\nDepartamento\nCobertura", "Confirma", "Cancela");
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1530.0956,-1661.4786,6.2188)/*Pm*/ || IsPlayerInRangeOfPoint(playerid, 2.0, 319.8195,-1523.7803,36.0391)/*Rotam*/ || IsPlayerInRangeOfPoint(playerid, 2.0, -1522.2317,462.0333,7.1875)/*gn*/
|| IsPlayerInRangeOfPoint(playerid, 2.0, 988.4385,-1365.6866,13.5591))
{
if(PlayerInfo[playerid][pMembro] == 1 || PlayerInfo[playerid][pLider] == 1)
{
Controle(playerid, 0);
ShowPlayerDialog(playerid, 9898, DIALOG_STYLE_LIST, "Cofre Polнcia Militar", "Lista de Membros\nDinheiro\nInformaзхes\nBater Cartao\nEquipar Escudo\nEquipar", "Confirmar", "Cancelar");
}
else if(PlayerInfo[playerid][pMembro] == 2 || PlayerInfo[playerid][pLider] == 2)
{
Controle(playerid, 0);
ShowPlayerDialog(playerid, 9898, DIALOG_STYLE_LIST, "Cofre Rotam", "Lista de Membros\nDinheiro\nInformaзхes\nBater Cartao\nEquipar Escudo\nEquipar", "Confirmar", "Cancelar");
}
else if(PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3)
{
Controle(playerid, 0);
ShowPlayerDialog(playerid, 9898, DIALOG_STYLE_LIST, "Cofre Exйrcito", "Lista de Membros\nDinheiro\nInformaзхes\nBater Cartao\nEquipar Escudo\nEquipar", "Confirmar", "Cancelar");
}
else if(PlayerInfo[playerid][pMembro] == 11 || PlayerInfo[playerid][pLider] == 11)
{
Controle(playerid, 0);
ShowPlayerDialog(playerid, 9898, DIALOG_STYLE_LIST, "Cofre Polнcia Federal", "Lista de Membros\nDinheiro\nInformaзхes\nBater Cartao\nEquipar Escudo\nEquipar", "Confirmar", "Cancelar");
}
return 1;
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, -2237.0938,2354.3518,4.9799))
{
if(PlayerInfo[playerid][pMembro] == 6 || PlayerInfo[playerid][pLider] == 6)
{
Controle(playerid, 0);
ShowPlayerDialog(playerid, 6868, DIALOG_STYLE_LIST, "Cofre GI", "Lista de Membros\nDinheiro\nInformaзхes\nEquipar", "Confirmar", "Cancelar");
}
return 1;
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 400.0511,2539.3369,16.5448))
{
if(PlayerInfo[playerid][pMembro] == 19 || PlayerInfo[playerid][pLider] == 19)
{
Controle(playerid, 0);
ShowPlayerDialog(playerid, 6868, DIALOG_STYLE_LIST, "Cofre F.A.R.C", "Lista de Membros\nDinheiro\nInformaзхes\nEquipar", "Confirmar", "Cancelar");
}
return 1;
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1888.0569,-2003.1454,13.5469))
{
if(PlayerInfo[playerid][pMembro] == 5 || PlayerInfo[playerid][pLider] == 5)
{
Controle(playerid, 0);
ShowPlayerDialog(playerid, 12, DIALOG_STYLE_LIST, "Cofre Aztecas", "Lista de Membros\nDinheiro\nInformaзхes\nEquipar", "Confirmar", "Cancelar");
}
return 1;
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1379.2527,-1641.8179,13.5469))
{
if(PlayerInfo[playerid][pMembro] == 17 || PlayerInfo[playerid][pLider] == 17)
{
Controle(playerid, 0);
ShowPlayerDialog(playerid, 1012, DIALOG_STYLE_LIST, "Cofre Mecanicos", "Lista de Membros\nDinheiro\nInformaзхes\nBatercartгo", "Confirmar", "Cancelar");
}
return 1;
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 2522.9050,-1679.2809,15.4970))
{
if(PlayerInfo[playerid][pMembro] == 12 || PlayerInfo[playerid][pLider] == 12)
{
Controle(playerid, 0);
ShowPlayerDialog(playerid, 12, DIALOG_STYLE_LIST, "Cofre Groove Street", "Lista de Membros\nDinheiro\nInformaзхes\nEquipar", "Confirmar", "Cancelar");
}
return 1;
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 2163.7747,-1676.8579,15.0859))
{
if(PlayerInfo[playerid][pMembro] == 13 || PlayerInfo[playerid][pLider] == 13)
{
Controle(playerid, 0);
ShowPlayerDialog(playerid, 12, DIALOG_STYLE_LIST, "Cofre Ballas", "Lista de Membros\nDinheiro\nInformaзхes\nEquipar", "Confirmar", "Cancelar");
}
return 1;
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 2468.0845,-1542.3755,24.2068))
{
if(PlayerInfo[playerid][pMembro] == 14 || PlayerInfo[playerid][pLider] == 14)
{
Controle(playerid, 0);
ShowPlayerDialog(playerid, 12, DIALOG_STYLE_LIST, "Cofre Vagos", "Lista de Membros\nDinheiro\nInformaзхes\nEquipar", "Confirmar", "Cancelar");
}
return 1;
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1001.7416,-1463.5044,13.5518))
{
if(PlayerInfo[playerid][pMembro] == 15 || PlayerInfo[playerid][pLider] == 15)
{
Controle(playerid, 0);
ShowPlayerDialog(playerid, 12, DIALOG_STYLE_LIST, "Cofre Comando Vermelho", "Lista de Membros\nDinheiro\nInformaзхes\nEquipar", "Confirmar", "Cancelar");
}
return 1;
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1106.1790,-303.8884,73.9922))
{
if(PlayerInfo[playerid][pMembro] == 16 || PlayerInfo[playerid][pLider] == 16)
{
Controle(playerid, 0);
ShowPlayerDialog(playerid, 6868, DIALOG_STYLE_LIST, "Cofre Hitmans", "Lista de Membros\nDinheiro\nInformaзхes\nEquipar", "Confirmar", "Cancelar");
}
return 1;
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 2037.0458,-1402.6100,17.3058))
{
if(PlayerInfo[playerid][pMembro] == 4 || PlayerInfo[playerid][pLider] == 4)
{
Controle(playerid, 0);
ShowPlayerDialog(playerid, 12, DIALOG_STYLE_LIST, "Cofre Mйdicos", "Lista de Membros\nDinheiro\nInformaзхes\nBatercartao", "Confirmar", "Cancelar");
}
return 1;
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 1083.4451,-1212.1459,17.8120))
{
if(PlayerInfo[playerid][pMembro] == 18 || PlayerInfo[playerid][pLider] == 18)
{
Controle(playerid, 0);
ShowPlayerDialog(playerid, 12, DIALOG_STYLE_LIST, "Cofre Bombeiros", "Lista de Membros\nDinheiro\nInformaзхes\nEquipar", "Confirmar", "Cancelar");
}
return 1;
}
if(IsPlayerInRangeOfPoint(playerid,2.0,1509.6074,-1849.8033,13.5469))
{
if(PlayerInfo[playerid][pMembro] == 7 || PlayerInfo[playerid][pLider] == 7)
{
Controle(playerid, 0);
ShowPlayerDialog(playerid, 9363, DIALOG_STYLE_LIST, "Cofre Prefeitura", "Lista de Membros\nDinheiro\nInformaзхes\nEquipar", "Confirmar", "Cancelar");
}
return 1;
}
if(IsPlayerInRangeOfPoint(playerid,2.0, -1691.1339,1367.3473,7.1797))
{
if(PlayerInfo[playerid][pMembro] == 8 || PlayerInfo[playerid][pLider] == 8)
{
Controle(playerid, 0);
ShowPlayerDialog(playerid, 6868, DIALOG_STYLE_LIST, "Cofre Triads", "Lista de Membros\nDinheiro\nInformaзхes\nEquipar", "Confirmar", "Cancelar");
}
return 1;
}
if(IsPlayerInRangeOfPoint(playerid,2.0,752.1580,-1358.9927,13.5000))
{
if(PlayerInfo[playerid][pMembro] == 9 || PlayerInfo[playerid][pLider] == 9)
{
Controle(playerid, 0);
ShowPlayerDialog(playerid, 12, DIALOG_STYLE_LIST, "Cofre Repуrteres", "Lista de Membros\nDinheiro\nInformaзхes", "Confirmar", "Cancelar");
}
return 1;
}
if(IsPlayerInRangeOfPoint(playerid,2.0,1792.3555,-1883.1328,13.5703))
{
if(PlayerInfo[playerid][pMembro] == 10 || PlayerInfo[playerid][pLider] == 10)
{
Controle(playerid, 0);
ShowPlayerDialog(playerid, 12, DIALOG_STYLE_LIST, "Cofre Taxistas", "Lista de Membros\nDinheiro\nInformaзхes", "Confirmar", "Cancelar");
}
}
if(IsPlayerInRangeOfPoint(playerid,2.0,1335.2955,-631.3810,109.1349))
{
if(PlayerInfo[playerid][pMembro] == 20 || PlayerInfo[playerid][pLider] == 20)
{
Controle(playerid, 0);
ShowPlayerDialog(playerid, 12, DIALOG_STYLE_LIST, "Cofre Mбfia Russa", "Lista de Membros\nDinheiro\nInformaзхes\nEquipar", "Confirmar", "Cancelar");
}
}
if(IsPlayerInRangeOfPoint(playerid,2.0,730.8864,-1450.2104,17.6953))
{
if(PlayerInfo[playerid][pMembro] == 21 || PlayerInfo[playerid][pLider] == 21)
{
Controle(playerid, 0);
ShowPlayerDialog(playerid, 12, DIALOG_STYLE_LIST, "Cofre Mбfia Siciliana", "Lista de Membros\nDinheiro\nInformaзхes\nEquipar", "Confirmar", "Cancelar");
}
}
else if(IsPlayerInRangeOfPoint(playerid,2.0,268.0828,77.3566,1001.0391)/*PM*/ || IsPlayerInRangeOfPoint(playerid,2.0,225.9872,114.2330,999.0156)/*ROTA*/ || IsPlayerInRangeOfPoint(playerid,2.0,197.9036,179.0270,1003.0234))/*PF*/
{
if(PlayerInfo[playerid][pEmprego] != 2)
{
SendClientMessage(playerid, COLOR_GRAD1, "Vocк nгo й um advogado!");
return 1;
}
if(PlayerInfo[playerid][pLawSkill] >= 401)
{
ApprovedAdvogado[playerid] = 1;
}
if(Advogando == 1)
{
SendClientMessage(playerid, COR_TAXI, "* Alguйm jб estб soltando algum dos presos aguarde!");
return 1;
}
if(ApprovedAdvogado[playerid] == 1)
{
format(Cidadao, sizeof(Cidadao),"");
format(PresoNome1, sizeof(PresoNome1),"");
format(PresoNome2, sizeof(PresoNome2),"");
format(PresoNome3, sizeof(PresoNome3),"");
format(PresoNome4, sizeof(PresoNome4),"");
format(PresoNome5, sizeof(PresoNome5),"");
format(PresoNome6, sizeof(PresoNome6),"");
format(PresoNome7, sizeof(PresoNome7),"");
format(PresoNome8, sizeof(PresoNome8),"");
format(PresoNome9, sizeof(PresoNome9),"");
format(PresoNome10, sizeof(PresoNome10),"");
PenaEscolhida = 0;
Diminuir = 0;
PrecoAdvogado = 0;
Advogando = 0;
Presidiarios = 0;
MortoPreso = 0;
SoltandoPreso = 0;
for(new x = 0; x < MAX_PLAYERS; x++)
{
if(PlayerInfo[x][pJailed] > 0 && PlayerInfo[x][pJailed] < 4)
{
Presidiarios ++;
}
}
for(new P = 0; P < MAX_PLAYERS; P++)
{
if(PlayerInfo[P][pJailed] > 0 && PlayerInfo[P][pJailed] < 4)
{
MortoPreso++;
if(MortoPreso == 1)
{
PresoID1 = P;
format(PresoNome1, sizeof(PresoNome1), PlayerName(P));
}
else if(MortoPreso == 2)
{
PresoID2 = P;
format(PresoNome2, sizeof(PresoNome2), PlayerName(P));
}
else if(MortoPreso == 3)
{
PresoID3 = P;
format(PresoNome3, sizeof(PresoNome3), PlayerName(P));
}
else if(MortoPreso == 4)
{
PresoID4 = P;
format(PresoNome4, sizeof(PresoNome4), PlayerName(P));
}
else if(MortoPreso == 5)
{
PresoID5 = P;
format(PresoNome5, sizeof(PresoNome5), PlayerName(P));
}
else if(MortoPreso == 6)
{
PresoID6 = P;
format(PresoNome6, sizeof(PresoNome6), PlayerName(P));
}
else if(MortoPreso == 7)
{
PresoID7 = P;
format(PresoNome7, sizeof(PresoNome7), PlayerName(P));
}
else if(MortoPreso == 8)
{
PresoID8 = P;
format(PresoNome8, sizeof(PresoNome8), PlayerName(P));
}
else if(MortoPreso == 9)
{
PresoID9 = P;
format(PresoNome9, sizeof(PresoNome9), PlayerName(P));
}
else if(MortoPreso == 10)
{
PresoID10 = P;
format(PresoNome10, sizeof(PresoNome10), PlayerName(P));
}
}
}
Advogando = 1;
new string[64];
if(Presidiarios == 0)
{
SendClientMessage(playerid, COR_TAXI, "* Nгo hб ninguйm que possa ser solto!");
Advogando = 0;
MortoPreso = 0;
return 1;
}
else if(Presidiarios == 1)
{
format(string, sizeof(string), "%s [ID:%d] %s",PresoNome1, PresoID1, DefinirTempo(1));
}
else if(Presidiarios == 2)
{
format(string, sizeof(string), "%s [ID:%d] %s\n%s [ID:%d] %s",PresoNome1, PresoID1, DefinirTempo(1), PresoNome2, PresoID2, DefinirTempo(2));
}
else if(Presidiarios == 3)
{
format(string, sizeof(string), "%s [ID:%d] %s\n%s [ID:%d] %s\n%s [ID:%d] %s",
PresoNome1, PresoID1, DefinirTempo(1), PresoNome2, PresoID2, DefinirTempo(2), PresoNome3, PresoID3, DefinirTempo(3));
}
else if(Presidiarios == 4)
{
format(string, sizeof(string), "%s [ID:%d] %s\n%s [ID:%d] %s\n%s [ID:%d] %s\n%s [ID:%d] %s",PresoNome1, PresoID1, DefinirTempo(1), PresoNome2, PresoID2,DefinirTempo(2), PresoNome3, PresoID3, DefinirTempo(3), PresoNome4, PresoID4, DefinirTempo(4));
}
else if(Presidiarios == 5)
{
format(string, sizeof(string), "%s [ID:%d] %s\n%s [ID:%d] %s\n%s [ID:%d] %s\n%s [ID:%d] %s\n%s [ID:%d] %s",PresoNome1, PresoID1, DefinirTempo(1), PresoNome2, PresoID2,DefinirTempo(2), PresoNome3, PresoID3, DefinirTempo(3), PresoNome4, PresoID4,PresoNome5, PresoID5, DefinirTempo(5));
}
else if(Presidiarios == 6)
{
format(string, sizeof(string), "%s [ID:%d] %s\n%s [ID:%d] %s\n%s [ID:%d] %s\n%s [ID:%d] %s\n%s [ID:%d] %s\n%s [ID:%d] %s",
PresoNome1, PresoID1, DefinirTempo(1), PresoNome2, PresoID2,
DefinirTempo(2), PresoNome3, PresoID3, DefinirTempo(3), PresoNome4, PresoID4,
PresoNome5, PresoID5, DefinirTempo(5), PresoNome6, PresoID6, DefinirTempo(6));
}
else if(Presidiarios == 7)
{
format(string, sizeof(string), "%s [ID:%d] %s\n%s [ID:%d] %s\n%s [ID:%d] %s\n%s [ID:%d] %s\n%s [ID:%d] %s\n%s [ID:%d] %s\n%s [ID:%d] %s",
PresoNome1, PresoID1, DefinirTempo(1), PresoNome2, PresoID2,
DefinirTempo(2), PresoNome3, PresoID3, DefinirTempo(3), PresoNome4, PresoID4,
PresoNome5, PresoID5, DefinirTempo(5), PresoNome6, PresoID6, DefinirTempo(6),
PresoNome7, PresoID7, DefinirTempo(7));
}
else if(Presidiarios == 8)
{
format(string, sizeof(string), "%s [ID:%d] %s\n%s [ID:%d] %s\n%s [ID:%d] %s\n%s [ID:%d] %s\n%s [ID:%d] %s\n%s [ID:%d] %s\n%s [ID:%d] %s\n%s [ID:%d] %s",
PresoNome1, PresoID1, DefinirTempo(1), PresoNome2, PresoID2,
DefinirTempo(2), PresoNome3, PresoID3, DefinirTempo(3), PresoNome4, PresoID4,
PresoNome5, PresoID5, DefinirTempo(5), PresoNome6, PresoID6, DefinirTempo(6),
PresoNome7, PresoID7, DefinirTempo(7), PresoNome8, PresoID8, DefinirTempo(8));
}
else if(Presidiarios == 9)
{
format(string, sizeof(string), "%s [ID:%d] %s\n%s [ID:%d] %s\n%s [ID:%d] %s\n%s [ID:%d] %s\n%s [ID:%d] %s\n%s [ID:%d] %s\n%s [ID:%d] %s\n%s [ID:%d] %s\n%s [ID:%d] %s",
PresoNome1, PresoID1, DefinirTempo(1), PresoNome2, PresoID2,
DefinirTempo(2), PresoNome3, PresoID3, DefinirTempo(3), PresoNome4, PresoID4,
PresoNome5, PresoID5, DefinirTempo(5), PresoNome6, PresoID6, DefinirTempo(6),
PresoNome7, PresoID7, DefinirTempo(7), PresoNome8, PresoID8, DefinirTempo(8),
PresoNome9, PresoID9, DefinirTempo(9));
}
else if(Presidiarios == 10)
{
format(string, sizeof(string), "%s [ID:%d] %s\n%s [ID:%d] %s\n%s [ID:%d] %s\n%s [ID:%d] %s\n%s [ID:%d] %s\n%s [ID:%d] %s\n%s [ID:%d] %s\n%s [ID:%d] %s\n%s [ID:%d] %s\n%s [ID:%d] %s",
PresoNome1, PresoID1, DefinirTempo(1), PresoNome2, PresoID2,
DefinirTempo(2), PresoNome3, PresoID3, DefinirTempo(3), PresoNome4, PresoID4,
PresoNome5, PresoID5, DefinirTempo(5), PresoNome6, PresoID6, DefinirTempo(6),
PresoNome7, PresoID7, DefinirTempo(7), PresoNome8, PresoID8, DefinirTempo(8),
PresoNome9, PresoID9, DefinirTempo(9), PresoNome10, PresoID10, DefinirTempo(10));
}
ShowPlayerDialog(playerid, DIALOG_ADVOGADO,DIALOG_STYLE_LIST,"Lista de Presos Atuais:",string,"Ajustar", "Sair");
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Vocк nгo tem um papel de autorizaзгo para soltar presos!");
}
}
}
return 1;
}