pawn Код:
public OnPlayerKeyStateChange(playerid,newkeys,oldkeys)
{
new string[128];
PlayerInactivity[playerid] = 0;
if(newkeys == 16 && GetPlayerState(playerid) == PLAYER_STATE_DRIVER)
{
OnPlayerCommandText(playerid,"/sair");
}
if((newkeys == KEY_SECONDARY_ATTACK))
{
if(PlayerToPoint(1.0,playerid,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(PlayerToPoint(1.0,playerid,249.0358,74.6236,1003.6406) || PlayerToPoint(1.0,playerid,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(PlayerToPoint(1.0,playerid,249.9555,64.5031,1003.6406) || PlayerToPoint(1.0,playerid,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(PlayerToPoint(1.0,playerid,925.3904,-1210.9376,16.9796) || PlayerToPoint(1.0,playerid,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(PlayerToPoint(1.0,playerid,245.3586,73.8210,1003.6406))
{
ApplyAnimation(playerid, "HEIST9","Use_SwipeCard", 4.0, 0, 0, 0, 0, 0);
SetTimerEx("LimparAnim", 2000, false, "i", playerid);
OnPlayerCommandText(playerid,"/pppresos");
}
if(PlayerToPoint(1.0,playerid,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(PlayerToPoint(1.0,playerid,925.3904,-1210.9376,16.9796) || PlayerToPoint(1.0,playerid,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");
}
}
//======= Caixinhas - Inicio ========//
if(PlayerToPoint(2.0,playerid,1508.5634,-1671.5271,14.0469))
{
new DinheiroCaixinha = 50 + random(250);
new RespeitoCaixinha = random(2);
//new string[126];
if(PlayerInfo[playerid][pCaixinha] == char)
{
if(caixinha != char){SendClientMessage(playerid, COLOR_GRAD1, "Presentes bloqueados no momento.");return true;}
SendClientMessage(playerid, COLOR_GRAD1, "Vocк pegou uma caixinha hб pouco tempo, volte no prуximo Payday!");
return true;
}
else
{
if(caixinha != char){SendClientMessage(playerid, COLOR_GRAD1, "Presentes bloqueados no momento.");return true;}
PlayerInfo[playerid][pCaixinha] = char;
format(string, sizeof(string), "%s pegou uma caixinha e ganhou R$%d e %d de respeito.",PlayerName(playerid), DinheiroCaixinha, RespeitoCaixinha);
SendClientMessageToAll(COLOR_LIGHTRED,string);
GivePlayerMoneyEx(playerid, DinheiroCaixinha);
PlayerInfo[playerid][pExp] += RespeitoCaixinha;
format(string, sizeof(string), "Na caixinha continha R$%d e %d de respeito, volte no prуximo Payday!",
DinheiroCaixinha, RespeitoCaixinha);
SendClientMessage(playerid, COLOR_RED, string);
}
}
if(newkeys == 16 && GetPlayerState(playerid) == PLAYER_STATE_ONFOOT)
{
OnPlayerCommandText(playerid,"/equipara");
OnPlayerCommandText(playerid,"/equiparterrorista");
OnPlayerCommandText(playerid,"/equiparreporter");
OnPlayerCommandText(playerid,"/entrar");
OnPlayerCommandText(playerid,"/sair");
if(PlayerToPoint(2,playerid,-2033.4347,-117.3490,1035.1719))
{
OnPlayerCommandText(playerid,"/detran");
}
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(PlayerToPoint(1,playerid,1243.1935,-1691.7816,16.1975))
{
OnPlayerCommandText(playerid,"/creditos");
}
if(PlayerToPoint(2,playerid,2249.8088,-2257.7874,14.7647))
{
OnPlayerCommandText(playerid,"/vendermadeira");
}
if(PlayerToPoint(1,playerid,346.1226,161.8205,1025.7964))
{
OnPlayerCommandText(playerid,"/equipargov");
}
if(PlayerToPoint(1,playerid,1016.5500,-922.6879,42.1797))
{
OnPlayerCommandText(playerid,"/mhelper");
}
if(PlayerToPoint(2,playerid,1450.0607,-1965.0198,29.8656))
{
OnPlayerCommandText(playerid,"/cortarmadeira");
}
if (PlayerToPoint(2, playerid, 344.5580,309.7243,999.1557) || PlayerToPoint(2, playerid, 1658.3202,-1841.8921,13.5465))
{
OnPlayerCommandText(playerid,"/dhitman");
}
if(PlayerToPoint(3,playerid,1530.3060,-1702.4915,6.2252) || PlayerToPoint(3,playerid,326.6374,307.1123,999.1484) || PlayerToPoint(3,playerid,302.7936,-1529.9443,24.9219) || PlayerToPoint(3,playerid,240.6516,112.8062,1003.2188) || PlayerToPoint(3,playerid,255.1123,77.4241,1003.6406) || PlayerToPoint(3,playerid,229.8059,164.7830,1003.0234)
|| PlayerToPoint(3,playerid,-1345.8823,492.5301,11.2027) || PlayerToPoint(3,playerid,712.7550,-554.5677,-3.5950))
{
OnPlayerCommandText(playerid,"/batercartao");
}
if(PlayerToPoint(3,playerid,2041.5625,-1422.2742,17.1641))
{
OnPlayerCommandText(playerid,"/bcsamu");
}
if(PlayerToPoint(3,playerid,1466.7955,-2226.0144,13.5469))
{
OnPlayerCommandText(playerid,"/bcmec");
}
if (InAFoodPlace[playerid] != 0)
{
if(PlayerToPoint(1.5,playerid,368.9714,-6.2486,1001.8516))
{
ShowPlayerDialog(playerid, 28, DIALOG_STYLE_LIST, "Cluckin' Bell", "Coraзгo no Espeto R$2\nCarne de Vaca R$4\nCarne de Jacarй R$5\nCarne de Frango R$3\nAgua R$1\nSuco R$1", "Selecionar", "Cancelar");
SetPlayerPos(playerid,368.9714,-6.2486,1001.8516);
SetPlayerFacingAngle(playerid, 357.0132);
}
if(PlayerToPoint(1.5,playerid,376.8571,-67.6620,1001.5151) || PlayerToPoint(1.5,playerid,683.9015,-456.7076,-25.6099))
{
ShowPlayerDialog(playerid, 29, DIALOG_STYLE_LIST, "Burger Shot", "X-Baycon R$2\nX-Tudo R$4\nX-Especial R$5\nX-Frango R$3\nAgua R$1\nSuco R$1", "Selecionar", "Cancelar");
SetPlayerPos(playerid,376.8571,-67.6620,1001.5151);
SetPlayerFacingAngle(playerid, 357.0132);
}
if(PlayerToPoint(1.5,playerid,375.6895,-118.9683,1001.4995))
{
ShowPlayerDialog(playerid, 30, DIALOG_STYLE_LIST, "Well Stacked Pizza", "Presunto e Mussarela - Pequena R$2\nPresunto e Mussarela - Grande R$4\nFrango e Azeitona R$5\nBacon e Chocolate R$3\nAgua R$1\nSuco R$1", "Selecionar", "Cancelar");
SetPlayerPos(playerid,375.6895,-118.9683,1001.4995);
SetPlayerFacingAngle(playerid, 357.0132);
}
if(PlayerToPoint(1.5,playerid,379.0611,-186.6032,1000.6328))
{
ShowPlayerDialog(playerid, 31, DIALOG_STYLE_LIST, "Jim's sticky ring", "Rosquinha Pequena R$2\nRosquinha Normal R$4\nRosquinha de Chefe R$5\nSuper Rosquinha R$4\nAgua R$1\nSuco R$1", "Selecionar", "Cancelar");
SetPlayerPos(playerid,379.0611,-186.6032,1000.6328);
SetPlayerFacingAngle(playerid, 280);
}
SetCameraBehindPlayer(playerid);
}
if(PlayerToPoint(1.5,playerid,2224.1484,-1141.8772,1025.7969) || PlayerToPoint(1.0,playerid,1929.5409,-1785.1664,13.5469) || PlayerToPoint(1.0,playerid,2232.2886,-1162.6107,25.8906) || PlayerToPoint(1.5,playerid,957.4803,-48.7381,1001.1172)
|| PlayerToPoint(1.5,playerid,321.4753,305.5962,999.1484) || PlayerToPoint(1.5,playerid,-1347.6376,499.9476,11.1953)
|| PlayerToPoint(1.5, playerid,2308.7908,-13.2499,26.7422) || PlayerToPoint(1.5,playerid,1495.3928,-1749.1208,15.4453) || PlayerToPoint(1.5,playerid,1363.0376,-1745.4191,13.5439))
{
OnPlayerCommandText(playerid,"/banco");
}
if (PlayerToPoint(2, playerid, 361.8300,173.5202,1008.3828))
{
OnPlayerCommandText(playerid,"/getemprego");
}
if (PlayerToPoint(2, playerid, 1490.2411,1307.2179,1093.2891))
{
OnPlayerCommandText(playerid,"/licencas");
}
if (PlayerToPoint(2.0, playerid, -26.8819,-89.6936,1003.5469) || PlayerToPoint(2.0, playerid, -22.2540,-55.6456,1003.5469)
|| PlayerToPoint(2.0, playerid, -22.3265,-138.4765,1003.5469) || PlayerToPoint(2.0, playerid, -30.3140,-28.3121,1003.5573)
|| PlayerToPoint(2.0, playerid, 1128.7734,-1651.9916,18.6182))
{
Controle(playerid, 0);
ShowPlayerDialog(playerid, 5, DIALOG_STYLE_LIST, "Mercado 24/7", "Celular - R$100\nAgenda - R$2\nDado - R$2\nCamisinha - R$2\nCD-Player - R$2\nFrango - R$10\nHamburguer - R$10\nPizza - R$10\n30 Creditos - R$30\n50 Creditos - R$50\nCapacete - R$30", "Confirmar", "Cancelar");
}
if (PlayerToPoint(2.0, playerid, 312.1259,-166.1339,999.6010) || PlayerToPoint(2.0, playerid, 295.7041,-80.3617,1001.5156))
{
Controle(playerid, 0);
ShowPlayerDialog(playerid, 6, DIALOG_STYLE_LIST, "Loja de Armas", "Kit Vip/Socio\nEagle\nMP5\nShotgun\nAk-47\nM4\nRifle\nParaquedas\nTaco de Golfe\nCaceteti\nTaco de Baseball\nPб\nTaco de Sinuca\nVibrador 1\nVibrador 2\nVibrador 3\nVibrador 4\nBuque de Flores\nCano\nColete R$3.000", "Confirmar", "Cancelar");
}
if(IsPlayerInRangeOfPoint(playerid, 2.0, 768.2192,-3.9873,1000.7203))
{
Controle(playerid, 0);
ShowPlayerDialog(playerid, DIALOGID2, DIALOG_STYLE_LIST, "Estilos De Luta", "Cotoveladas\nBoxe\nRua\nKickBoxing\nKarate\nNormal", "confirma", "Cancela");
}
if(PlayerToPoint(2.0, playerid, 2152.4727,-1014.0005,62.8375) || PlayerToPoint(2.0, playerid, 1450.4479,-2287.0803,13.5469) || PlayerToPoint(2.0, playerid, 1919.1384,-1415.4775,13.5703) || PlayerToPoint(2.0, playerid, 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_GREY, " Vocк nгo й um vendedor de drogas");
}
}
if(PlayerToPoint(2.0,playerid,-2648.0940,1396.4666,906.4609) || PlayerToPoint(2.0,playerid,675.0947,-1275.7603,13.6334))
{
if(PlayerInfo[playerid][pMembro] == 12 || PlayerInfo[playerid][pLider] == 12 || PlayerInfo[playerid][pMembro] == 13 || PlayerInfo[playerid][pLider] == 13)
{
Controle(playerid, 0);
ShowPlayerDialog(playerid, 2582, DIALOG_STYLE_LIST, "Menu Mбfia", "Equipar\nPegar Materiais\nEsconder Materiais", "Confirma", "Cancela");
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Vocк nгo й um mafioso");
}
}
if(PlayerToPoint(3.0,playerid,2026.2104,-1896.1097,13.5469) || PlayerToPoint(3.0,playerid,1240.5569,-2036.9919,59.9709))
{
if (PlayerInfo[playerid][pEmprego] == 7)
{
Controle(playerid, 0);
ShowPlayerDialog(playerid, PEGARMAFIA, DIALOG_STYLE_INPUT, "Pegar Materiais", "Digite a quantidade de materiais/nque deseja pegar", "Pegar", "Cancelar");
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Vocк nгo й um vendedor de armas");
}
}
if (PlayerToPoint(2.0, playerid, 1524.4977,-1677.9469,6.2188) || PlayerToPoint(2.0, playerid, 1565.1235,-1666.9944,28.3956) || PlayerToPoint(2.0, playerid, 246.2975,87.4735,1003.6406))
{
Controle(playerid, 0);
ShowPlayerDialog(playerid, 2585, DIALOG_STYLE_LIST, "Elevador Policial", "Garagem\nDepartamento\nCobertura", "Confirma", "Cancela");
}
if(PlayerToPoint(3.0,playerid,1990.8590,-1996.3722,13.5469) || PlayerToPoint(3.0,playerid,1240.5569,-2036.9919,59.9709))
{
if(MatsHolding[playerid] > 0)
{
new payout = (100)*(MatsHolding[playerid]);
format(gstring, sizeof(gstring), "* A Boca comprou %d pacotes e te deu %d materiais.", payout, MatsHolding[playerid]);
SendClientMessage(playerid, COLOR_LIGHTBLUE, gstring);
PlayerInfo[playerid][pMats] += payout;
MatsHolding[playerid] = 0;
}
else
{
SendClientMessage(playerid, COLOR_GREY, " Vocк nгo tem nenhum pacote !");
}
}
if(PlayerToPoint(3.0,playerid,1828.9386,-1149.9722,23.9766))
{
if(PlayerInfo[playerid][pEmprego] == 7)
{
if(MatsHolding[playerid] > 0)
{
new payout = (100)*(MatsHolding[playerid]);
format(gstring, sizeof(gstring), "* A Boca comprou %d pacotes e te deu %d materiais..", payout, MatsHolding[playerid]);
SendClientMessage(playerid, COLOR_LIGHTBLUE, gstring);
PlayerInfo[playerid][pMats] += payout;
MatsHolding[playerid] = 0;
}
else
{
SendClientMessage(playerid, COLOR_GREY, "Vocк nгo tem nenhum pacote ou nгo й vendedor de armas !");
}
}
}
if(PlayerToPoint(1, playerid, 1568.6442,-1689.9729,6.2188) || PlayerToPoint(1, playerid, 238.2739,108.0566,1003.2257) || PlayerToPoint(1, playerid, -1341.1760,500.5289,11.1953)
|| PlayerToPoint(1, playerid, -43.7568,-273.6649,6.6319) || PlayerToPoint(1, playerid, 208.8036,145.8378,1003.0234) || PlayerToPoint(1, playerid, 608.6080,-592.8043,17.2330))
{
if(PlayerInfo[playerid][pMembro] == 1 || PlayerInfo[playerid][pLider] == 1)
{
Controle(playerid, 0);
ShowPlayerDialog(playerid, 12, DIALOG_STYLE_LIST, "Cofre Polнcia Militar", "Dinheiro", "Confirmar", "Cancelar");
}
else if(PlayerInfo[playerid][pMembro] == 2 || PlayerInfo[playerid][pLider] == 2)
{
Controle(playerid, 0);
ShowPlayerDialog(playerid, 12, DIALOG_STYLE_LIST, "Cofre B.O.P.E", "Dinheiro", "Confirmar", "Cancelar");
}
else if(PlayerInfo[playerid][pMembro] == 3 || PlayerInfo[playerid][pLider] == 3)
{
Controle(playerid, 0);
ShowPlayerDialog(playerid, 12, DIALOG_STYLE_LIST, "Cofre Exйrcito", "Dinheiro", "Confirmar", "Cancelar");
}
else if(PlayerInfo[playerid][pMembro] == 11 || PlayerInfo[playerid][pLider] == 11)
{
Controle(playerid, 0);
ShowPlayerDialog(playerid, 12, DIALOG_STYLE_LIST, "Cofre Polнcia Federal", "Dinheiro", "Confirmar", "Cancelar");
}
else if(PlayerInfo[playerid][pMembro] == 16 || PlayerInfo[playerid][pLider] == 16)
{
Controle(playerid, 0);
ShowPlayerDialog(playerid, 12, DIALOG_STYLE_LIST, "Cofre Polнcia Civil", "Dinheiro", "Confirmar", "Cancelar");
}
else
{ SendClientMessage(playerid, COLOR_GREY, " Vocк nгo й um policial !"); }
}
if(PlayerToPoint(1, playerid, 1106.6525,-314.3387,73.9922))
{
if(PlayerInfo[playerid][pMembro] == 6 || PlayerInfo[playerid][pLider] == 6)
{
Controle(playerid, 0);
ShowPlayerDialog(playerid, 12, DIALOG_STYLE_LIST, "Cofre Hamas", "Dinheiro\nMateriais\nMaconha\nCocaina\nCrack", "Confirmar", "Cancelar");
}
else
{ SendClientMessage(playerid, COLOR_GREY, " Vocк nгo й do Hamas !"); }
}
if(PlayerToPoint(1, playerid, 400.0611,2539.5366,16.5448))
{
if(PlayerInfo[playerid][pMembro] == 15 || PlayerInfo[playerid][pLider] == 15)
{
Controle(playerid, 0);
ShowPlayerDialog(playerid, 12, DIALOG_STYLE_LIST, "Cofre Al'qaeda", "Dinheiro\nMateriais\nMaconha\nCocaina\nCrack", "Confirmar", "Cancelar");
}
else
{ SendClientMessage(playerid, COLOR_GREY, " Vocк nгo й da Al'qaeda !"); }
}
if(PlayerToPoint(1, playerid, -314.4704,1774.4768,43.6406))
{
if(PlayerInfo[playerid][pMembro] == 23 || PlayerInfo[playerid][pLider] == 23)
{
Controle(playerid, 0);
ShowPlayerDialog(playerid, 12, DIALOG_STYLE_LIST, "Cofre Taliban", "Dinheiro\nMateriais\nMaconha\nCocaina\nCrack", "Confirmar", "Cancelar");
}
else
{ SendClientMessage(playerid, COLOR_GREY, " Vocк nгo й da Taliban !"); }
}
if(PlayerToPoint(1, playerid, 2811.7102,-1166.1824,1025.5703))
{
if(PlayerInfo[playerid][pMembro] == 5 || PlayerInfo[playerid][pLider] == 5)
{
Controle(playerid, 0);
ShowPlayerDialog(playerid, 12, DIALOG_STYLE_LIST, "Cofre Aztecas", "Dinheiro\nMateriais\nMaconha\nCocaina\nCrack\nEquipar", "Confirmar", "Cancelar");
}
else
{ SendClientMessage(playerid, COLOR_GREY, " Vocк nгo й dos Aztecas !"); }
}
if(PlayerToPoint(1, playerid, 2514.1301,-1691.2979,14.0460))
{
if(PlayerInfo[playerid][pMembro] == 14 || PlayerInfo[playerid][pLider] == 14)
{
Controle(playerid, 0);
ShowPlayerDialog(playerid, 12, DIALOG_STYLE_LIST, "Cofre Groove Street", "Dinheiro\nMateriais\nMaconha\nCocaina\nCrack\nEquipar", "Confirmar", "Cancelar");
}
else
{ SendClientMessage(playerid, COLOR_GREY, " Vocк nгo й da Groove Street !"); }
}
if(PlayerToPoint(1, playerid, 1074.7671,-1204.1219,18.1446))
{
if(PlayerInfo[playerid][pMembro] == 17 || PlayerInfo[playerid][pLider] == 17)
{
Controle(playerid, 0);
ShowPlayerDialog(playerid, 12, DIALOG_STYLE_LIST, "Cofre Ballas", "Dinheiro\nMateriais\nMaconha\nCocaina\nCrack\nEquipar", "Confirmar", "Cancelar");
}
else
{ SendClientMessage(playerid, COLOR_GREY, " Vocк nгo й dos Ballas !"); }
}
if(PlayerToPoint(1, playerid, 296.2728,1489.4459,1080.2578))
{
if(PlayerInfo[playerid][pMembro] == 18 || PlayerInfo[playerid][pLider] == 18)
{
Controle(playerid, 0);
ShowPlayerDialog(playerid, 12, DIALOG_STYLE_LIST, "Cofre Vagos", "Dinheiro\nMateriais\nMaconha\nCocaina\nCrack\nEquipar", "Confirmar", "Cancelar");
}
else
{ SendClientMessage(playerid, COLOR_GREY, " Vocк nгo й dos Vagos !"); }
}
if(PlayerToPoint(1, playerid, 2151.3218,-1789.1669,13.5097))
{
if(PlayerInfo[playerid][pMembro] == 19 || PlayerInfo[playerid][pLider] == 19)
{
Controle(playerid, 0);
ShowPlayerDialog(playerid, 12, DIALOG_STYLE_LIST, "Cofre Comando Vermelho", "Dinheiro\nMateriais\nMaconha\nCocaina\nCrack\nEquipar", "Confirmar", "Cancelar");
}
else
{ SendClientMessage(playerid, COLOR_GREY, " Vocк nгo й do Comando Vermelho !"); }
}
if(PlayerToPoint(1, playerid, 505.5284,-88.2019,998.9683))
{
if(PlayerInfo[playerid][pMembro] == 20 || PlayerInfo[playerid][pLider] == 20)
{
Controle(playerid, 0);
ShowPlayerDialog(playerid, 12, DIALOG_STYLE_LIST, "Cofre Sons of Anarchy", "Dinheiro\nMateriais\nMaconha\nCocaina\nCrack\nEquipar", "Confirmar", "Cancelar");
}
else
{ SendClientMessage(playerid, COLOR_GREY, " Vocк nгo faz parte dos Sons of Anarchy !"); }
}
if(PlayerToPoint(1, playerid, 2768.6760,-1626.2833,10.9272))
{
if(PlayerInfo[playerid][pMembro] == 21 || PlayerInfo[playerid][pLider] == 21)
{
Controle(playerid, 0);
ShowPlayerDialog(playerid, 12, DIALOG_STYLE_LIST, "Cofre Drifters", "Dinheiro\nMateriais\nMaconha\nCocaina\nCrack\nEquipar", "Confirmar", "Cancelar");
}
else
{ SendClientMessage(playerid, COLOR_GREY, " Vocк nгo faz parte dos Drifters !"); }
}
if(PlayerToPoint(1, playerid, 2041.6974,-1430.1006,17.1641))
{
if(PlayerInfo[playerid][pMembro] == 4 || PlayerInfo[playerid][pLider] == 4)
{
Controle(playerid, 0);
ShowPlayerDialog(playerid, 12, DIALOG_STYLE_LIST, "Cofre S.A.M.U", "Dinheiro", "Confirmar", "Cancelar");
}
else
{ SendClientMessage(playerid, COLOR_GREY, " Vocк nгo й um Mйdico !"); }
}
if(PlayerToPoint(1, playerid, 1642.2533,-1847.7957,13.5411))
{
if(PlayerInfo[playerid][pMembro] == 22 || PlayerInfo[playerid][pLider] == 22)
{
Controle(playerid, 0);
ShowPlayerDialog(playerid, 12, DIALOG_STYLE_LIST, "Cofre Triads", "Dinheiro\nMateriais\nMaconha\nCocaina\nCrack", "Confirmar", "Cancelar");
}
else
{ SendClientMessage(playerid, COLOR_GREY, " Vocк nгo й um Triad !"); }
}
if(PlayerToPoint(1, playerid, 356.3957,152.4393,1025.7891))
{
if(PlayerInfo[playerid][pMembro] == 7 || PlayerInfo[playerid][pLider] == 7)
{
Controle(playerid, 0);
ShowPlayerDialog(playerid, 12, DIALOG_STYLE_LIST, "Cofre Prefeitura", "Dinheiro", "Confirmar", "Cancelar");
}
else
{ SendClientMessage(playerid, COLOR_GREY, " Vocк nгo й um Servidor Pъblico !"); }
}
if(PlayerToPoint(1, playerid, 954.3677,-1548.2120,13.5904))
{
if(PlayerInfo[playerid][pMembro] == 8 || PlayerInfo[playerid][pLider] == 8)
{
Controle(playerid, 0);
ShowPlayerDialog(playerid, 12, DIALOG_STYLE_LIST, "Cofre Hitmans", "Dinheiro\nMateriais\nMaconha\nCocaina\nCrack", "Confirmar", "Cancelar");
}
else
{ SendClientMessage(playerid, COLOR_GREY, " Vocк nгo й um Hitman !"); }
}
if(PlayerToPoint(1, playerid, 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", "Dinheiro", "Confirmar", "Cancelar");
}
else
{ SendClientMessage(playerid, COLOR_GREY, " Vocк nгo й um Repуrter !"); }
}
if(PlayerToPoint(1, playerid, 992.5768,-1460.1726,13.5469))
{
if(PlayerInfo[playerid][pMembro] == 10 || PlayerInfo[playerid][pLider] == 10)
{
Controle(playerid, 0);
ShowPlayerDialog(playerid, 12, DIALOG_STYLE_LIST, "Cofre Taxistas", "Dinheiro", "Confirmar", "Cancelar");
}
else
{ SendClientMessage(playerid, COLOR_GREY, " Vocк nгo й um Taxista !"); }
}
if(PlayerToPoint(1, playerid, -2634.2791,1409.7692,906.4647))
{
if(PlayerInfo[playerid][pMembro] == 12 || PlayerInfo[playerid][pLider] == 12)
{
Controle(playerid, 0);
ShowPlayerDialog(playerid, 12, DIALOG_STYLE_LIST, "Cofre Cosa Nostra", "Dinheiro\nMateriais\nMaconha\nCocaina\nCrack", "Confirmar", "Cancelar");
}
else
{ SendClientMessage(playerid, COLOR_GREY, " Vocк nгo й da Cosa Nostra !"); }
}
if(PlayerToPoint(1, playerid, -2167.5757,644.8060,1057.7687))
{
if(PlayerInfo[playerid][pMembro] == 13 || PlayerInfo[playerid][pLider] == 13)
{
Controle(playerid, 0);
ShowPlayerDialog(playerid, 12, DIALOG_STYLE_LIST, "Cofre Yakuza", "Dinheiro\nMateriais\nMaconha\nCocaina\nCrack", "Confirmar", "Cancelar");
}
else
{ SendClientMessage(playerid, COLOR_GREY, " Vocк nгo й da Yakuza !"); }
}
}
if((newkeys == KEY_HORN) && (IsPlayerInAnyVehicle(playerid)))
{
if(IsAtGasStation(playerid))
{
OnPlayerCommandText(playerid,"/abastecer");
}
}
if((newkeys == KEY_HORN) && (IsPlayerInAnyVehicle(playerid)))
{
if(gTeam[playerid] == 2 || IsACop(playerid) || IsAGOV(playerid))
{
OnPlayerCommandText(playerid,"/pe");
OnPlayerCommandText(playerid,"/pe2");
OnPlayerCommandText(playerid,"/pg");
OnPlayerCommandText(playerid,"/abrirgn");
OnPlayerCommandText(playerid,"/pc");
OnPlayerCommandText(playerid,"/pb");
OnPlayerCommandText(playerid,"/pce");
OnPlayerCommandText(playerid,"/pcg");
OnPlayerCommandText(playerid,"/ppc");
}
if(IsAGOV(playerid))
{
OnPlayerCommandText(playerid,"/pgov");
}
if(IsAJornal(playerid))
{
OnPlayerCommandText(playerid,"/portaoreporter");
}
if(IsATaxi(playerid))
{
OnPlayerCommandText(playerid,"/ptaxi");
}
if(PlayerInfo[playerid][pMembro] == 13 || PlayerInfo[playerid][pLider] == 13)
{
OnPlayerCommandText(playerid,"/pyakuza");
}
if(PlayerInfo[playerid][pMembro] == 12 || PlayerInfo[playerid][pLider] == 12)
{
OnPlayerCommandText(playerid,"/acn");
}
if(PlayerInfo[playerid][pMembro] == 11 || PlayerInfo[playerid][pLider] == 11)
{
OnPlayerCommandText(playerid,"/ppf");
}
if(PlayerInfo[playerid][pMembro] == 8 || PlayerInfo[playerid][pLider] == 8)
{
OnPlayerCommandText(playerid,"/phit");
}
if(PlayerInfo[playerid][pMembro] == 22 || PlayerInfo[playerid][pLider] == 22)
{
OnPlayerCommandText(playerid,"/ptriad");
}
if((newkeys == KEY_HORN) && (IsPlayerInAnyVehicle(playerid)))
{
OnPlayerCommandText(playerid,"/Cativeiro");//Cativeiro
}
}
return true;
}