Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- //CREDITOS BY: UNGROUP
- #include <a_samp>
- #include <dini>
- #include <zcmd>
- #include <sscanf2>
- #include <a_vehicles>
- #include <cpstream>
- #define DIALOG_ADMS 0
- #define REGISTRO 1
- #define LOGIN 2
- #define DIALOG_BANIDO 3
- #define DIALOG_ORGS 5
- #define DIALOG_NICK 6
- #define DIALOG_VIP 7
- #define DIALOG_NULL 9
- #define DIALOG_EMPREGO 10
- #define COR_AVISO 0x77CA7DFF
- #define COR_EVENTO 0x408080FF
- #define COR_ERRO 0xFFA8D3FF
- #define COR_ROUBO 0x676989FF
- #define COR_LEVEL 0xFF1188FF
- #define COR_AVISOADM 0x25F3E9FF
- #define COR_CIVIL 0xF2F2F2FF
- #define COR_PM 0x0000CCFF
- #define COR_PC 0x6A6A00FF
- #define COR_EXT 0x008000FF
- #define COR_FA 0x046FD9FF
- #define COR_GOE 0x8B8B8BFF
- #define COR_YKZ 0xFF0000FF
- #define COR_GROOVE 0x00E600FF
- #define COR_BALLAS 0xC016BCFF
- #define COR_LCN 0x8B584BFF
- #define COR_AQ 0x919148FF
- #define COR_VT 0x800080FF
- #define COR_Advogado 0xFF8040FF
- #define COR_Aposentado 0xAED2CDFF
- #define COR_Sequestrador 0xCCC9B5FF
- #define COR_Estudante 0xCBE29EFF
- #define VDaOrg(%0,%1,%2) GetPlayerVehicleID(playerid) >= %0[%1] && GetPlayerVehicleID(playerid) <= %0[%2]
- new Nomeorgs[16][128] =
- {
- "Civil",
- "Policia Militar",
- "Policia Civil",
- "Grupo de Operaçoes",
- "Exercito",
- "Força Aeria",
- "Groove Street",
- "Yakuza",
- "La Cosa Nostra",
- "Ballas",
- "Al Quaeda",
- "Taliban",
- "Advogado",
- "Sequestrador",
- "Aposentado",
- "Estudando"
- };
- new Nomeadmins[6][128] =
- {
- "Ninguem",
- "Helper",
- "Tutor",
- "Administrador",
- "Co-Fundador",
- "Fundador"
- };
- new VExercito[3];
- new VForcaA[12];
- new VGoe[9];
- new VTaliban[8];
- new VDP[28];
- new VGroove[4];
- new VExt[6];
- new VALQ[8];
- new VYKZ[8];
- #define CONTAS "Contas/%s.ini"
- #define BAN "Ban/%s.ini"
- #define ORGS "Orgs/%d.ini"
- new Evento[MAX_PLAYERS];
- new Matou[MAX_PLAYERS];
- new Morreu[MAX_PLAYERS];
- new Logou[MAX_PLAYERS];
- new Avisos[MAX_PLAYERS];
- new Respeito[MAX_PLAYERS];
- new carroauto[MAX_PLAYERS];
- new GPSUsed[MAX_PLAYERS];
- new OpenNick[MAX_PLAYERS];
- new HandsUp[MAX_PLAYERS];
- new BlockHandsUp[MAX_PLAYERS];
- new Algemado[MAX_PLAYERS];
- new Preso[MAX_PLAYERS];
- new Roubando[MAX_PLAYERS];
- new EntradaEmprego;
- new EntradaAuto;
- new EntradaPREF;
- new SaidaPref;
- new EntradaB1;
- new SaidaB1;
- new EntradaB2;
- new SaidaB2;
- new Entrada247;
- new EntradaGOE;
- new SaidaGOE;
- new Saida247;
- new EntradaAmmu;
- new SaidaAmmu;
- new EntradaPC;
- new CofreB1;
- new CPCofreB1;
- new CofreB2;
- new CPCofreB2;
- new CofreAmmu;
- new CPCofreAmmu;
- new CofrePref;
- new CPCofrePref;
- new AcabarAuto;
- new ComecaAuto;
- new PortaoRally;
- new PortaoDP1;
- new PortaoDP2;
- new PortaoGOE;
- new EntradaDP;
- new SaidaDP;
- new SaidaPC;
- new SaidaGroove;
- new PortaoFA;
- new PortaoGroove;
- new PortaoEXT;
- new PortaoPC;
- new PortaoBallas;
- new EntradaGroove;
- new PortaoYkz;
- new PortaoYkz2;
- new PortaoYkz3;
- new EquiparPM;
- new EquiparPC;
- new EquiparGroove;
- new EquiparFA;
- new EquiparTB;
- new EquiparAQ;
- new EquiparGOE;
- new EquiparEXT;
- new EquiparYkz;
- new EquiparBallas;
- new HospLoja;
- new VendAmmu;
- new EntradaZIP;
- new SaidaZIP;
- new EntradaBallas;
- new EntradaYkz;
- new SaidaBallas;
- new SaidaYkz;
- new Limparficha;
- new CPZip;
- new Text:ImagemEntrada;
- new BarrilC[MAX_PLAYERS];
- new BarreiraC[MAX_PLAYERS];
- new FazendoAuto[MAX_PLAYERS];
- new TempoRoubo[MAX_PLAYERS];
- new BlockRoubo[MAX_PLAYERS];
- new Barril[MAX_PLAYERS];
- new Barreira[MAX_PLAYERS];
- new Sequestrado[MAX_PLAYERS];
- new Godmodeon[MAX_PLAYERS];
- new Text:TextInfo[MAX_PLAYERS];
- new Text:TDInfo[MAX_PLAYERS];
- forward TimeGPS(playerid);
- forward BlockGPS(playerid);
- forward LimparChat(playerid, linhas);
- forward OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid);
- forward RoubarBanco(playerid);
- forward TimerRoubo(playerid);
- forward OpenRoubo(playerid);
- forward SpawnInfoPlayer(playerid);
- enum InfoPlayer
- {
- AdmNivel,
- Skin,
- Banido,
- Org,
- Cargo,
- Level,
- Carteira,
- Vip,
- TelesVIP,
- Crack,
- Maconha,
- Cor[100]
- };
- new PlayerInfo[MAX_PLAYERS][InfoPlayer];
- public OnFilterScriptInit()
- {
- return 1;
- }
- public OnFilterScriptExit()
- {
- for(new i=0; i<MAX_PLAYERS; i++)
- SalvarPlayer(i);
- return 1;
- }
- main()
- {
- print("\n----------------------------------");
- print(" Servidor iniciado com sucesso \n");
- print(" (i) Administrador: UnGroup \n");
- print(" (i) Mapper: Sync \n");
- print("----------------------------------\n");
- }
- public OnGameModeInit()
- {
- for(new i=0; i<MAX_PLAYERS; i++)
- {
- TextInfo[i] = TextDrawCreate(225.0, 433.0, "~b~BRASIL IMPERIUM - ~r~RPG v 1.0");
- TextDrawBackgroundColor(TextInfo[i],0x000000ff);
- TextDrawFont(TextInfo[i],2);
- TextDrawLetterSize(TextInfo[i],0.2999, 1.4);
- TextDrawBoxColor(TextInfo[i],0x00000050);
- TextDrawColor(TextInfo[i],0xffffffff);
- TextDrawSetOutline(TextInfo[i],1);
- TextDrawSetProportional(TextInfo[i],1);
- TextDrawSetShadow(TextInfo[i],1);
- }
- ImagemEntrada = TextDrawCreate(1.000000, -1.000000, "loadsc2:loadsc2");
- TextDrawBackgroundColor(ImagemEntrada, 255);
- TextDrawFont(ImagemEntrada, 4);
- TextDrawLetterSize(ImagemEntrada, 0.500000, 1.000000);
- TextDrawColor(ImagemEntrada, -1);
- TextDrawSetOutline(ImagemEntrada, 0);
- TextDrawSetProportional(ImagemEntrada, 1);
- TextDrawSetShadow(ImagemEntrada, 1);
- TextDrawUseBox(ImagemEntrada, 1);
- TextDrawBoxColor(ImagemEntrada, 255);
- TextDrawTextSize(ImagemEntrada, 645.000000, 450.000000);
- Create3DTextLabel("Entre para limpar sua ficha", 0xD2D200FF, 253.9280,69.2910,1003.6406, 25.0, 0, 0);
- Limparficha = CreatePickup(1239, -2, 253.9280,69.2910,1003.6406, -1);
- UsePlayerPedAnims();
- DisableInteriorEnterExits();
- SetGameModeText("BI-RPG");
- AddPlayerClass(26,1177.6891,-1323.6450,14.0831,271.5522,0,0,0,0,0,0);
- EntradaAuto = CreatePickup(1318, -2, 1310.0953, -1367.5757, 13.5377, -1);
- EntradaZIP = CreatePickup(1318, -2, 1456.8682,-1138.4703,23.5085, -1);
- EntradaBallas = CreatePickup(1318, -2, 2073.0520,-1583.2961,13.4751, -1);
- EntradaYkz = CreatePickup(1318, -2, 691.5729,-1276.0468,13.5607, -1);
- SaidaBallas = CreatePickup(1318, -2, 305.5227,300.6660,999.1484, -1);
- SaidaYkz = CreatePickup(1318, -2, 343.9452,305.0450,999.1484, -1);
- SaidaZIP = CreatePickup(1318, -2, 161.3824,-97.0829,1001.8047, -1);
- ComecaAuto = CPS_AddCheckpoint(-2033.1509,-117.2815,1035.1719,2.0,80);
- HospLoja = CPS_AddCheckpoint(6.7984,-21.8679,1003.5494,2.0,80);
- VendAmmu = CPS_AddCheckpoint(296.0748,-38.0849,1001.5156,2.0,80);
- CPZip = CPS_AddCheckpoint(161.5191,-84.0125,1001.8047,2.0,80);
- EntradaEmprego = CreatePickup(1313, -2, 361.8920,173.7346,1008.3828, -1);
- AcabarAuto = CPS_AddCheckpoint(369.5503,-1664.3792,32.7266,2.0,80);
- PortaoRally = CreateObject(989,-2376.1001000,-2196.1999500,34.2000000,0.0000000,0.0000000,45.0000000);
- PortaoDP1 = CreateObject(980,1543.1999512,-1627.5000000,15.1999998,0.0000000,0.0000000,90.0000000); //object(airportgate) (1)
- PortaoDP2 = CreateObject(980,1588.1999512,-1638.4000244,15.1999998,0.0000000,0.0000000,0.0000000); //object(airportgate) (2)
- EntradaDP = CreatePickup(1318, 2, 1554.5598,-1675.6604,16.1953,-1);
- SaidaDP = CreatePickup(1318, 2, 246.7799,62.9597,1003.6406,-1);
- PortaoFA = CreateObject(980,87.0000000,2071.3000488,19.2000008,0.0000000,0.0000000,90.0000000); //object(airportgate) (1)
- PortaoEXT = CreateObject(980,-1530.3000488,482.3999939,7.9000001,0.0000000,0.0000000,0.0000000); //object(pol_comp_gate) (1)
- PortaoGroove = CreateObject(980,2461.1999512,-1658.6999512,15.1000004,0.0000000,0.0000000,90.0000000); //object(airportgate) (2)
- PortaoPC = CreateObject(980,1030.1999512,-366.2999878,75.6999969,0.0000000,0.0000000,175.0000000); //object(airportgate)
- PortaoGOE = CreateObject(980,-1172.3221,-988.4862,131.100,0.0000000,0.0000000,90.0000000);
- PortaoBallas = CreateObject(980,2091.3000488,-1604.5000000,15.1000004,0.0000000,0.0000000,357.0000000); //object(airportgate) (1)
- PortaoYkz = CreateObject(980,664.9000244,-1309.0999756,15.1999998,0.0000000,0.0000000,0.0000000); //object(airportgate) (1)
- PortaoYkz2 = CreateObject(980,785.4000244,-1152.5000000,25.2999992,0.0000000,0.0000000,92.0000000); //object(airportgate) (2)
- PortaoYkz3 = CreateObject(980,659.7998047,-1227.2998047,17.7999992,0.0000000,0.0000000,61.9958496); //object(airportgate) (3)
- EntradaPREF = CreatePickup(1318, -2,1481.0874,-1771.2550,18.7958,-1);
- EntradaB1 = CreatePickup(1318, -2,1698.8126,-1667.9309,20.1943,-1);
- EntradaB2 = CreatePickup(1318, -2,1458.9001,-1011.1289,26.8438,-1);
- Entrada247 = CreatePickup(1318, -2,1352.3615,-1758.4122,13.5078,-1);
- EntradaAmmu = CreatePickup(1318, -2,1368.0061,-1279.5814,13.5469,-1);
- EntradaPC = CreatePickup(1318, -2,1059.7328,-345.3858,73.9922,-1);
- EntradaGOE = CreatePickup(1318, -2,-1035.1956,-987.7623,129.2672,-1);
- SaidaGOE = CreatePickup(1318, -2,288.7418,167.5589,1007.1719,-1);
- SaidaPref = CreatePickup(1318, -2,389.8888,173.7571,1008.3828,-1);
- Saida247 = CreatePickup(1318, -2,6.1192,-31.3702,1003.5494,-1);
- SaidaAmmu = CreatePickup(1318, -2,284.8378,-41.4230,1001.5156,-1);
- SaidaB1 = CreatePickup(1318, -2,1700.8273,-1667.9644,20.2188,-1);
- SaidaB2 = CreatePickup(1318, -2,2319.0757,-16.2338,26.7496,-1);
- SaidaPC = CreatePickup(1318, -2,246.3727,107.8699,1003.2188,-1);
- CofreB1 = CreatePickup(1276, -2,1712.1417,-1640.1509,20.2239,-1);
- CPCofreB1 = CPS_AddCheckpoint(1712.1417,-1640.1509,20.2239,2.0,80);
- CofreAmmu = CreatePickup(1276, 2,299.4659,-31.6373,1002.8296,-1);
- CPCofreAmmu = CPS_AddCheckpoint(299.4659,-31.6373,1002.8296,2.0,80);
- CofreB2 = CreatePickup(1276, 2,2319.2327,-1.5781,26.7496,-1);
- CPCofreB2 = CPS_AddCheckpoint(2319.2327,-1.5781,26.7496,2.0,80);
- CofrePref = CreatePickup(1276, 2,346.4212,162.2538,1025.7891,-1);
- CPCofrePref = CPS_AddCheckpoint(346.4212,162.2538,1025.7891,2.0,80);
- EntradaGroove = CreatePickup(1318, -2,2495.3125,-1690.5079,14.7656,-1);
- SaidaGroove = CreatePickup(1318, -2,2495.9846,-1692.1176,1014.7422,-1);
- EquiparPM = CreatePickup(1242, -1, 256.5771, 74.5914, 1003.6406, -1);
- EquiparPC = CreatePickup(1242, -1,225.6061,121.2019,999.0680, -1);
- EquiparGroove = CreatePickup(1242, -1,2496.0820,-1709.9287,1014.7422, -1);
- EquiparFA = CreatePickup(1242, -1,239.8024,1858.4639,14.0840, -1);
- EquiparTB = CreatePickup(1242, -1,-343.2703,1542.6257,75.5625, -1);
- EquiparAQ = CreatePickup(1242, -1,-314.3817,1774.0057,43.6406, -1);
- EquiparEXT = CreatePickup(1242, -1,-1336.3752,499.9763,11.3047, -1);
- EquiparYkz = CreatePickup(1242, -1,673.6130,-1275.6669,13.6334, -1);
- EquiparBallas = CreatePickup(1242, -1,2061.9697,-1586.2549,13.4813, -1);
- EquiparGOE = CreatePickup(1242, -1,-1027.2972,-996.0436,129.2126, -1);
- VExercito[0] = AddStaticVehicleEx(425,-1432.0999800,498.5000000,19.1000000,0.0000000,95,10,15); //Hunter
- VExercito[1] = AddStaticVehicleEx(425,-1406.8994100,498.7998000,19.1000000,0.0000000,95,10,15); //Hunter
- VExercito[2] = AddStaticVehicleEx(425,-1418.5996100,498.8994100,19.1000000,0.0000000,95,10,15); //Hunter
- VForcaA[0] = AddStaticVehicleEx(520,277.6000061,1996.6999512,18.6000004,180.0000000,-1,-1,15); //Hydra
- VForcaA[1] = AddStaticVehicleEx(520,272.1992188,1949.0000000,18.6000004,0.0000000,-1,-1,15); //Hydra
- VForcaA[2] = AddStaticVehicleEx(520,278.2998047,1963.3994141,18.6000004,180.0000000,-1,-1,15); //Hydra
- VForcaA[3] = AddStaticVehicleEx(520,272.6000061,2017.6999512,18.6000004,0.0000000,-1,-1,15); //Hydra
- VForcaA[4] = AddStaticVehicleEx(520,271.8999939,1983.0000000,18.6000004,0.0000000,-1,-1,15); //Hydra
- VForcaA[5] = AddStaticVehicleEx(520,279.5996094,2029.8994141,18.6000004,180.0000000,-1,-1,15); //Hydra
- VForcaA[6] = AddStaticVehicleEx(425,395.0000000,1985.5000000,21.2000008,90.0000000,95,10,15); //Hunter
- VForcaA[7] = AddStaticVehicleEx(425,395.0000000,1946.5996094,21.2000008,90.0000000,95,10,15); //Hunter
- VForcaA[8] = AddStaticVehicleEx(425,394.5996094,1910.8994141,21.2000008,90.0000000,95,10,15); //Hunter
- VForcaA[9] = AddStaticVehicleEx(487,349.1000061,1985.5999756,20.6000004,90.0000000,007,007,15); //Maverick
- VForcaA[10] = AddStaticVehicleEx(487,348.8999939,1946.8000488,20.6000004,90.0000000,007,007,15); //Maverick
- VForcaA[11] = AddStaticVehicleEx(487,349.3999939,1910.9000244,20.6000004,90.0000000,007,007,15); //Maverick
- VGoe[0] = AddStaticVehicleEx(447,-1152.0999800,-1004.0000000,129.3000000,0.0000000,32,32,15); //Seasparrow
- VGoe[1] = AddStaticVehicleEx(447,-1139.3000500,-1004.2000100,129.3000000,0.0000000,32,32,15); //Seasparrow
- VGoe[2] = AddStaticVehicleEx(447,-1111.5999800,-1003.5999800,129.3000000,0.0000000,32,32,15); //Seasparrow
- VGoe[3] = AddStaticVehicleEx(447,-1125.5999800,-1003.5999800,129.3000000,0.0000000,32,32,15); //Seasparrow
- VGoe[4] = AddStaticVehicleEx(497,-1025.4000200,-930.5999800,132.1000100,180.0000000,-1,-1,15); //Police Maverick
- VGoe[5] = AddStaticVehicleEx(497,-1135.5000000,-931.8994100,132.1000100,180.0000000,-1,-1,15); //Police Maverick
- VGoe[6] = AddStaticVehicleEx(497,-1099.1992200,-931.6992200,132.1000100,180.0000000,-1,-1,15); //Police Maverick
- VGoe[7] = AddStaticVehicleEx(497,-1062.2998000,-931.0000000,132.1000100,180.0000000,-1,-1,15); //Police Maverick
- VTaliban[0] = AddStaticVehicleEx(425,-240.3999939,1477.5999756,76.4000015,0.0000000,95,10,15); //Hunter
- VTaliban[1] = AddStaticVehicleEx(425,-283.3999939,1479.6999512,76.9000015,0.0000000,95,10,15); //Hunter
- VTaliban[2] = AddStaticVehicleEx(520,-237.8999939,1498.8000488,76.5000000,0.0000000,-1,-1,15); //Hydra
- VTaliban[3] = AddStaticVehicleEx(520,-288.2999878,1498.6999512,77.0000000,0.0000000,-1,-1,15); //Hydra
- VTaliban[4] = AddStaticVehicleEx(520,-261.7999878,1499.4000244,76.5000000,0.0000000,-1,-1,15); //Hydra
- VTaliban[5] = AddStaticVehicleEx(447,-275.1000061,1462.6999512,75.6999969,0.0000000,142,142,15); //Seasparrow
- VTaliban[6] = AddStaticVehicleEx(447,-261.8999939,1479.9000244,75.6999969,0.0000000,32,32,15); //Seasparrow
- VTaliban[7] = AddStaticVehicleEx(447,-249.8999939,1462.3000488,75.6999969,0.0000000,32,32,15); //Seasparrow
- VDP[0] = AddStaticVehicleEx(599,1603.5999800,-1695.5000000,6.2000000,90.0000000,-1,-1,15); //Police Ranger
- VDP[1] = AddStaticVehicleEx(599,1603.6992200,-1683.8994100,6.2000000,90.0000000,-1,-1,15); //Police Ranger
- VDP[2] = AddStaticVehicleEx(599,1603.6992200,-1687.6992200,6.2000000,90.0000000,-1,-1,15); //Police Ranger
- VDP[3] = AddStaticVehicleEx(599,1603.7998000,-1691.8994100,6.2000000,90.0000000,-1,-1,15); //Police Ranger
- VDP[4] = AddStaticVehicleEx(596,1586.6999500,-1711.1999500,5.7000000,0.0000000,-1,-1,15); //Police Car (LSPD)
- VDP[5] = AddStaticVehicleEx(596,1591.0000000,-1711.1999500,5.7000000,0.0000000,-1,-1,15); //Police Car (LSPD)
- VDP[6] = AddStaticVehicleEx(596,1582.9000200,-1711.3000500,5.7000000,0.0000000,-1,-1,15); //Police Car (LSPD)
- VDP[7] = AddStaticVehicleEx(596,1578.4000200,-1711.1999500,5.7000000,0.0000000,-1,-1,15); //Police Car (LSPD)
- VDP[8] = AddStaticVehicleEx(596,1574.5000000,-1711.4000200,5.7000000,0.0000000,-1,-1,15); //Police Car (LSPD)
- VDP[9] = AddStaticVehicleEx(523,1583.5999800,-1677.9000200,5.6000000,270.0000000,-1,-1,15); //HPV1000
- VDP[10] = AddStaticVehicleEx(523,1583.2998000,-1681.2998000,5.6000000,270.0000000,-1,-1,15); //HPV1000
- VDP[11] = AddStaticVehicleEx(523,1583.5999800,-1676.5000000,5.6000000,270.0000000,-1,-1,15); //HPV1000
- VDP[12] = AddStaticVehicleEx(523,1583.5000000,-1679.5999800,5.6000000,270.0000000,-1,-1,15); //HPV1000
- VDP[13] = AddStaticVehicleEx(523,1583.6999500,-1674.6999500,5.6000000,270.0000000,-1,-1,15); //HPV1000
- VDP[14] = AddStaticVehicleEx(427,1544.0999800,-1680.5000000,6.1000000,90.0000000,-1,-1,15); //Enforcer
- VDP[15] = AddStaticVehicleEx(427,1544.0999800,-1684.3000500,6.1000000,90.0000000,-1,-1,15); //Enforcer
- VDP[16] = AddStaticVehicleEx(427,1544.1999500,-1675.9000200,6.1000000,90.0000000,-1,-1,15); //Enforcer
- VDP[17] = AddStaticVehicleEx(528,1600.6999500,-1606.6999500,13.7000000,0.0000000,-1,-1,15); //FBI Truck
- VDP[18] = AddStaticVehicleEx(528,1604.2998000,-1606.7998000,13.7000000,0.0000000,-1,-1,15); //FBI Truck
- VDP[19] = AddStaticVehicleEx(497,1549.9000200,-1643.8000500,28.7000000,90.0000000,-1,-1,15); //Police Maverick
- VDP[20] = AddStaticVehicleEx(497,1564.5999800,-1659.9000200,28.7000000,90.0000000,-1,-1,15); //Police Maverick
- VDP[21] = AddStaticVehicleEx(497,1564.6999500,-1690.5000000,28.7000000,90.0000000,-1,-1,15); //Police Maverick
- VDP[22] = AddStaticVehicleEx(497,1549.4000200,-1707.4000200,28.7000000,90.0000000,-1,-1,15); //Police Maverick
- VDP[23] = AddStaticVehicleEx(523,1536.0999800,-1664.5999800,13.0000000,90.0000000,-1,-1,15); //HPV1000
- VDP[24] = AddStaticVehicleEx(523,1536.0999800,-1668.4000200,13.0000000,90.0000000,-1,-1,15); //HPV1000
- VDP[25] = AddStaticVehicleEx(523,1536.0999800,-1676.0000000,13.0000000,90.0000000,-1,-1,15); //HPV1000
- VDP[26] = AddStaticVehicleEx(523,1536.0000000,-1672.0000000,13.0000000,90.0000000,-1,-1,15); //HPV1000
- VDP[27] = AddStaticVehicleEx(523,1536.0999800,-1679.6999500,13.0000000,90.0000000,-1,-1,15); //HPV1000
- VGroove[0] = AddStaticVehicleEx(447,2530.3999023,-1677.9000244,20.0000000,90.0000000,086,086,15); //Seasparrow
- VGroove[1] = AddStaticVehicleEx(487,2494.3000488,-1695.0999756,23.8999996,0.0000000,086,086,15); //Maverick
- VGroove[2] = AddStaticVehicleEx(447,2515.1999512,-1692.0000000,18.6000004,52.0000000,086,086,15); //Seasparrow
- VExt[0] = AddStaticVehicleEx(432,-1230.5999800,439.1000100,7.3000000,0.0000000,95,10,15); //Rhino
- VExt[1] = AddStaticVehicleEx(432,-1242.5000000,439.0000000,7.3000000,0.0000000,95,10,15); //Rhino
- VExt[2] = AddStaticVehicleEx(432,-1236.5996100,439.0996100,7.3000000,0.0000000,95,10,15); //Rhino
- VExt[3] = AddStaticVehicleEx(548,-1286.0000000,502.2000100,18.3000000,0.0000000,245,245,15); //Cargobob
- VExt[4] = AddStaticVehicleEx(497,-1306.8000500,441.3999900,7.5000000,0.0000000,38,41,15); //Police Maverick
- VExt[5] = AddStaticVehicleEx(497,-1319.1999500,441.3999900,7.5000000,0.0000000,38,41,15); //Police Maverick
- VALQ[0] = AddStaticVehicleEx(425,-350.2999878,1827.5000000,43.0999985,270.0000000,95,10,15); //Hunter
- VALQ[1] = AddStaticVehicleEx(425,-350.7999878,1845.5999756,43.0999985,270.0000000,95,10,15); //Hunter
- VALQ[2] = AddStaticVehicleEx(432,-323.2000122,1888.0999756,42.4000015,180.0000000,95,10,15); //Rhino
- VALQ[3] = AddStaticVehicleEx(432,-311.8999939,1888.0999756,42.4000015,180.0000000,95,10,15); //Rhino
- VALQ[4] = AddStaticVehicleEx(520,-270.1000061,1895.5000000,43.2000008,120.0000000,-1,-1,15); //Hydra
- VALQ[5] = AddStaticVehicleEx(520,-262.5000000,1881.8000488,43.2000008,119.9981689,-1,-1,15); //Hydra
- VALQ[6] = AddStaticVehicleEx(447,-305.8999939,1817.6999512,42.4000015,70.0000000,32,32,15); //Seasparrow
- VALQ[7] = AddStaticVehicleEx(447,-300.6000061,1832.5999756,42.4000015,69.9992676,32,32,15); //Seasparrow
- VYKZ[0] = AddStaticVehicleEx(522,658.4000244,-1273.3000488,13.3000002,270.0000000,003,003,15); //NRG-500
- VYKZ[1] = AddStaticVehicleEx(522,658.2999878,-1278.5000000,13.3000002,270.0000000,003,003,15); //NRG-500
- VYKZ[2] = AddStaticVehicleEx(522,658.2998047,-1276.7998047,13.3000002,270.0000000,003,003,15); //NRG-500
- VYKZ[3] = AddStaticVehicleEx(522,658.3994141,-1275.0000000,13.3000002,270.0000000,003,003,15); //NRG-500
- VYKZ[4] = AddStaticVehicleEx(447,766.7000122,-1243.8000488,13.6999998,0.0000000,32,32,15); //Seasparrow
- VYKZ[5] = AddStaticVehicleEx(447,744.2999878,-1230.4000244,13.6000004,0.0000000,32,32,15); //Seasparrow
- VYKZ[6] = AddStaticVehicleEx(447,745.2999878,-1271.1999512,13.6999998,0.0000000,32,32,15); //Seasparrow
- VYKZ[7] = AddStaticVehicleEx(447,766.5999756,-1283.9000244,13.6999998,0.0000000,32,32,15); //Seasparrow
- return 1;
- }
- public OnGameModeExit()
- {
- return 1;
- }
- public OnPlayerRequestClass(playerid, classid)
- {
- TextDrawShowForPlayer(playerid, ImagemEntrada);
- SetPlayerPos(playerid, 1177.6891,-1323.6450,14.0831);
- SetPlayerCameraPos(playerid, 1186.7277,-1324.1056,13.5591);
- SetPlayerCameraLookAt(playerid, 75.7790,-1324.2499,13.5670);
- return 1;
- }
- public OnPlayerConnect(playerid)
- {
- TDInfo[playerid] = TextDrawCreate(520.0, 433.0, "www.birpg.vai.la"); // 288
- TextDrawBackgroundColor(TDInfo[playerid], 255);
- TextDrawLetterSize(TDInfo[playerid], 0.255555, 0.999999);
- TextDrawFont(TDInfo[playerid], 1);
- TextDrawTextSize(TDInfo[playerid], 630.000000,-18.000000);
- TextDrawColor(TDInfo[playerid], 16777215);
- TextDrawSetOutline(TDInfo[playerid], 0);
- TextDrawSetProportional(TDInfo[playerid], 1);
- TextDrawSetShadow(TDInfo[playerid], 1);
- TextDrawUseBox(TDInfo[playerid], 1);
- TextDrawBoxColor(TDInfo[playerid], 80);
- TextDrawShowForPlayer(playerid, TextInfo[playerid]);
- TextDrawShowForPlayer(playerid, TDInfo[playerid]);
- TextDrawShowForPlayer(playerid, ImagemEntrada);
- SetPlayerMapIcon( playerid, 12, 1480.8232,-1765.1841,18.7958, 23, 23, MAPICON_GLOBAL ); //MAP PREF
- SetPlayerMapIcon( playerid, 13, 1696.6418,-1668.6249,20.1959, 52, 52, MAPICON_GLOBAL ); //MAP B1
- SetPlayerMapIcon( playerid, 14, 1944.9922,-1771.0210,13.4595, 11, 52, MAPICON_GLOBAL ); //MAP POSTO
- SetPlayerMapIcon( playerid, 15, 2062.9685,-1831.1436,13.6237, 55, 52, MAPICON_GLOBAL ); //MAP LAVA JATO
- SetPlayerMapIcon( playerid, 16, 1366.4849,-1279.4615,13.6343, 6, 52, MAPICON_GLOBAL ); //MAP AMMU
- SetPlayerMapIcon( playerid, 17, 1459.6276,-1140.0510,24.2370, 45, 52, MAPICON_GLOBAL ); //MAP ZIP
- SetPlayerMapIcon( playerid, 18, 1458.5519,-1015.6572,26.2662, 52, 52, MAPICON_GLOBAL ); //MAP B2
- SetPlayerMapIcon( playerid, 19, 1173.9976,-1323.4882,14.9922, 22, 52, MAPICON_GLOBAL ); //MAP HOSP
- SetPlayerMapIcon( playerid, 20, 1310.2581,-1367.9867,13.0589, 28, 52, MAPICON_GLOBAL ); //MAP AUTO
- SetPlayerMapIcon( playerid, 21, 2154.5708,-1159.6045,23.3446, 26, 52, MAPICON_GLOBAL ); //MAP CONCESSIO
- SendClientMessage(playerid,0x45ADCBFF,"Fundador: UnGroup.");
- SendClientMessage(playerid,0x45ADCBFF,"Mapper: Sync.");
- SendClientMessage(playerid,0x54BC78FF,"Digite: /Relatorio - Caso tenha duvidas");
- SendClientMessage(playerid,0x54BC78FF,"Digite: /Comandos - Para saber os comandos do servidor.");
- SendClientMessage(playerid,0x0080C0FF,"Se precisar de ajuda procure um Administrador presente.");
- new String[100];
- new Nome[MAX_PLAYER_NAME];
- GetPlayerName(playerid, Nome, sizeof(Nome));
- format(String, sizeof(String), CONTAS, Nome);
- if(!dini_Exists(String))
- {
- format(String, sizeof(String), "{7FFFD4}Nick: {1E90FF}%s {1E90FF}Não Registrado\n\n{FFFFFF} Insira uma senha para registro:", Nome);
- ShowPlayerDialog(playerid, REGISTRO, DIALOG_STYLE_INPUT, "Registro", String, "Registrar", "Cancelar");
- }
- else
- {
- format(String, sizeof(String), "{7FFFD4}Nick: {1E90FF}%s {1E90FF}Registrado\n\n{FFFFFF} Insira sua senha para logar:", Nome);
- ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_INPUT, "Registro", String, "Logar", "Cancelar");
- }
- GetPlayerName(playerid, Nome, sizeof(Nome));
- if(PlayerInfo[playerid][AdmNivel] > 0)
- {
- format(String, sizeof(String),"O Administrador %s Conectou-se ao servidor",Nome);
- SendClientMessageToAll(0xFFFF00AA,String);
- GameTextForAll(String,5000,1);
- }
- format(String, sizeof(String),"%s Conectou-se ao servidor",Nome);
- SendClientMessageToAll(0xFFFF00AA,String);
- return 1;
- }
- public OnPlayerDisconnect(playerid, reason)
- {
- new String[156];
- new Nome[56];
- GetPlayerName(playerid, Nome, sizeof(Nome));
- format(String, sizeof(String),"%s Desconectou-se do servidor",Nome);
- SendClientMessageToAll(0xFFFF00AA,String);
- SalvarPlayer(playerid);
- return 1;
- }
- public OnPlayerSpawn(playerid)
- {
- for(new i;i<MAX_PLAYERS;i++)
- {
- if(PlayerInfo[i][Banido] == 1)
- {
- SendClientMessage(i,COR_ERRO,"Conta banida.");
- Kick(i);
- }
- }
- if(Preso[playerid] == 1)
- {
- SetPlayerPos(playerid, -1429.8289,-953.7226,200.9184);
- SendClientMessage(playerid,COR_ERRO,"Sentença nao cumprida,aguarde 3 minutos na prisao.");
- }
- SetTimerEx("SpawnInfoPlayer",1000,false,"i",playerid);
- TextDrawHideForPlayer(playerid, ImagemEntrada);
- return 1;
- }
- public SpawnInfoPlayer(playerid)
- {
- if(PlayerInfo[playerid][Org] == 0)
- {
- SetSpawnInfo(playerid, PlayerInfo[playerid][Org] = 0, 26, 1177.6891,-1323.6450,14.0831,271.5522, 0, 0, 0, 0, 0, 0);
- SendClientMessage(playerid,COR_ERRO,"Spawnar no Hospital (Digite: /medesbugar).");
- }
- if(PlayerInfo[playerid][Org] == 1)
- {
- SetSpawnInfo(playerid, PlayerInfo[playerid][Org] = 1, 280, 1526.8629,-1678.3560,5.8906,87.1098, 0, 0, 0, 0, 0, 0);
- SendClientMessage(playerid,COR_ERRO,"Spawnar na Policia Militar (Digite: /medesbugar).");
- }
- if(PlayerInfo[playerid][Org] == 2)
- {
- SetSpawnInfo(playerid, PlayerInfo[playerid][Org] = 2, 283, 1065.2797,-341.8790,73.9922,65.6003, 0, 0, 0, 0, 0, 0);
- SendClientMessage(playerid,COR_ERRO,"Spawnar na Policia Civil (Digite: /medesbugar).");
- }
- if(PlayerInfo[playerid][Org] == 3)
- {
- SetSpawnInfo(playerid, PlayerInfo[playerid][Org] = 3, 285, -1040.2094,-988.0400,129.2674,270.3685, 0, 0, 0, 0, 0, 0);
- SendClientMessage(playerid,COR_ERRO,"Spawnar no Grupo de Operaçoes Especiais (Digite: /medesbugar).");
- }
- if(PlayerInfo[playerid][Org] == 4)
- {
- SetSpawnInfo(playerid, PlayerInfo[playerid][Org] = 4, 287, -1306.3820,501.4540,11.1953,83.6093, 0, 0, 0, 0, 0, 0);
- SendClientMessage(playerid,COR_ERRO,"Spawnar no Exercito (Digite: /medesbugar).");
- }
- if(PlayerInfo[playerid][Org] == 5)
- {
- SetSpawnInfo(playerid, PlayerInfo[playerid][Org] = 5, 61, 241.5171+5,1869.5688,11.4609,11.1884, 0, 0, 0, 0, 0, 0);
- SendClientMessage(playerid,COR_ERRO,"Spawnar na Força Aeria (Digite: /medesbugar).");
- }
- if(PlayerInfo[playerid][Org] == 6)
- {
- SetSpawnInfo(playerid, PlayerInfo[playerid][Org] = 6, 107, 2510.4629,-1686.3031,13.5677,53.6305, 0, 0, 0, 0, 0, 0);
- SendClientMessage(playerid,COR_ERRO,"Spawnar na Groove Street (Digite: /medesbugar).");
- }
- if(PlayerInfo[playerid][Org] == 7)
- {
- SetSpawnInfo(playerid, PlayerInfo[playerid][Org] = 7, 117, 685.3583,-1275.2281,13.5589,82.5358, 0, 0, 0, 0, 0, 0);
- SendClientMessage(playerid,COR_ERRO,"Spawnar na Yakuza (Digite: /medesbugar).");
- }
- if(PlayerInfo[playerid][Org] == 8)
- {
- //SetSpawnInfo(playerid, PlayerInfo[playerid][Org] = 8, 28, 241.5171,1869.5688,11.4609,11.1884, 0, 0, 0, 0, 0, 0);
- SendClientMessage(playerid,COR_ERRO,"Spawnar na La Cosa Nostra (Digite: /medesbugar).");
- }
- if(PlayerInfo[playerid][Org] == 9)
- {
- SetSpawnInfo(playerid, PlayerInfo[playerid][Org] = 9, 104, 2075.4060,-1587.0817,13.4866,89.6070, 0, 0, 0, 0, 0, 0);
- SendClientMessage(playerid,COR_ERRO,"Spawnar na Ballas (Digite: /medesbugar).");
- }
- if(PlayerInfo[playerid][Org] == 10)
- {
- SetSpawnInfo(playerid, PlayerInfo[playerid][Org] = 10, 249, -311.5099,1768.3450,43.6406,7.2579, 0, 0, 0, 0, 0, 0);
- SendClientMessage(playerid,COR_ERRO,"Spawnar na Al Qaeda (Digite: /medesbugar).");
- }
- if(PlayerInfo[playerid][Org] == 11)
- {
- SetSpawnInfo(playerid, PlayerInfo[playerid][Org] = 11, 254, -344.8271,1582.1670,76.2606,356.7832, 0, 0, 0, 0, 0, 0);
- SendClientMessage(playerid,COR_ERRO,"Spawnar no Taliban (Digite: /medesbugar).");
- }
- }
- public OnPlayerDeath(playerid, killerid, reason)
- {
- if(IsPlayerConnected(killerid))
- {
- Matou[killerid]++;
- }
- Morreu[playerid]++;
- if(killerid == INVALID_PLAYER_ID)
- {
- SendDeathMessage(INVALID_PLAYER_ID,playerid,reason);
- }
- else
- {
- SendDeathMessage(killerid,playerid,reason);
- SetPlayerWantedLevel(killerid, GetPlayerWantedLevel(killerid)+1);
- SendClientMessage(killerid, COR_AVISO, "Seu nivel de procurado subiu.");
- }
- FazendoAuto[playerid] = 0;
- return 1;
- }
- public OnVehicleSpawn(vehicleid)
- {
- return 1;
- }
- public OnVehicleDeath(vehicleid, killerid)
- {
- return 1;
- }
- public OnPlayerText(playerid, text[])
- {
- return 1;
- }
- public OnPlayerCommandText(playerid, cmdtext[])
- {
- return 1;
- }
- public OnPlayerEnterVehicle(playerid, vehicleid, ispassenger)
- {
- if(PlayerInfo[playerid][Level] > 10)
- {
- if(PlayerInfo[playerid][Carteira] == 0)
- {
- SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+1);
- SendClientMessage(playerid, -1, "Seu nivel de procurado subiu devido nao ter carteira.");
- }
- }
- return 1;
- }
- public OnPlayerExitVehicle(playerid, vehicleid)
- {
- if(FazendoAuto[playerid] == 1)
- {
- SendClientMessage(playerid,COR_AVISO,"Voce saiu do carro da auto escola.");
- DestroyVehicle(466);
- FazendoAuto[playerid] = 0;
- SetPlayerInterior(playerid, 3); // Interior Do Local que Será Setado.
- SetPlayerPos(playerid, -2029.798339,-106.675910,1035.171875); // Setando ele Para Dentro do Interior.
- }
- return 1;
- }
- public OnPlayerStateChange(playerid, newstate, oldstate)
- {
- if(newstate == PLAYER_STATE_DRIVER) //O novo estado do player é de motorista.
- {
- if(VDaOrg(VExercito,0,2) && PlayerInfo[playerid][Org] != 4) return RemovePlayerFromVehicle(playerid), SendClientMessage(playerid, GetPlayerColor(playerid), "Voce nao é do Exercito.");
- if(VDaOrg(VForcaA,0,11) && PlayerInfo[playerid][Org] != 5) return RemovePlayerFromVehicle(playerid), SendClientMessage(playerid, GetPlayerColor(playerid), "Voce nao é da Força Aeria.");
- if(VDaOrg(VGoe,0,6) && PlayerInfo[playerid][Org] != 3) return RemovePlayerFromVehicle(playerid), SendClientMessage(playerid, GetPlayerColor(playerid), "Voce nao é do Grupo de Operaçoes Especiais.");
- if(VDaOrg(VTaliban,0,7) && PlayerInfo[playerid][Org] != 11) return RemovePlayerFromVehicle(playerid), SendClientMessage(playerid, GetPlayerColor(playerid), "Voce nao é do Taliban.");
- if(VDaOrg(VDP,0,27) && PlayerInfo[playerid][Org] != 1) return RemovePlayerFromVehicle(playerid), SendClientMessage(playerid, GetPlayerColor(playerid), "Voce nao é da Policia Militar.");
- if(VDaOrg(VGroove,0,2) && PlayerInfo[playerid][Org] != 6) return RemovePlayerFromVehicle(playerid), SendClientMessage(playerid, GetPlayerColor(playerid), "Voce nao é da Groove Street.");
- if(VDaOrg(VExt,0,5) && PlayerInfo[playerid][Org] != 4) return RemovePlayerFromVehicle(playerid), SendClientMessage(playerid, GetPlayerColor(playerid), "Voce nao é do Exercito.");
- if(VDaOrg(VALQ,0,7) && PlayerInfo[playerid][Org] != 10) return RemovePlayerFromVehicle(playerid), SendClientMessage(playerid, GetPlayerColor(playerid), "Voce nao é da Al Qaeda.");
- if(VDaOrg(VYKZ,0,7) && PlayerInfo[playerid][Org] != 7) return RemovePlayerFromVehicle(playerid), SendClientMessage(playerid, GetPlayerColor(playerid), "Voce nao é da Yakuza.");
- }
- return 1;
- }
- public OnPlayerEnterCheckpoint(playerid)
- {
- carroauto[playerid] = CreateVehicle(466, 369.7737,-2033.6257,7.6719,0.4808, -1, -1, 60);
- if(CPS_IsPlayerInCheckpoint(playerid,ComecaAuto))
- {
- PutPlayerInVehicle(playerid, carroauto[playerid], 0);
- SetPlayerInterior(playerid, 0);
- FazendoAuto[playerid] = 1;
- }
- if(CPS_IsPlayerInCheckpoint(playerid,AcabarAuto))
- {
- if(FazendoAuto[playerid] == 1)
- {
- SendClientMessage(playerid,COR_AVISO,"Voce passou no teste da auto-escola.");
- SendClientMessage(playerid,COR_AVISO,"Parabens.Compre seu carro em uma concessionaria.");
- GivePlayerMoney(playerid, -5000);
- PlayerInfo[playerid][Carteira] = 1;
- FazendoAuto[playerid] = 0;
- }
- if(PlayerInfo[playerid][Carteira] == 1)
- {
- SendClientMessage(playerid,COR_AVISO,"Voce ja tem carteira de motorista.");
- return 0;
- }
- }
- if(CPS_IsPlayerInCheckpoint(playerid,VendAmmu))
- {
- ShowPlayerDialog(playerid, 623, DIALOG_STYLE_LIST, "Venda de Armas", "9mm\nSilenced 9mm\nCountry Rifle\nColete", "OK", "Cancelar");
- return 1;
- }
- return 1;
- }
- public OnPlayerLeaveCheckpoint(playerid)
- {
- if(!CPS_IsPlayerInCheckpoint(playerid,CPCofreB1))
- {
- if(PlayerInfo[playerid][Org] > 5)
- {
- KillTimer(TempoRoubo[playerid]);
- SendClientMessage(playerid,COR_ERRO, "Voce saiu do local de roubo.");
- return 1;
- }
- }
- if(!CPS_IsPlayerInCheckpoint(playerid,CPCofreB2))
- {
- if(PlayerInfo[playerid][Org] > 5)
- {
- KillTimer(TempoRoubo[playerid]);
- SendClientMessage(playerid,COR_ERRO, "Voce saiu do local de roubo.");
- return 1;
- }
- }
- if(!CPS_IsPlayerInCheckpoint(playerid,CPCofreAmmu))
- {
- if(PlayerInfo[playerid][Org] > 5)
- {
- KillTimer(TempoRoubo[playerid]);
- SendClientMessage(playerid,COR_ERRO, "Voce saiu do local de roubo.");
- return 1;
- }
- }
- if(!CPS_IsPlayerInCheckpoint(playerid,CPCofrePref))
- {
- if(PlayerInfo[playerid][Org] > 5)
- {
- KillTimer(TempoRoubo[playerid]);
- SendClientMessage(playerid,COR_ERRO, "Voce saiu do local de roubo.");
- return 1;
- }
- }
- return 1;
- }
- public RoubarBanco(playerid)
- {
- if(CPS_IsPlayerInCheckpoint(playerid,CPCofreB1))
- {
- new Nome[100];
- GetPlayerName(playerid, Nome, sizeof(Nome));
- new String[200];
- TempoRoubo[playerid] = SetTimerEx("TimerRoubo",30000,false,"i",playerid);
- SendClientMessage(playerid,GetPlayerColor(playerid), "Voce começou o roubo,aguarde 30 segundos.");
- SendClientMessageToAll(COR_ROUBO, "===========================ALERTA DE ROUBO===========================");
- SendClientMessageToAll(COR_ROUBO, "Local: Banco Municipal de Los Santos");
- format(String, sizeof(String), "Suspeito: %s", Nome);
- SendClientMessageToAll(COR_ROUBO, String);
- SendClientMessageToAll(COR_ROUBO, "Referencia: Loja ZIP");
- SendClientMessageToAll(COR_ROUBO, "Rua: Mulholland Intersection");
- SendClientMessageToAll(COR_ROUBO, "======================================================================");
- SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+1);
- Roubando[playerid] = 1;
- return 1;
- }
- if(CPS_IsPlayerInCheckpoint(playerid,CPCofreAmmu))
- {
- new Nome[100];
- GetPlayerName(playerid, Nome, sizeof(Nome));
- new String[200];
- TempoRoubo[playerid] = SetTimerEx("TimerRoubo",30000,false,"i",playerid);
- SendClientMessage(playerid,GetPlayerColor(playerid), "Voce começou o roubo,aguarde 30 segundos.");
- SendClientMessageToAll(COR_ROUBO, "===========================ALERTA DE ROUBO===========================");
- SendClientMessageToAll(COR_ROUBO, "Local: Loja de Armas (Ammunation)");
- format(String, sizeof(String), "Suspeito: %s", Nome);
- SendClientMessageToAll(COR_ROUBO, String);
- SendClientMessageToAll(COR_ROUBO, "Referencia: Proximo a Auto escola");
- SendClientMessageToAll(COR_ROUBO, "Rua: Market");
- SendClientMessageToAll(COR_ROUBO, "======================================================================");
- SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+1);
- Roubando[playerid] = 1;
- return 1;
- }
- if(CPS_IsPlayerInCheckpoint(playerid,CPCofreB2))
- {
- new Nome[100];
- GetPlayerName(playerid, Nome, sizeof(Nome));
- new String[200];
- TempoRoubo[playerid] = SetTimerEx("TimerRoubo",30000,false,"i",playerid);
- SendClientMessage(playerid,GetPlayerColor(playerid), "Voce começou o roubo,aguarde 30 segundos.");
- SendClientMessageToAll(COR_ROUBO, "===========================ALERTA DE ROUBO===========================");
- SendClientMessageToAll(COR_ROUBO, "Local: Banco Central");
- format(String, sizeof(String), "Suspeito: %s", Nome);
- SendClientMessageToAll(COR_ROUBO, String);
- SendClientMessageToAll(COR_ROUBO, "Referencia: Proximo a Prefeitura");
- SendClientMessageToAll(COR_ROUBO, "Rua: Little Mexico");
- SendClientMessageToAll(COR_ROUBO, "======================================================================");
- SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+1);
- Roubando[playerid] = 1;
- return 1;
- }
- if(CPS_IsPlayerInCheckpoint(playerid,CPCofrePref))
- {
- new Nome[100];
- GetPlayerName(playerid, Nome, sizeof(Nome));
- new String[200];
- TempoRoubo[playerid] = SetTimerEx("TimerRoubo",30000,false,"i",playerid);
- SendClientMessage(playerid,GetPlayerColor(playerid), "Voce começou o roubo,aguarde 30 segundos.");
- SendClientMessageToAll(COR_ROUBO, "===========================ALERTA DE ROUBO===========================");
- SendClientMessageToAll(COR_ROUBO, "Local: Prefeitura");
- format(String, sizeof(String), "Suspeito: %s", Nome);
- SendClientMessageToAll(COR_ROUBO, String);
- SendClientMessageToAll(COR_ROUBO, "Referencia: Prefeitura");
- SendClientMessageToAll(COR_ROUBO, "Rua: Commerce");
- SendClientMessageToAll(COR_ROUBO, "======================================================================");
- SetPlayerWantedLevel(playerid, GetPlayerWantedLevel(playerid)+1);
- Roubando[playerid] = 1;
- return 1;
- }
- else
- {
- SendClientMessage(playerid,COR_ERRO, "Voce nao esta no local de roubo.");
- }
- return 1;
- }
- public TimerRoubo(playerid)
- {
- SendClientMessage(playerid,GetPlayerColor(playerid), "Parabens.Roubo bem sucedido | R$ 15,000.");
- GivePlayerMoney(playerid, 15000);
- BlockRoubo[playerid] = 1;
- SetTimerEx("OpenRoubo",30000,false,"i",playerid);
- Roubando[playerid] = 0;
- return 1;
- }
- public OpenRoubo(playerid)
- {
- BlockRoubo[playerid] = 0;
- return 1;
- }
- public OnPlayerEnterRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnPlayerLeaveRaceCheckpoint(playerid)
- {
- return 1;
- }
- public OnRconCommand(cmd[])
- {
- return 1;
- }
- public OnPlayerRequestSpawn(playerid)
- {
- return 1;
- }
- public OnObjectMoved(objectid)
- {
- return 1;
- }
- public OnPlayerObjectMoved(playerid, objectid)
- {
- return 1;
- }
- public OnPlayerPickUpPickup(playerid, pickupid)
- {
- if(pickupid == EntradaGOE)
- {
- SetPlayerInterior(playerid, 3); // Interior Do Local que Será Setado.
- SetPlayerPos(playerid, 288.745971,169.350997,1007.171875); // Setando ele Para Dentro do Interior.
- }
- if(pickupid == SaidaGOE)
- {
- SetPlayerInterior(playerid, 0); // Interior Do Local que Será Setado.
- SetPlayerPos(playerid, -1039.5830,-987.7564,129.2672); // Setando ele Para Dentro do Interior.
- }
- if(pickupid == EntradaBallas)
- {
- SetPlayerInterior(playerid, 4); // Interior Do Local que Será Setado.
- SetPlayerPos(playerid, 302.180999,300.722991,999.148437); // Setando ele Para Dentro do Interior.
- }
- if(pickupid == EntradaYkz)
- {
- SetPlayerInterior(playerid, 6); // Interior Do Local que Será Setado.
- SetPlayerPos(playerid, 346.870025,309.259033,999.155700); // Setando ele Para Dentro do Interior.
- }
- if(pickupid == SaidaBallas)
- {
- SetPlayerInterior(playerid, 0); // Interior Do Local que Será Setado.
- SetPlayerPos(playerid, 2069.1926,-1583.7417,13.4856); // Setando ele Para Dentro do Interior.
- }
- if(pickupid == SaidaYkz)
- {
- SetPlayerInterior(playerid, 0); // Interior Do Local que Será Setado.
- SetPlayerPos(playerid, 687.3737,-1275.3917,13.5577); // Setando ele Para Dentro do Interior.
- }
- if(pickupid == HospLoja)
- {
- SetPlayerHealth(playerid, 100);
- SendClientMessage(playerid,-1,"Vida recuperada.");
- }
- if(pickupid == EntradaEmprego)
- {
- ShowPlayerDialog(playerid, DIALOG_EMPREGO, DIALOG_STYLE_LIST, "LISTA DE EMPREGOS", "Advogado\nSequestrador\nAposentado\nEstudante", "OK", "CANCELAR");
- }
- if(pickupid == EntradaAuto)
- {
- SetPlayerInterior(playerid, 3); // Interior Do Local que Será Setado.
- SetPlayerPos(playerid, -2029.798339,-106.675910,1035.171875); // Setando ele Para Dentro do Interior.
- }
- if(pickupid == EntradaDP)
- {
- SetPlayerInterior(playerid, 6); // Interior Do Local que Será Setado.
- SetPlayerPos(playerid, 244.9577,67.2724,1003.6406); // Setando ele Para Dentro do Interior.
- }
- if(pickupid == EntradaPREF)
- {
- SetPlayerInterior(playerid, 3); // Interior Do Local que Será Setado.
- SetPlayerPos(playerid, 384.808624,173.804992,1008.382812); // Setando ele Para Dentro do Interior.
- }
- if(pickupid == EntradaB1)
- {
- SetPlayerInterior(playerid, 0); // Interior Do Local que Será Setado.
- SetPlayerPos(playerid, 2319.714843,-14.838361,26.749565); // Setando ele Para Dentro do Interior.
- }
- if(pickupid == EntradaB2)
- {
- SetPlayerInterior(playerid, 18); // Interior Do Local que Será Setado.
- SetPlayerPos(playerid, 1710.433715,-1669.379272,20.225049); // Setando ele Para Dentro do Interior.
- }
- if(pickupid == EntradaAmmu)
- {
- SetPlayerInterior(playerid, 1); // Interior Do Local que Será Setado.
- SetPlayerPos(playerid, 286.148986,-40.644397,1001.515625); // Setando ele Para Dentro do Interior.
- }
- if(pickupid == Entrada247)
- {
- SetPlayerInterior(playerid, 10); // Interior Do Local que Será Setado.
- SetPlayerPos(playerid, 6.091179,-29.271898,1003.549438); // Setando ele Para Dentro do Interior.
- }
- if(pickupid == EntradaPC)
- {
- SetPlayerInterior(playerid, 10); // Interior Do Local que Será Setado.
- SetPlayerPos(playerid, 246.375991,109.245994,1003.218750); // Setando ele Para Dentro do Interior.
- }
- if(pickupid == EntradaGroove)
- {
- SetPlayerInterior(playerid, 3); // Interior Do Local que Será Setado.
- SetPlayerPos(playerid, 2496.049804,-1695.238159,1014.742187); // Setando ele Para Dentro do Interior.
- }
- if(pickupid == EntradaZIP)
- {
- SetPlayerInterior(playerid, 18); // Interior Do Local que Será Setado.
- SetPlayerPos(playerid, 161.391006,-93.159156,1001.804687); // Setando ele Para Dentro do Interior.
- }
- if(pickupid == SaidaZIP)
- {
- SetPlayerInterior(playerid, 0); // Interior Do Local que Será Setado.
- SetPlayerPos(playerid, 1458.1550,-1141.7139,23.5755); // Setando ele Para Dentro do Interior.
- }
- if(pickupid == SaidaPref)
- {
- SetPlayerInterior(playerid, 0); // Interior Do Local que Será Setado.
- SetPlayerPos(playerid, 1481.1399,-1765.4791,18.3122); // Setando ele Para Dentro do Interior.
- }
- if(pickupid == SaidaDP)
- {
- SetPlayerInterior(playerid, 0); // Interior Do Local que Será Setado.
- SetPlayerPos(playerid, 1551.9775,-1675.6780,15.5391); // Setando ele Para Dentro do Interior.
- }
- if(pickupid == Saida247)
- {
- SetPlayerInterior(playerid, 0); // Interior Do Local que Será Setado.
- SetPlayerPos(playerid, 1351.5969,-1755.6395,12.9037); // Setando ele Para Dentro do Interior.
- }
- if(pickupid == SaidaAmmu)
- {
- SetPlayerInterior(playerid, 0); // Interior Do Local que Será Setado.
- SetPlayerPos(playerid, 1364.0571,-1279.3065,13.0618); // Setando ele Para Dentro do Interior.
- }
- if(pickupid == SaidaB1)
- {
- SetPlayerInterior(playerid, 0); // Interior Do Local que Será Setado.
- SetPlayerPos(playerid, 1459.9851,-1016.7593,25.2639); // Setando ele Para Dentro do Interior.
- }
- if(pickupid == SaidaB2)
- {
- SetPlayerInterior(playerid, 0); // Interior Do Local que Será Setado.
- SetPlayerPos(playerid, 1697.1259,-1668.0676,19.7117); // Setando ele Para Dentro do Interior.
- }
- if(pickupid == SaidaPC)
- {
- SetPlayerInterior(playerid, 0); // Interior Do Local que Será Setado.
- SetPlayerPos(playerid, 1059.3652,-343.2811,73.9922); // Setando ele Para Dentro do Interior.
- }
- if(pickupid == SaidaGroove)
- {
- SetPlayerInterior(playerid, 0); // Interior Do Local que Será Setado.
- SetPlayerPos(playerid, 2495.2290,-1687.1818,13.5150); // Setando ele Para Dentro do Interior.
- }
- if(pickupid == Limparficha)
- {
- if(GetPlayerMoney(playerid) < 10000) return SendClientMessage(playerid,-1,"(DELEGACIA) Dinheiro insuficiente,R$10,000.");
- SetPlayerWantedLevel(playerid, -10000);
- SendClientMessage(playerid,-1,"(DELEGACIA) Ficha limpar,nao cometa mais crimes.");
- }
- if(pickupid == EquiparPM)
- {
- if(PlayerInfo[playerid][Org] == 1)
- {
- SetPlayerArmour(playerid, 100);
- SetPlayerHealth(playerid, 100);
- GivePlayerWeapon(playerid, 24, 200);
- GivePlayerWeapon(playerid, 27, 200);
- GivePlayerWeapon(playerid, 29, 800);
- GivePlayerWeapon(playerid, 31, 800);
- GivePlayerWeapon(playerid, 25, 200);
- }
- }
- if(pickupid == EquiparPC)
- {
- if(PlayerInfo[playerid][Org] == 2)
- {
- SetPlayerArmour(playerid, 100);
- SetPlayerHealth(playerid, 100);
- GivePlayerWeapon(playerid, 24, 200);
- GivePlayerWeapon(playerid, 27, 200);
- GivePlayerWeapon(playerid, 29, 800);
- GivePlayerWeapon(playerid, 31, 800);
- }
- }
- if(pickupid == EquiparFA)
- {
- if(PlayerInfo[playerid][Org] == 5)
- {
- SetPlayerArmour(playerid, 100);
- SetPlayerHealth(playerid, 100);
- GivePlayerWeapon(playerid, 24, 200);
- GivePlayerWeapon(playerid, 27, 200);
- GivePlayerWeapon(playerid, 29, 800);
- GivePlayerWeapon(playerid, 31, 800);
- GivePlayerWeapon(playerid, 8, 1);
- }
- }
- if(pickupid == EquiparGroove)
- {
- if(PlayerInfo[playerid][Org] == 6)
- {
- SetPlayerArmour(playerid, 100);
- SetPlayerHealth(playerid, 100);
- GivePlayerWeapon(playerid, 24, 200);
- GivePlayerWeapon(playerid, 25, 200);
- GivePlayerWeapon(playerid, 29, 800);
- GivePlayerWeapon(playerid, 30, 800);
- }
- }
- if(pickupid == EquiparBallas)
- {
- if(PlayerInfo[playerid][Org] == 9)
- {
- SetPlayerArmour(playerid, 100);
- SetPlayerHealth(playerid, 100);
- GivePlayerWeapon(playerid, 24, 200);
- GivePlayerWeapon(playerid, 25, 200);
- GivePlayerWeapon(playerid, 29, 800);
- GivePlayerWeapon(playerid, 30, 800);
- }
- }
- if(pickupid == EquiparYkz)
- {
- if(PlayerInfo[playerid][Org] == 7)
- {
- SetPlayerArmour(playerid, 100);
- SetPlayerHealth(playerid, 100);
- GivePlayerWeapon(playerid, 24, 200);
- GivePlayerWeapon(playerid, 25, 200);
- GivePlayerWeapon(playerid, 29, 800);
- GivePlayerWeapon(playerid, 30, 800);
- }
- }
- if(pickupid == EquiparEXT)
- {
- if(PlayerInfo[playerid][Org] == 4)
- {
- SetPlayerArmour(playerid, 100);
- SetPlayerHealth(playerid, 100);
- GivePlayerWeapon(playerid, 24, 200);
- GivePlayerWeapon(playerid, 27, 200);
- GivePlayerWeapon(playerid, 29, 800);
- GivePlayerWeapon(playerid, 31, 800);
- }
- }
- if(pickupid == EquiparGOE)
- {
- if(PlayerInfo[playerid][Org] == 3)
- {
- SetPlayerArmour(playerid, 100);
- SetPlayerHealth(playerid, 100);
- GivePlayerWeapon(playerid, 24, 200);
- GivePlayerWeapon(playerid, 27, 200);
- GivePlayerWeapon(playerid, 29, 800);
- GivePlayerWeapon(playerid, 31, 800);
- GivePlayerWeapon(playerid, 34, 200);
- }
- }
- if(pickupid == EquiparAQ)
- {
- if(PlayerInfo[playerid][Org] == 10)
- {
- SetPlayerArmour(playerid, 100);
- SetPlayerHealth(playerid, 100);
- GivePlayerWeapon(playerid, 24, 200);
- GivePlayerWeapon(playerid, 25, 200);
- GivePlayerWeapon(playerid, 29, 800);
- GivePlayerWeapon(playerid, 34, 200);
- }
- }
- if(pickupid == EquiparTB)
- {
- if(PlayerInfo[playerid][Org] == 11)
- {
- SetPlayerArmour(playerid, 100);
- SetPlayerHealth(playerid, 100);
- GivePlayerWeapon(playerid, 24, 200);
- GivePlayerWeapon(playerid, 25, 200);
- GivePlayerWeapon(playerid, 29, 800);
- GivePlayerWeapon(playerid, 34, 200);
- }
- }
- if(pickupid == CofreB1){return 1;}
- if(pickupid == CofreAmmu){return 1;}
- if(pickupid == CofreB2){return 1;}
- if(pickupid == CofrePref){return 1;}
- return 1;
- }
- public OnVehicleMod(playerid, vehicleid, componentid)
- {
- return 1;
- }
- public OnVehiclePaintjob(playerid, vehicleid, paintjobid)
- {
- return 1;
- }
- public OnVehicleRespray(playerid, vehicleid, color1, color2)
- {
- return 1;
- }
- public OnPlayerSelectedMenuRow(playerid, row)
- {
- return 1;
- }
- public OnPlayerExitedMenu(playerid)
- {
- return 1;
- }
- public OnPlayerInteriorChange(playerid, newinteriorid, oldinteriorid)
- {
- return 1;
- }
- public OnPlayerKeyStateChange(playerid, newkeys, oldkeys)
- {
- return 1;
- }
- public OnRconLoginAttempt(ip[], password[], success)
- {
- if(success == 1)
- {
- printf("IP: %s conseguiu logar na rcon", ip);
- }
- if(success == 0)
- {
- printf("O IP: %s tentou sem sucesso logar na rcon", ip);
- }
- return 1;
- }
- public OnPlayerUpdate(playerid)
- {
- new weap = GetPlayerWeapon(playerid);
- new jetpak = GetPlayerSpecialAction(playerid);
- new Float:life; GetPlayerHealth(playerid, life);
- if(weap == 35 || weap == 36 || weap == 38)
- {
- Ban(playerid);
- }
- if(PlayerInfo[playerid][Vip] == 0)
- {
- if(weap == 9 || weap == 16 || weap == 18 || weap == 26 || weap == 32 || weap == 37)
- {
- Ban(playerid);
- }
- if(jetpak == SPECIAL_ACTION_USEJETPACK)
- {
- Ban(playerid);
- }
- }
- if(Godmodeon[playerid] == 1)
- {
- if(life < 100)
- {
- SetPlayerHealth(playerid, 100);
- }
- }
- if(Godmodeon[playerid] == 0)
- {
- if(life > 100)
- {
- SendClientMessage(playerid,-1,"Banido por usar God Mode.");
- Ban(playerid);
- }
- }
- if(IsPlayerInAnyVehicle(playerid) || !IsPlayerInAnyVehicle(playerid))
- {
- new Float:Velocity[3];
- new speed = GetPlayerVelocity(playerid, Velocity[0], Velocity[1], Velocity[2]);
- if(speed >= 500.0)
- {
- new string[256];
- new name[100];
- GetPlayerName(playerid, name, sizeof(name));
- format(string, sizeof(string), "(ANTI-SPEED)%s[%d] foi banido por estar a mais de 500km/h.",name,playerid);
- SendClientMessageToAll(COR_AVISOADM,string);
- Ban(playerid);
- }
- if(speed >= 380.0)
- {
- for(new i;i<MAX_PLAYERS;i++)
- {
- new string[256];
- new name[100];
- GetPlayerName(playerid, name, sizeof(name));
- if(PlayerInfo[i][AdmNivel] > 0)
- {
- format(string, sizeof(string), "(ANTI-SPEED)%s[%d] esta a mais de 380km/h,/espiar nele.",name,playerid);
- SendClientMessage(i,COR_AVISOADM,string);
- }
- }
- }
- }
- return 1;
- }
- public OnPlayerStreamIn(playerid, forplayerid)
- {
- return 1;
- }
- public OnPlayerStreamOut(playerid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamIn(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnVehicleStreamOut(vehicleid, forplayerid)
- {
- return 1;
- }
- public OnPlayerClickPlayer(playerid, clickedplayerid, source)
- {
- if(PlayerInfo[playerid][TelesVIP] > 0)
- {
- new Float:GetPos[3];
- new Nome[150];
- GetPlayerName(playerid, Nome, sizeof(Nome));
- new String[256];
- new Infoteles[256];
- new MenosTele = PlayerInfo[playerid][TelesVIP]-1;
- PlayerInfo[playerid][TelesVIP] = MenosTele;
- GetPlayerPos(clickedplayerid, GetPos[0], GetPos[1], GetPos[2]);
- SetPlayerPos(playerid, GetPos[0], GetPos[1], GetPos[2]);
- format(String, sizeof(String), "(INFO) O player vip %s foi ate voce.", Nome);
- SendClientMessage(clickedplayerid,COR_AVISO,String);
- SendClientMessage(playerid,COR_AVISO,"(VIP) Voce foi teleportado ate o player.");
- format(Infoteles, sizeof(Infoteles), "(VIP) Teleportes VIP atuais: %d", PlayerInfo[playerid][TelesVIP]);
- SendClientMessage(playerid,COR_AVISO,Infoteles);
- }else{SendClientMessage(playerid,COR_AVISO,"Seus teleportes vip acabaram.");}
- return 1;
- }
- public OnDialogResponse(playerid, dialogid, response, listitem, inputtext[])
- {
- if(dialogid == REGISTRO)
- {
- if(response)
- {
- if(!strlen(inputtext))
- {
- new Nome[MAX_PLAYER_NAME];
- GetPlayerName(playerid, Nome, sizeof(Nome));
- new String[100];
- format(String, sizeof(String), "{7FFFD4}Nick: {1E90FF}%s {1E90FF}Não Registrado\n\n{FFFFFF} Insira uma senha para se registrar:", Nome);
- ShowPlayerDialog(playerid, REGISTRO, DIALOG_STYLE_INPUT, "Registro", String, "Registrar", "Cancelar");
- SendClientMessage(playerid,0x1E90FFAA,"Senha invalida, digite uma senha válida");
- return 1;
- }
- new Nome[MAX_PLAYER_NAME];
- GetPlayerName(playerid, Nome, sizeof(Nome));
- new String[100];
- format(String, sizeof(String), CONTAS, Nome);
- dini_Create(String);
- dini_Set(String,"Senha",inputtext);
- dini_IntSet(String,"Dinheiro",0);
- dini_IntSet(String,"Vida", 100);
- dini_IntSet(String,"Colete", 0);
- dini_IntSet(String,"Matou",0);
- dini_IntSet(String,"Morreu",0);
- dini_IntSet(String,"Logou",0);
- dini_IntSet(String,"Level",0);
- dini_IntSet(String,"Crack",0);
- dini_IntSet(String,"Maconha",0);
- dini_IntSet(String,"Carteira",0);
- dini_IntSet(String,"Skin",26);
- dini_IntSet(String,"Banido",0);
- dini_IntSet(String,"Org",0);
- dini_IntSet(String,"Cargo",0);
- dini_IntSet(String,"Cor", 0xF2F2F2FF);
- dini_IntSet(String,"Vip", 0);
- dini_IntSet(String,"TelesVIP", 0);
- dini_IntSet(String,"Administrador", 0);
- SetPlayerColor(playerid, COR_CIVIL);
- GivePlayerMoney(playerid, 60000);
- PlayerInfo[playerid][AdmNivel] = 0;
- return 1;
- }
- else
- {
- SendClientMessage(playerid, 0xFF0000AA, "Você foi expulso do servidor. Motivo: Cancelou o login!!");
- Kick(playerid);
- return 1;
- }
- }
- if(dialogid == LOGIN)
- {
- if(response)
- {
- if(!strlen(inputtext))
- {
- new Nome[MAX_PLAYER_NAME];
- GetPlayerName(playerid, Nome, sizeof(Nome));
- new String[100];
- format(String, sizeof(String), "{7FFFD4}Nick: {1E90FF}%s {1E90FF}Registrado\n\n{FFFFFF} Insira sua senha para logar:", Nome);
- ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_INPUT, "Login", String, "Logar", "Cancelar");
- SendClientMessage(playerid,0x1E90FFAA,"Senha Incorreta !");
- return 1;
- }
- new Nome[MAX_PLAYER_NAME];
- GetPlayerName(playerid, Nome, sizeof(Nome));
- new String[100];
- format(String, sizeof(String), CONTAS, Nome);
- if(!strcmp(inputtext,dini_Get(String,"Senha"),false))
- {
- SetarPlayer(playerid);
- Logou[playerid]++;
- SetTimerEx("LevelUp",180000,true,"i",playerid);
- SetTimerEx("LevelUpVIP",542500,true,"i",playerid);
- return 1;
- }
- else
- {
- SendClientMessage(playerid,0x00FF00AA,"Senha incorreta digite-a novamente");
- format(String, sizeof(String), "{7FFFD4}Nick: {1E90FF}%s {1E90FF}Registrado\n\n{FFFFFF} Insira sua senha para logar:", Nome);
- ShowPlayerDialog(playerid, LOGIN, DIALOG_STYLE_INPUT, "Login", String, "Logar", "Cancelar");
- }
- return 1;
- }
- else
- {
- SendClientMessage(playerid, 0xFF0000AA, "Você foi expulso do servidor. Motivo: Cancelou o login!!");
- Kick(playerid);
- return 1;
- }
- }
- if(dialogid == DIALOG_NICK)
- {
- if(response)
- {
- new AntNome[100];
- new String[100];
- new String2[100];
- GetPlayerName(playerid, AntNome, sizeof(AntNome));
- format(String, sizeof(String), CONTAS, AntNome);
- format(String2, sizeof(String2), CONTAS, inputtext);
- SetPlayerName(playerid, inputtext);
- dini_Remove(String);
- dini_Create(String2);
- SalvarPlayer(playerid);
- SendClientMessage(playerid, GetPlayerColor(playerid), "(INFO)Nome trocado.Ao relogar altere seu Name SA:MP.");
- format(String, sizeof(String), "(INFO)%s trocou seu nome para: %s", AntNome, inputtext);
- SendClientMessageToAll(COR_AVISOADM,String);
- OpenNick[playerid] = 0;
- }
- else
- {
- SendClientMessage(playerid, GetPlayerColor(playerid), "(INFO)Troca de nome cancelada.");
- OpenNick[playerid] = 0;
- }
- }
- if(dialogid == DIALOG_VIP)
- {
- if(response)
- {
- if(listitem == 0)
- {
- GivePlayerWeapon(playerid, 1, 1);
- SendClientMessage(playerid,COR_AVISO,"Voce ganhou arma vip: Brass Knuckles");
- return 0;
- }
- if(listitem == 1)
- {
- GivePlayerWeapon(playerid, 4, 1);
- SendClientMessage(playerid,COR_AVISO,"Voce ganhou arma vip: Knife");
- return 0;
- }
- if(listitem == 2)
- {
- GivePlayerWeapon(playerid, 6, 1);
- SendClientMessage(playerid,COR_AVISO,"Voce ganhou arma vip: Shovel");
- return 0;
- }
- if(listitem == 3)
- {
- GivePlayerWeapon(playerid, 8, 1);
- SendClientMessage(playerid,COR_AVISO,"Voce ganhou arma vip: Katana");
- return 0;
- }
- if(listitem == 4)
- {
- GivePlayerWeapon(playerid, 9, 1);
- SendClientMessage(playerid,COR_AVISO,"Voce ganhou arma vip: Chainsaw");
- return 0;
- }
- if(listitem == 5)
- {
- GivePlayerWeapon(playerid, 16, 50);
- SendClientMessage(playerid,COR_AVISO,"Voce ganhou arma vip: Grenade");
- return 0;
- }
- if(listitem == 6)
- {
- GivePlayerWeapon(playerid, 18, 50);
- SendClientMessage(playerid,COR_AVISO,"Voce ganhou arma vip: Molotov");
- return 0;
- }
- if(listitem == 7)
- {
- GivePlayerWeapon(playerid, 24, 5000);
- SendClientMessage(playerid,COR_AVISO,"Voce ganhou arma vip: Desert Eagle");
- return 0;
- }
- if(listitem == 8)
- {
- GivePlayerWeapon(playerid, 26, 5000);
- SendClientMessage(playerid,COR_AVISO,"Voce ganhou arma vip: Sawnoff");
- return 0;
- }
- if(listitem == 9)
- {
- GivePlayerWeapon(playerid, 32, 5000);
- SendClientMessage(playerid,COR_AVISO,"Voce ganhou arma vip: Tec-9");
- return 0;
- }
- if(listitem == 10)
- {
- GivePlayerWeapon(playerid, 37, 5000);
- SendClientMessage(playerid,COR_AVISO,"Voce ganhou arma vip: Flamethrower");
- return 0;
- }
- if(listitem == 11)
- {
- if(PlayerInfo[playerid][Vip] >= 2)
- {
- SetPlayerSpecialAction(playerid, 2);
- SendClientMessage(playerid,COR_AVISO,"Voce ganhou JetPack VIP");
- return 0;
- }
- else{return SendClientMessage(playerid,COR_AVISO,"Apenas para VIP maior que 2.");}
- }
- }
- }
- if(dialogid == DIALOG_EMPREGO)
- {
- if(response)
- {
- if(listitem == 0)
- {
- PlayerInfo[playerid][Org] = 12;
- SetPlayerColor(playerid, COR_Advogado);
- SendClientMessage(playerid, GetPlayerColor(playerid), "(INFO)Voce virou advogado.");
- SetPlayerSkin(playerid, 3);
- SendClientMessage(playerid, GetPlayerColor(playerid), "(COMANDOS)Seu comando de advogado é /Liberar [id].");
- SendClientMessage(playerid, GetPlayerColor(playerid), "(COMANDOS)Voce recebera um salario a cada level.");
- }
- if(listitem == 1)
- {
- PlayerInfo[playerid][Org] = 13;
- SetPlayerColor(playerid, COR_Sequestrador);
- SendClientMessage(playerid, GetPlayerColor(playerid), "(INFO)Voce virou sequestrador.");
- SetPlayerSkin(playerid, 33);
- SendClientMessage(playerid, GetPlayerColor(playerid), "(COMANDOS)Seu comando de sequestrador é /Sequestrar [id].");
- SendClientMessage(playerid, GetPlayerColor(playerid), "(COMANDOS)Voce recebera um salario a cada level.");
- SendClientMessage(playerid, GetPlayerColor(playerid), "(COMANDOS)Voce recebera um salario a cada level.");
- }
- if(listitem == 2)
- {
- PlayerInfo[playerid][Org] = 14;
- SetPlayerColor(playerid, COR_Aposentado);
- SendClientMessage(playerid, GetPlayerColor(playerid), "(INFO)Voce virou aposentado.");
- SendClientMessage(playerid, GetPlayerColor(playerid), "(COMANDOS)Voce recebera um salario a cada level.");
- SetPlayerSkin(playerid, 36);
- SendClientMessage(playerid, GetPlayerColor(playerid), "(COMANDOS)Voce recebera um salario a cada level.");
- }
- if(listitem == 3)
- {
- PlayerInfo[playerid][Org] = 15;
- SetPlayerColor(playerid, COR_Estudante);
- SendClientMessage(playerid, GetPlayerColor(playerid), "(INFO)Voce virou estudante.");
- SendClientMessage(playerid, GetPlayerColor(playerid), "(COMANDOS)Voce recebera um salario a cada level.");
- SetPlayerSkin(playerid, 35);
- }
- }
- }
- if(dialogid == 623)
- {
- if(response)
- {
- if(listitem == 0)
- {
- GivePlayerWeapon(playerid, 22, 120);
- GivePlayerMoney(playerid, -2000);
- }
- if(listitem == 1)
- {
- GivePlayerWeapon(playerid, 23, 120);
- GivePlayerMoney(playerid, -2500);
- }
- if(listitem == 2)
- {
- GivePlayerWeapon(playerid, 33, 120);
- GivePlayerMoney(playerid, -4000);
- }
- if(listitem == 4)
- {
- SetPlayerArmour(playerid, 100);
- SetPlayerHealth(playerid, 100);
- GivePlayerMoney(playerid, -10000);
- }
- }
- }
- return 1;
- }
- forward LevelUp(playerid);
- public LevelUp(playerid)
- {
- Respeito[playerid]++;
- new String[156];
- format(String, sizeof(String), "Nivel de respeito subiu: %d/3",Respeito[playerid]);
- SendClientMessage(playerid,COR_AVISO,String);
- if(Respeito[playerid] == 3)
- {
- SetPlayerScore(playerid, GetPlayerScore(playerid)+1);
- SendClientMessage(playerid,COR_LEVEL,"(INFO)**LEVEL UP**");
- if(PlayerInfo[playerid][Cargo] == 1)
- {
- SendClientMessage(playerid,COR_LEVEL,"(INFO)Salario Org: R$3,000");
- GivePlayerMoney(playerid, 3000);
- Respeito[playerid] = 0;
- }
- if(PlayerInfo[playerid][Cargo] == 2)
- {
- SendClientMessage(playerid,COR_LEVEL,"(INFO)Salario Org: R$5,000");
- GivePlayerMoney(playerid, 5000);
- Respeito[playerid] = 0;
- }
- if(PlayerInfo[playerid][Cargo] == 3)
- {
- SendClientMessage(playerid,COR_LEVEL,"(INFO)Salario Org: R$10,000");
- GivePlayerMoney(playerid, 10000);
- Respeito[playerid] = 0;
- }
- if(PlayerInfo[playerid][Cargo] == 4)
- {
- SendClientMessage(playerid,COR_LEVEL,"(INFO)Salario Org: R$13,000");
- GivePlayerMoney(playerid, 13000);
- Respeito[playerid] = 0;
- }
- if(PlayerInfo[playerid][Cargo] == 5)
- {
- SendClientMessage(playerid,COR_LEVEL,"(INFO)Salario Org: R$16,000");
- GivePlayerMoney(playerid, 16000);
- Respeito[playerid] = 0;
- }
- if(PlayerInfo[playerid][Cargo] >= 6 && PlayerInfo[playerid][Cargo] != 10)
- {
- SendClientMessage(playerid,COR_LEVEL,"(INFO)Salario Org: R$28,000");
- GivePlayerMoney(playerid, 28000);
- Respeito[playerid] = 0;
- }
- if(PlayerInfo[playerid][Cargo] == 10)
- {
- SendClientMessage(playerid,COR_LEVEL,"(INFO)Salario Org: R$40,000");
- GivePlayerMoney(playerid, 40000);
- Respeito[playerid] = 0;
- }
- if(PlayerInfo[playerid][Org] == 12)
- {
- SendClientMessage(playerid,COR_LEVEL,"(INFO)Salario Emprego: R$6,000");
- GivePlayerMoney(playerid, 6000);
- Respeito[playerid] = 0;
- }
- if(PlayerInfo[playerid][Org] == 13)
- {
- SendClientMessage(playerid,COR_LEVEL,"(INFO)Salario Emprego: R$3,000");
- GivePlayerMoney(playerid, 3000);
- Respeito[playerid] = 0;
- }
- if(PlayerInfo[playerid][Org] == 14)
- {
- SendClientMessage(playerid,COR_LEVEL,"(INFO)Salario Emprego: R$8,000");
- GivePlayerMoney(playerid, 8000);
- Respeito[playerid] = 0;
- }
- if(PlayerInfo[playerid][Org] == 15)
- {
- SendClientMessage(playerid,COR_LEVEL,"(INFO)Salario Emprego: R$4,000");
- GivePlayerMoney(playerid, 4000);
- Respeito[playerid] = 0;
- }
- Respeito[playerid] = 0;
- }
- return 1;
- }
- forward LevelUpVIP(playerid);
- public LevelUpVIP(playerid)
- {
- if(PlayerInfo[playerid][Vip] == 1)
- {
- SetPlayerScore(playerid, GetPlayerScore(playerid)+1);
- SendClientMessage(playerid,COR_LEVEL,"(VIP)**LEVEL UP**");
- SendClientMessage(playerid,COR_LEVEL,"(VIP)Salario VIP: R$20,000");
- GivePlayerMoney(playerid, 20000);
- return 1;
- }
- if(PlayerInfo[playerid][Vip] == 2)
- {
- SetPlayerScore(playerid, GetPlayerScore(playerid)+2);
- SendClientMessage(playerid,COR_LEVEL,"(VIP)**LEVEL UP**");
- SendClientMessage(playerid,COR_LEVEL,"(VIP)Salario VIP: R$20,000");
- GivePlayerMoney(playerid, 20000);
- return 1;
- }
- if(PlayerInfo[playerid][Vip] == 3)
- {
- SetPlayerScore(playerid, GetPlayerScore(playerid)+3);
- SendClientMessage(playerid,COR_LEVEL,"(VIP)**LEVEL UP**");
- SendClientMessage(playerid,COR_LEVEL,"(VIP)Salario VIP: R$20,000");
- GivePlayerMoney(playerid, 20000);
- return 1;
- }
- return 1;
- }
- SalvarPlayer(playerid)
- {
- new Float:Vida;
- new Float:Colete;
- GetPlayerHealth(playerid, Vida);
- GetPlayerArmour(playerid, Colete);
- new Nome[MAX_PLAYER_NAME];
- GetPlayerName(playerid, Nome, sizeof(Nome));
- new String[100];
- format(String, sizeof(String), CONTAS, Nome);
- dini_IntSet(String,"Dinheiro", GetPlayerMoney(playerid));
- dini_FloatSet(String,"Vida", Vida);
- dini_IntSet(String,"Preso", Preso[playerid]);
- dini_FloatSet(String,"Colete", Colete);
- dini_IntSet(String,"Matou", Matou[playerid]);
- dini_IntSet(String,"Morreu", Morreu[playerid]);
- dini_IntSet(String,"Logou", Logou[playerid]);
- dini_IntSet(String,"Skin", GetPlayerSkin(playerid));
- dini_IntSet(String,"Level", GetPlayerScore(playerid));
- dini_IntSet(String,"Maconha", PlayerInfo[playerid][Maconha]);
- dini_IntSet(String,"Crack", PlayerInfo[playerid][Crack]);
- dini_IntSet(String,"Carteira", PlayerInfo[playerid][Carteira]);
- dini_IntSet(String,"Banido", PlayerInfo[playerid][Banido]);
- dini_IntSet(String,"Org", PlayerInfo[playerid][Org]);
- dini_IntSet(String,"Cargo", PlayerInfo[playerid][Cargo]);
- dini_IntSet(String,"Cor", GetPlayerColor(PlayerInfo[playerid][Cor]));
- dini_IntSet(String,"Vip", PlayerInfo[playerid][Vip]);
- dini_IntSet(String,"TelesVIP", PlayerInfo[playerid][TelesVIP]);
- dini_IntSet(String,"Procurado", GetPlayerWantedLevel(playerid));
- dini_IntSet(String,"Administrador", PlayerInfo[playerid][AdmNivel]);
- return 1;
- }
- SetarPlayer(playerid)
- {
- new Nome[MAX_PLAYER_NAME];
- GetPlayerName(playerid, Nome, sizeof(Nome));
- new String[50];
- format(String, sizeof(String), CONTAS, Nome);
- GivePlayerMoney(playerid, dini_Int(String,"Dinheiro"));
- SetPlayerHealth(playerid, dini_Int(String,"Vida"));
- SetPlayerArmour(playerid, dini_Int(String,"Colete"));
- SetPlayerWantedLevel(playerid, dini_Int(String,"Procurado"));
- Matou[playerid] = dini_Int(String, "Matou");
- Morreu[playerid] = dini_Int(String, "Morreu");
- Logou[playerid] = dini_Int(String, "Logou");
- Preso[playerid] = dini_Int(String, "Preso");
- PlayerInfo[playerid][Banido] = dini_Int(String, "Banido");
- PlayerInfo[playerid][Crack] = dini_Int(String, "Crack");
- PlayerInfo[playerid][Maconha] = dini_Int(String, "Maconha");
- PlayerInfo[playerid][Skin] = dini_Int(String, "Skin");
- SetPlayerScore(playerid, dini_Int(String, "Level"));
- PlayerInfo[playerid][Carteira] = dini_Int(String, "Carteira");
- PlayerInfo[playerid][Org] = dini_Int(String, "Org");
- PlayerInfo[playerid][Cargo] = dini_Int(String, "Cargo");
- PlayerInfo[playerid][Vip] = dini_Int(String, "Vip");
- PlayerInfo[playerid][TelesVIP] = dini_Int(String, "TelesVIP");
- PlayerInfo[playerid][AdmNivel] = dini_Int(String, "Administrador");
- SetPlayerColor(playerid, dini_Int(String, "Cor"));
- return 1;
- }
- Status(playerid)
- {
- new Nome[MAX_PLAYER_NAME];
- GetPlayerName(playerid, Nome, sizeof(Nome));
- new String[128];
- SendClientMessage(playerid, 0xFF0000AA, "=========================INFORMAÇOES=======================");
- format(String, sizeof(String),"Status De %s",Nome);
- SendClientMessage(playerid, 0xFFFF00AA,String);
- format(String, sizeof(String),"Dinheiro: %d", GetPlayerMoney(playerid));
- SendClientMessage(playerid, 0x1E90FFAA,String);
- format(String, sizeof(String),"Matou: %d",Matou[playerid]);
- SendClientMessage(playerid, 0x1E90FFAA,String);
- format(String, sizeof(String),"Morreu: %d",Morreu[playerid]);
- SendClientMessage(playerid, 0x1E90FFAA,String);
- format(String, sizeof(String),"Skin: %d",GetPlayerSkin(playerid));
- SendClientMessage(playerid, 0x1E90FFAA,String);
- format(String, sizeof(String),"Numero de Logins: %d",Logou[playerid]);
- SendClientMessage(playerid, 0x1E90FFAA,String);
- format(String, sizeof(String),"Level: %d",GetPlayerScore(playerid));
- SendClientMessage(playerid, 0x1E90FFAA,String);
- format(String, sizeof(String),"Avisos: %d",Avisos[playerid]);
- SendClientMessage(playerid, 0x1E90FFAA,String);
- format(String, sizeof(String),"Organizaçao: %s",Nomeorgs[PlayerInfo[playerid][Org]]);
- SendClientMessage(playerid, 0x1E90FFAA,String);
- format(String, sizeof(String),"Maconha: %d",PlayerInfo[playerid][Maconha]);
- SendClientMessage(playerid, 0x1E90FFAA,String);
- format(String, sizeof(String),"Crack: %d",PlayerInfo[playerid][Crack]);
- SendClientMessage(playerid, 0x1E90FFAA,String);
- if(PlayerInfo[playerid][Carteira] == 1)
- {
- SendClientMessage(playerid, 0x1E90FFAA,"Carteira: Sim");
- }
- else
- {
- SendClientMessage(playerid, 0x1E90FFAA,"Carteira: Nao");
- }
- format(String, sizeof(String),"VIP: %d",PlayerInfo[playerid][Vip]);
- SendClientMessage(playerid, 0x1E90FFAA,String);
- format(String, sizeof(String),"Administrador Nivel: %d",PlayerInfo[playerid][AdmNivel]);
- SendClientMessage(playerid, 0x1E90FFAA,String);
- SendClientMessage(playerid, 0xFF0000AA, "=============================================================");
- return 1;
- }
- public OnPlayerGiveDamage(playerid, damagedid, Float:amount, weaponid)
- {
- new Float:Life, Float:Colete, Float:Dano;
- GetPlayerArmour(damagedid, Colete);
- GetPlayerHealth(damagedid, Life);
- if(Colete > 0)
- {
- if(amount > Colete)
- {
- Dano = amount - Colete;
- Life = Life - Dano;
- SetPlayerArmour(damagedid, 0.0);
- SetPlayerHealth(damagedid, Life);
- return 1;
- }
- Colete = Colete - amount;
- SetPlayerArmour(damagedid, Colete);
- }
- if(Colete < 1)
- {
- Life = Life - amount;
- SetPlayerHealth(damagedid, Life);
- }
- return 1;
- }
- COMMAND:rg(playerid, params[])
- {
- #pragma unused params
- Status(playerid);
- return 1;
- }
- COMMAND:comprarskin(playerid, params[])
- {
- new Skind;
- #pragma unused params
- if(CPS_IsPlayerInCheckpoint(playerid,CPZip))
- {
- SendClientMessage(playerid,GetPlayerColor(playerid),"Digite: /ComprarSkin [id]");
- if(sscanf(params, "d", Skind)) return SendClientMessage(playerid,GetPlayerColor(playerid),"Digite: /ComprarSkin [id]");
- SetPlayerSkin(playerid, Skind);
- GivePlayerMoney(playerid, -1000);
- SendClientMessage(playerid,GetPlayerColor(playerid),"Skin Comprada | R$1,000");
- }
- return 1;
- }
- COMMAND:medesbugar(playerid, params[])
- {
- #pragma unused params
- new Nome[156];
- GetPlayerName(playerid, Nome, sizeof(Nome));
- new String[200];
- RemovePlayerFromVehicle(playerid);//REMOVE VEICULO SE ESTIVE
- TogglePlayerControllable(playerid,1);//SE TIVE CONGELADO DESONGLEA
- SpawnPlayer(playerid);
- SetPlayerInterior(playerid, 0);
- format(String, sizeof(String),"(INFO)%s se desbugou",Nome);
- SendClientMessageToAll(COR_AVISO,String);
- return 1;
- }
- COMMAND:orgs(playerid, params[])
- {
- #pragma unused params
- ShowPlayerDialog(playerid, DIALOG_ORGS, DIALOG_STYLE_LIST, "ORGANIZAÇOES", "{0000CC}Policia Militar\n{6A6A00}Policia Civil\n{008000}Exercito\n{046FD9}Força Aeria\n{8B8B8B}Grupo de Operaçoes\n{FF0000}Yakuza\n{00E600}Groove\n{C016BC}Ballas\n{8B584B}La Cosa Nostra (Inativa)\n{919148}Al Qaeda\n{FF8000}Taliban", "OK", "");
- return 1;
- }
- COMMAND:transferir(playerid, params[])
- {
- new Nome[156];
- GetPlayerName(playerid, Nome, sizeof(Nome));
- new String[200];
- new money,id;
- new GetarMoney;
- GetarMoney = GetPlayerMoney(playerid);
- if(sscanf(params, "ud", id,money)) return SendClientMessage(playerid,GetPlayerColor(playerid),"Digite: /transferir [id][quantia]");
- if(GetarMoney >= money)
- {
- GivePlayerMoney(playerid, -money);
- GivePlayerMoney(id, money);
- format(String, sizeof(String),"(INFO)O jogador %s transferir R$%d para voce",Nome, money);
- SendClientMessage(id,GetPlayerColor(playerid),String);
- SendClientMessage(playerid,GetPlayerColor(playerid),"(INFO)Quantia transferida com sucesso.");
- }else{SendClientMessage(playerid,GetPlayerColor(playerid),"(INFO)Voce nao possui essa quantia.");}
- return 1;
- }
- COMMAND:fumar(playerid,params[])
- {
- #pragma unused params
- if(PlayerInfo[playerid][Maconha] >= 1)
- {
- PlayerInfo[playerid][Maconha]--;
- ApplyAnimation(playerid, "SMOKING", "F_smklean_loop", 4.0, 1, 0, 0, 0, 0);
- }else{return SendClientMessage(playerid, -1, "Voce nao tem maconha,fale com um yakuza");}
- return 1;
- }
- COMMAND:crack(playerid,params[])
- {
- #pragma unused params
- if(PlayerInfo[playerid][Crack] >= 1)
- {
- PlayerInfo[playerid][Crack]--;
- ApplyAnimation(playerid, "CRACK", "crckdeth2", 4.0, 1, 0, 0, 0, 0);
- }else{return SendClientMessage(playerid, -1, "Voce nao tem maconha,fale com um yakuza");}
- return 1;
- }
- COMMAND:comandos(playerid,params[])
- {
- #pragma unused params
- new String[200];
- format(String, sizeof(String),"/Transferir - /Orgs - /Medesbugar - /Rg - /MenuPosto\n/Relatorio - /Fumar - /Crack - /Lideres - /Adminis - /V");
- SendClientMessage(playerid,GetPlayerColor(playerid),String);
- return 1;
- }
- COMMAND:presos(playerid,params[])
- {
- #pragma unused params
- new String[200];
- SendClientMessage(playerid,GetPlayerColor(playerid),"====================================================");
- for(new i;i<MAX_PLAYERS;i++)
- {
- if(Preso[i] == 1)
- {
- new Nome[100];
- GetPlayerName(i, Nome, sizeof(Nome));
- format(String, sizeof(String),"(PRESO) %s", Nome);
- SendClientMessage(playerid,GetPlayerColor(playerid),String);
- }
- }
- SendClientMessage(playerid,GetPlayerColor(playerid),"====================================================");
- return 1;
- }
- COMMAND:procurados(playerid,params[])
- {
- #pragma unused params
- new String[200];
- SendClientMessage(playerid,GetPlayerColor(playerid),"====================================================");
- for(new i;i<MAX_PLAYERS;i++)
- {
- if(GetPlayerWantedLevel(i) >= 1)
- {
- new Nome[100];
- GetPlayerName(i, Nome, sizeof(Nome));
- format(String, sizeof(String),"(PROCURADO) %s", Nome);
- SendClientMessage(playerid,GetPlayerColor(playerid),String);
- }
- }
- SendClientMessage(playerid,GetPlayerColor(playerid),"====================================================");
- return 1;
- }
- COMMAND:pm(playerid,params[])
- {
- new id;
- new Texto[200];
- new String[200];
- new Name[100];
- GetPlayerName(playerid, Name, sizeof(Name));
- if(sscanf(params, "us", id,Texto)) return SendClientMessage(playerid,GetPlayerColor(playerid),"Digite: /PM [id][texto]");
- format(String, sizeof(String),"(PM)%s diz: %s", Name, Texto);
- SendClientMessage(id,0xD9C226FF,String);
- SendClientMessage(playerid,0xD9C226FF,"Mensagem privada enviada.");
- return 1;
- }
- public LimparChat(playerid, linhas)
- {
- for(new x; x<linhas; x++)
- {
- SendClientMessage(playerid,-1, " ");
- }
- return 1;
- }
- //-------------------------SISTEMA DE ADMINISTRAÇAO-------------------------------//
- stock IsNivelAdm(playerid,level)
- {
- if(PlayerInfo[playerid][AdmNivel] >= level) return 1;
- return 1;
- }
- COMMAND:comandosadm(playerid,params[])
- {
- #pragma unused params
- new String[250];
- if(PlayerInfo[playerid][AdmNivel] == 1)
- {
- format(String, sizeof(String),"{77CA7D}/Ir - /Trazer - /A - /Kick - /Avisar - /Desbugar - /RAllBR - /RAllBarril - /Espiar - /PEspiar");
- ShowPlayerDialog(playerid, DIALOG_ADMS, DIALOG_STYLE_MSGBOX, "Comandos - Helper",String,"OK", "");
- }
- if(PlayerInfo[playerid][AdmNivel] == 2)
- {
- format(String, sizeof(String),"{77CA7D}/Ir - /Trazer - /A\n/Kick - /Ban - /BanIP - /SetSkin\n/LimparChat\n/Respawn - /Liberar - /Desbugar - /RAllBR - /RAllBarril - /Espiar - /PEspiar");
- ShowPlayerDialog(playerid, DIALOG_ADMS, DIALOG_STYLE_MSGBOX, "Comandos - Tutor",String,"OK", "");
- }
- if(PlayerInfo[playerid][AdmNivel] == 3)
- {
- format(String, sizeof(String),"{77CA7D}/Ir - /Trazer - /A\n/Kick - /Ban - /BanIP - /SetColete\n/SetVida - /SetSkin - /LimparChat\n/SetarCarro - /Repararcarro - /Respawn\n/Liberar - /Desbugar - /RAllBR - /RAllBarril - /Espiar - /PEspiar");
- ShowPlayerDialog(playerid, DIALOG_ADMS, DIALOG_STYLE_MSGBOX, "Comandos - Administrador",String,"OK", "");
- }
- if(PlayerInfo[playerid][AdmNivel] == 4)
- {
- format(String, sizeof(String),"{77CA7D}/Ir - /Trazer - /A\n/Kick - /Ban - /BanIP - /Desban\n/GMX - /SetAdmin - /SetColete\n/SetVida - /SetSkin - /Avisar\n/GodMode - /LimparChat - /SetarLevel - /SetarGrana\n/SetLider\n/SetarCarro - /Repararcarro - /Respawn\n/Liberar - /Desbugar - /RAllBR - /RAllBarril - /Espiar - /PEspiar");
- ShowPlayerDialog(playerid, DIALOG_ADMS, DIALOG_STYLE_MSGBOX, "Comandos - Fundadores",String,"OK", "");
- }
- if(PlayerInfo[playerid][AdmNivel] == 5)
- {
- format(String, sizeof(String),"{77CA7D}/Ir - /Trazer - /A\n/Kick - /Ban - /BanIP - /Desban\n/GMX - /SetAdmin - /SetColete\n/SetVida - /SetSkin - /Avisar\n/GodMode - /LimparChat - /SetarLevel - /SetarGrana\n/SetLider\n/SetarCarro - /Repararcarro - /Respawn\n/Liberar - /Desbugar - /RAllBR - /RAllBarril - /Espiar - /PEspiar");
- ShowPlayerDialog(playerid, DIALOG_ADMS, DIALOG_STYLE_MSGBOX, "Comandos - Fundadores",String,"OK", "");
- }
- return 1;
- }
- COMMAND:admins(playerid,params[])
- {
- #pragma unused params
- new String[256];
- new Name[156];
- SendClientMessage(playerid,GetPlayerColor(playerid),"====================================================");
- for(new i;i<MAX_PLAYERS;i++)
- {
- if(PlayerInfo[i][AdmNivel] > 0)
- {
- GetPlayerName(i, Name, sizeof(Name));
- format(String, sizeof(String),"(ADM)Nome: %s | Nivel: %s",Name, Nomeadmins[PlayerInfo[i][AdmNivel]]);
- SendClientMessage(playerid,0x8ADFDDFF,String);
- }
- }
- SendClientMessage(playerid,GetPlayerColor(playerid),"====================================================");
- return 1;
- }
- COMMAND:setadmin(playerid,params[])
- {
- new nivel;
- new id;
- if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,GetPlayerColor(playerid),"Nivel de administraçao invalida!");
- if(sscanf(params, "dd", id,nivel)) return SendClientMessage(playerid,GetPlayerColor(playerid),"Digite: /SetAdmin [id][nivel]");
- if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid,GetPlayerColor(playerid),"O player nao esta conectado.");
- PlayerInfo[id][AdmNivel] = nivel;
- new Nome[MAX_PLAYER_NAME];
- GetPlayerName(id, Nome, sizeof(Nome));
- new String[128];
- SendClientMessageToAll(0xFF0000AA, "=========================INFORMAÇAO=======================");
- format(String, sizeof(String),"(INFO)O jogador %s foi promovido para Administrador nivel: %d",Nome, nivel);
- SendClientMessageToAll(COR_AVISOADM,String);
- return 1;
- }
- COMMAND:setvip(playerid,params[])
- {
- new nivel, id;
- if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,GetPlayerColor(playerid),"Nivel de administraçao invalida!");
- if(sscanf(params, "ud", id,nivel)) return SendClientMessage(playerid,GetPlayerColor(playerid),"Digite: /SetVip [id][nivel]");
- if(!IsPlayerConnected(playerid)) return SendClientMessage(playerid,GetPlayerColor(playerid),"O player nao esta conectado.");
- if(nivel >= 4) return SendClientMessage(playerid,COR_AVISO,"Nivel de vip invalida(1 a 3)");
- PlayerInfo[id][Vip] = nivel;
- new Nome[MAX_PLAYER_NAME];
- GetPlayerName(id, Nome, sizeof(Nome));
- new String[256];
- SendClientMessage(id,0xFF0000AA, "=========================INFORMAÇAO=======================");
- format(String, sizeof(String),"(INFO) %s foi promovido a VIP: %d | Tempo: 30 dias",Nome, nivel);
- SendClientMessageToAll(COR_AVISO,String);
- if(nivel == 0)
- {
- PlayerInfo[playerid][TelesVIP] = 0;
- SendClientMessage(id,COR_AVISO,"(VIP)Voce perdeu vip.");
- }
- if(nivel == 1)
- {
- PlayerInfo[playerid][TelesVIP] = 30;
- SendClientMessage(id,COR_AVISO,"(VIP)Voce recebeu 30 teleportes vip.");
- }
- if(nivel == 2)
- {
- PlayerInfo[playerid][TelesVIP] = 90;
- SendClientMessage(id,COR_AVISO,"(VIP)Voce recebeu 90 teleportes vip.");
- }
- if(nivel == 3)
- {
- PlayerInfo[playerid][TelesVIP] = 150;
- SendClientMessage(id,COR_AVISO,"(VIP)Voce recebeu 150 teleportes vip.");
- }
- return 1;
- }
- new Salvouse[MAX_PLAYERS];
- COMMAND:gmx(playerid, params[])
- {
- #pragma unused params
- if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid,GetPlayerColor(playerid),"Nivel de administraçao invalida!");
- SendClientMessageToAll(COR_AVISO,"(AVISO)Servidor sendo reiniciado...");
- SendClientMessageToAll(COR_AVISO,"(AVISO)Servidor sendo reiniciado...");
- SendClientMessageToAll(COR_AVISO,"(AVISO)Servidor sendo reiniciado...");
- SendClientMessageToAll(COR_AVISO,"(AVISO)Voltaremos em brever...");
- SendClientMessageToAll(COR_AVISO,"(AVISO)Voltaremos em brever...");
- SendClientMessageToAll(COR_AVISO,"(AVISO)Voltaremos em brever...");
- for(new i;i<MAX_PLAYERS;i++)
- {
- SalvarPlayer(i);
- Salvouse[i] = 1;
- if(Salvouse[i] == 1){Kick(i);SetTimerEx("TimeGMX", 3000,false,"i",i);}
- }
- return 1;
- }
- forward TimeGMX();
- public TimeGMX()
- {
- SendRconCommand("gmx");
- }
- new Espiando[MAX_PLAYERS];
- COMMAND:espiar(playerid, params[])
- {
- new PlayerB;
- new Float:GetarPos[3];
- if(PlayerInfo[playerid][AdmNivel] < 1) return SendClientMessage(playerid,GetPlayerColor(playerid),"Voce nao é um administrador.");
- if(sscanf(params, "u", PlayerB)) return SendClientMessage(playerid,GetPlayerColor(playerid),"Digite: /Espiar [id]");
- if(!IsPlayerConnected(PlayerB)) return SendClientMessage(playerid,GetPlayerColor(playerid),"O player nao esta conectado.");
- if(Espiando[playerid] == 0)
- GetPlayerPos(playerid, GetarPos[0], GetarPos[1], GetarPos[2]);
- TogglePlayerSpectating(playerid, 1);
- PlayerSpectatePlayer(playerid, PlayerB);
- SetPlayerInterior(playerid,GetPlayerInterior(PlayerB));
- Espiando[playerid] = 1;
- return 1;
- }
- COMMAND:pespiar(playerid, params[])
- {
- if(PlayerInfo[playerid][AdmNivel] < 1) return SendClientMessage(playerid,GetPlayerColor(playerid),"Voce nao é um administrador.");
- if(Espiando[playerid] == 1)
- TogglePlayerSpectating(playerid, 0);
- SetPlayerInterior(playerid,0);
- SpawnPlayer(playerid);
- Espiando[playerid] = 0;
- return 1;
- }
- COMMAND:a(playerid, params[])
- {
- new Nome[MAX_PLAYER_NAME];
- new Text[500];
- new String[500];
- if(PlayerInfo[playerid][AdmNivel] < 1) return SendClientMessage(playerid,GetPlayerColor(playerid),"Voce nao é um administrador.");
- if(sscanf(params, "s[500]", Text)) return SendClientMessage(playerid,GetPlayerColor(playerid),"Digite: /A [texto]");
- GetPlayerName(playerid, Nome, sizeof(Nome));
- format(String, sizeof(String),"(AVISO) %s diz: %s",Nome,Text);
- SendClientMessageToAll(COR_AVISOADM,String);
- return 1;
- }
- COMMAND:desbugar(playerid, params[])
- {
- new Nome[156];
- new id;
- GetPlayerName(playerid, Nome, sizeof(Nome));
- new String[200];
- new Float:Px = 0.000000, Float:Py = 0.000000, Float:Pz = 0.000000, Float:Pa = 0.000000;
- if(PlayerInfo[playerid][AdmNivel] < 1) return SendClientMessage(playerid,GetPlayerColor(playerid),"Voce nao é um administrador.");
- if(sscanf(params, "u", id)) return SendClientMessage(playerid,GetPlayerColor(playerid),"Digite: /Desbugar [id]");
- GetPlayerPos(id, Px, Py, Pz);//PEGA POS
- GetPlayerFacingAngle(id, Pa);//PEGA ANGULO
- RemovePlayerFromVehicle(id);//REMOVE VEICULO SE ESTIVE
- SetPlayerPos(id, Px, Py, (Pz+3));//JOGA PLAYER AO ALTO PARA DESBUGAR (NAO MATA)
- SetPlayerFacingAngle(id, Pa+1);
- TogglePlayerControllable(id,1);//SE TIVE CONGELADO DESONGLEA
- SpawnPlayer(id);
- SetPlayerInterior(id, 0);
- format(String, sizeof(String),"(INFO)%s foi desbugado",Nome);
- SendClientMessageToAll(COR_AVISO,String);
- return 1;
- }
- COMMAND:ir(playerid, params[])
- {
- new id;
- new Nome[MAX_PLAYER_NAME];
- GetPlayerName(playerid, Nome, sizeof(Nome));
- new String[100];
- new Float: X1, X2, X3;
- if(sscanf(params, "u", id)) return SendClientMessage(playerid,GetPlayerColor(playerid),"Digite: /Ir [id]");
- if(PlayerInfo[playerid][AdmNivel] < 1) return SendClientMessage(playerid, GetPlayerColor(playerid), "Voce nao é um administrador.");
- if(!IsPlayerConnected(id)) return SendClientMessage(playerid, GetPlayerColor(playerid), "ID Invalido.");
- GetPlayerPos(id, Float:X1, Float:X2, Float:X3);
- SetPlayerPos(playerid, Float:X1, Float:X2, Float:X3);
- SendClientMessage(playerid, COR_AVISOADM, "(INFO)Voce foi teleportado ate o player.");
- format(String, sizeof(String),"(INFO)O Administrador %s foi ate voce.",Nome);
- SendClientMessage(id,COR_AVISOADM,String);
- return 1;
- }
- COMMAND:liberar(playerid, params[])
- {
- new PlayerB;
- if(sscanf(params, "u", PlayerB)) return SendClientMessage(playerid, GetPlayerColor(playerid), "Digite: /Liberar [ID]");
- if(PlayerInfo[playerid][AdmNivel] < 2 || PlayerInfo[playerid][Org] == 12) return SendClientMessage(playerid, GetPlayerColor(playerid), "Nivel de administraçao insuficiente.");
- Preso[PlayerB] = 0;
- SpawnPlayer(PlayerB);
- SendClientMessage(PlayerB,COR_AVISO,"Voce foi liberado pelo administrador ou advogado.");
- SendClientMessage(playerid,COR_AVISO,"Jogador liberado.");
- return 1;
- }
- COMMAND:trazer(playerid, params[])
- {
- new id;
- new Nome[MAX_PLAYER_NAME];
- GetPlayerName(playerid, Nome, sizeof(Nome));
- new String[100];
- new Float: X1, X2, X3;
- if(sscanf(params, "u", id)) return SendClientMessage(playerid,GetPlayerColor(playerid),"Digite: /Trazer [id]");
- if(PlayerInfo[playerid][AdmNivel] < 1) return SendClientMessage(playerid, GetPlayerColor(playerid), "Voce nao é um administrador.");
- if(!IsPlayerConnected(id)) return SendClientMessage(playerid, GetPlayerColor(playerid), "ID Invalido.");
- GetPlayerPos(playerid, Float:X1, Float:X2, Float:X3);
- SetPlayerPos(id, Float:X1, Float:X2, Float:X3);
- SendClientMessage(playerid, COR_AVISOADM, "(INFO)Voce trouxe o player ate voce.");
- format(String, sizeof(String),"(INFO)O Administrador %s trouxe voce ate ele.",Nome);
- SendClientMessage(id,COR_AVISOADM,String);
- return 1;
- }
- COMMAND:kick(playerid, params[])
- {
- new PlayerB;
- new Nome[MAX_PLAYER_NAME];
- new Lider[MAX_PLAYER_NAME];
- GetPlayerName(playerid, Lider, sizeof(Lider));
- new String[200];
- new Motivo[200];
- if(PlayerInfo[playerid][AdmNivel] < 1) return SendClientMessage(playerid, GetPlayerColor(playerid), "Voce nao é um administrador.");
- if(sscanf(params, "us", PlayerB, Motivo)) return SendClientMessage(playerid,GetPlayerColor(playerid),"Digite: /Kick [id][motivo]");
- GetPlayerName(PlayerB, Nome, sizeof(Nome));
- format(String, sizeof(String),"(KICK)O Administrador %s expulsou %s Motivo : %s",Lider, Nome, Motivo);
- SendClientMessageToAll(COR_AVISOADM,String);
- Kick(PlayerB);
- return true;
- }
- COMMAND:ban(playerid, params[])
- {
- new id;
- new Nome[MAX_PLAYER_NAME];
- new Adm[MAX_PLAYER_NAME];
- new motivo[256];
- if(sscanf(params, "us", id, motivo)) return SendClientMessage(playerid,GetPlayerColor(playerid),"Digite: /Ban [id][motivo]");
- if(PlayerInfo[playerid][AdmNivel] < 2) return SendClientMessage(playerid, GetPlayerColor(playerid), "Voce nao é um administrador nivel 2.");
- if(!IsPlayerConnected(id)) return SendClientMessage(playerid, GetPlayerColor(playerid), "ID Invalido.");
- new String[256];
- format(String, sizeof(String), BAN, Nome);
- dini_Create(String);
- dini_Set(String,"Administrador", Adm);
- dini_Set(String,"Motivo", motivo);
- new Text[256];
- GetPlayerName(id, Nome, sizeof(Nome));
- GetPlayerName(playerid, Adm, sizeof(Adm));
- format(Text, sizeof(Text), "(BAN)O Administrador %s Baniu %s pelo Motivo: %s", Adm,Nome,motivo);
- SendClientMessageToAll(COR_AVISOADM, Text);
- PlayerInfo[id][Banido] = 1;
- SendClientMessage(id,COR_ERRO,"Conta banida.");
- format(String, sizeof(String),"Conta banida por: %s | Motivo: %s",Adm,motivo);
- ShowPlayerDialog(id,DIALOG_BANIDO,DIALOG_STYLE_MSGBOX,"CONTA BANIDA",String,"OK","");
- SalvarPlayer(id);
- Kick(id);
- return 1;
- }
- COMMAND:banip(playerid, params[])
- {
- new id;
- new Nome[MAX_PLAYER_NAME];
- new Adm[MAX_PLAYER_NAME];
- new motivo[256];
- if(sscanf(params, "us", id, motivo)) return SendClientMessage(playerid,GetPlayerColor(playerid),"Digite: /Ban [id][motivo]");
- if(PlayerInfo[playerid][AdmNivel] < 2) return SendClientMessage(playerid, GetPlayerColor(playerid), "Voce nao é um administrador nivel 2.");
- if(!IsPlayerConnected(id)) return SendClientMessage(playerid, GetPlayerColor(playerid), "ID Invalido.");
- new String[256];
- format(String, sizeof(String), BAN, Nome);
- dini_Create(String);
- dini_Set(String,"Administrador", Adm);
- dini_Set(String,"Motivo", motivo);
- new Text[256];
- GetPlayerName(id, Nome, sizeof(Nome));
- GetPlayerName(playerid, Adm, sizeof(Adm));
- format(Text, sizeof(Text), "(BAN)O Administrador %s Baniu %s pelo Motivo: %s", Adm,Nome,motivo);
- SendClientMessageToAll(COR_AVISOADM, Text);
- PlayerInfo[id][Banido] = 1;
- SendClientMessage(id,COR_ERRO,"Conta banida.");
- format(String, sizeof(String),"Conta banida por: %s | Motivo: %s",Adm,motivo);
- ShowPlayerDialog(id,DIALOG_BANIDO,DIALOG_STYLE_MSGBOX,"CONTA BANIDA",String,"OK","");
- SalvarPlayer(id);
- Ban(id);
- return 1;
- }
- COMMAND:desban(playerid, params[])
- {
- new Adm[MAX_PLAYER_NAME];
- new nick[256];
- new String[256];
- new String2[256];
- if(sscanf(params, "s", nick)) return SendClientMessage(playerid,GetPlayerColor(playerid),"Digite: /DesBan [Nick]");
- if(PlayerInfo[playerid][AdmNivel] < 4) return SendClientMessage(playerid, GetPlayerColor(playerid), "Voce nao é um administrador nivel 4.");
- new Text[256];
- GetPlayerName(playerid, Adm, sizeof(Adm));
- format(Text, sizeof(Text), "(DESBAN)O Administrador %s Desbaniu %s.", Adm,nick);
- SendClientMessageToAll(COR_AVISOADM, Text);
- format(String, sizeof(String), CONTAS, nick);
- dini_IntSet(String,"Banido", 0);
- format(String2, sizeof(String2),"Ban/%s.ini", nick);
- dini_Remove(String2);
- return 1;
- }
- COMMAND:setgm(playerid, params[])
- {
- new text[150];
- if(sscanf(params, "s", text)) return SendClientMessage(playerid,GetPlayerColor(playerid),"Digite: /SetGM [Nome]");
- if(PlayerInfo[playerid][AdmNivel] > 3) return SendClientMessage(playerid, GetPlayerColor(playerid), "Voce nao é um administrador nivel 4.");
- SetGameModeText(text);
- return 1;
- }
- COMMAND:setvida(playerid, params[])
- {
- new vida, id;
- new String[100];
- new Nome[MAX_PLAYER_NAME];
- GetPlayerName(playerid, Nome, sizeof(Nome));
- if(sscanf(params, "dd", id, vida)) return SendClientMessage(playerid,GetPlayerColor(playerid),"Digite: /SetVida [id][vida]");
- if(PlayerInfo[playerid][AdmNivel] < 3) return SendClientMessage(playerid, GetPlayerColor(playerid), "Voce nao é um administrador nivel 3.");
- format(String, sizeof(String), "(INFO)O Administrador %s setou sua vida para: %d.", Nome,vida);
- SendClientMessage(id,GetPlayerColor(playerid),String);
- SetPlayerHealth(playerid, vida);
- return 1;
- }
- COMMAND:setcolete(playerid, params[])
- {
- new colete, id;
- new String[100];
- new Nome[MAX_PLAYER_NAME];
- GetPlayerName(playerid, Nome, sizeof(Nome));
- if(sscanf(params, "dd", id, colete)) return SendClientMessage(playerid,GetPlayerColor(playerid),"Digite: /SetColete [id][colete]");
- if(PlayerInfo[playerid][AdmNivel] < 3) return SendClientMessage(playerid, GetPlayerColor(playerid), "Voce nao é um administrador nivel 3.");
- format(String, sizeof(String), "(INFO)O Administrador %s setou seu colete para: %d.", Nome,colete);
- SendClientMessage(id,GetPlayerColor(playerid),String);
- SetPlayerArmour(playerid, colete);
- return 1;
- }
- COMMAND:avisar(playerid, params[])
- {
- new id;
- new Nome[MAX_PLAYER_NAME];
- new Adm[MAX_PLAYER_NAME];
- new motivo[256];
- if(sscanf(params, "us", id, motivo)) return SendClientMessage(playerid,GetPlayerColor(playerid),"Digite: /Avisar [id][motivo]");
- if(PlayerInfo[playerid][AdmNivel] < 1) return SendClientMessage(playerid, GetPlayerColor(playerid), "Voce nao é um administrador.");
- new String[256];
- GetPlayerName(id, Nome, sizeof(Nome));
- GetPlayerName(playerid, Adm, sizeof(Adm));
- format(String, sizeof(String), "(INFO)O Administrador %s avisou %s | Motivo: %s.",Adm, Nome, motivo);
- SendClientMessageToAll(COR_AVISOADM,String);
- Avisos[id] == Avisos[id]++;
- format(String, sizeof(String),"(INFO)Avisos atuais: %d",Avisos[id]);
- SendClientMessage(id, COR_AVISO,String);
- if(Avisos[id] == 3)
- {
- SendClientMessage(id,COR_AVISO,"Voce foi expulso por acumular 3 avisos.");
- Kick(id);
- }
- return 1;
- }
- COMMAND:setskin(playerid, params[])
- {
- new Nome[MAX_PLAYER_NAME];
- new String[100];
- GetPlayerName(playerid, Nome, sizeof(Nome));
- new id, skin;
- if(sscanf(params, "ud", id, skin)) return SendClientMessage(playerid,GetPlayerColor(playerid),"Digite: /SetSkin [id][skin]");
- if(PlayerInfo[playerid][AdmNivel] < 2) return SendClientMessage(playerid, GetPlayerColor(playerid), "Voce nao é um administrador nivel 2.");
- SetPlayerSkin(id, skin);
- format(String, sizeof(String),"(INFO)O Administrador %s mudou sua skin para : %d",Nome, skin);
- SendClientMessage(playerid, COR_AVISOADM,String);
- return 1;
- }
- COMMAND:godmode(playerid, params[])
- {
- #pragma unused params
- new Nome[MAX_PLAYER_NAME];
- new String[100];
- GetPlayerName(playerid, Nome, sizeof(Nome));
- if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, GetPlayerColor(playerid), "Voce nao é um administrador rcon.");
- Godmodeon[playerid] = 1;
- format(String, sizeof(String),"(INFO)O Administrador %s entrou no modo God Mode",Nome);
- SendClientMessageToAll(COR_AVISOADM,String);
- return 1;
- }
- COMMAND:godmodeoff(playerid, params[])
- {
- #pragma unused params
- new Nome[MAX_PLAYER_NAME];
- new String[100];
- GetPlayerName(playerid, Nome, sizeof(Nome));
- if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, GetPlayerColor(playerid), "Voce nao é um administrador rcon.");
- Godmodeon[playerid] = 0;
- format(String, sizeof(String),"(INFO)O Administrador %s saiu do modo God Mode",Nome);
- SendClientMessageToAll(COR_AVISOADM,String);
- return 1;
- }
- COMMAND:limparchat(playerid, params[])
- {
- #pragma unused params
- if(PlayerInfo[playerid][AdmNivel] < 2) return SendClientMessage(playerid, GetPlayerColor(playerid), "Voce nao é um administrador nivel 2.");
- LimparChat(playerid, 500);
- GameTextForPlayer(playerid,"~b~Chat Limpo",200,1);
- return 1;
- }
- COMMAND:setarcarro(playerid, params[])
- {
- new carro;
- new cor1, cor2;
- new Float:X1, Float:X2, Float:X3, Float:A;
- GetPlayerPos(playerid, Float:X1, Float:X2, Float:X3);
- GetPlayerFacingAngle(playerid, Float:A);
- if(sscanf(params, "ddd", carro, cor1, cor2)) return SendClientMessage(playerid,COR_ERRO,"Digite: /Setarcarro [id][cor][cor]");
- if(PlayerInfo[playerid][AdmNivel] < 3) return SendClientMessage(playerid, COR_ERRO, "Voce nao é um administrador nivel 3.");
- CreateVehicle(carro, Float:X1, Float:X2, Float:X3, Float:A, cor1, cor2, 3000);
- SendClientMessage(playerid, COR_AVISOADM, "(INFO)Carro criado.");
- return 1;
- }
- COMMAND:repararcarro(playerid, params[])
- {
- #pragma unused params
- if(PlayerInfo[playerid][AdmNivel] < 3) return SendClientMessage(playerid, COR_ERRO, "Voce nao é um administrador nivel 3.");
- new carro = GetPlayerVehicleID(playerid);
- RepairVehicle(carro);
- SendClientMessage(playerid,COR_AVISOADM,"(INFO)Carro reparado.");
- return 1;
- }
- COMMAND:respawn(playerid, params[])
- {
- #pragma unused params
- if(PlayerInfo[playerid][AdmNivel] < 2) return SendClientMessage(playerid, COR_ERRO, "Voce nao é um administrador nivel 2.");
- SendClientMessageToAll(COR_AVISO,"(INFO)Todos os carros foram respawnados.");
- for( new i = 0; i < MAX_VEHICLES; i++ )
- {
- SetVehicleToRespawn(i);
- }
- return 1;
- }
- COMMAND:setargrana(playerid, params[])
- {
- new PlayerB, Grana;
- if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COR_ERRO, "Voce nao é um administrador nivel 4.");
- if(sscanf(params, "ud", PlayerB, Grana)) return SendClientMessage(playerid,COR_ERRO,"Digite: /SetarGrana [id][grana]");
- GivePlayerMoney(PlayerB, Grana);
- SendClientMessage(PlayerB,COR_AVISO,"(INFO)O administrador setou seu dinheiro.");
- SendClientMessage(playerid,GetPlayerColor(playerid),"(INFO)Dinheiro setado.");
- return 1;
- }
- COMMAND:setarlevel(playerid, params[])
- {
- new PlayerB, PLEVEL;
- if(!IsPlayerAdmin(playerid)) return SendClientMessage(playerid, COR_ERRO, "Voce nao é um administrador nivel 4.");
- if(sscanf(params, "ud", PlayerB, PLEVEL)) return SendClientMessage(playerid,COR_ERRO,"Digite: /SetarLevel [id][lvl]");
- SetPlayerScore(PlayerB, GetPlayerScore(PlayerB)+PLEVEL);
- SendClientMessage(PlayerB,COR_AVISO,"(INFO)O administrador setou seu level.");
- SendClientMessage(playerid,GetPlayerColor(playerid),"(INFO)Level setado.");
- return 1;
- }
- COMMAND:relatorio(playerid, params[])
- {
- new String[256];
- new Texto[156];
- if(sscanf(params, "s[156]", Texto)) return SendClientMessage(playerid,COR_ERRO,"Digite: /Relatorio [Msg]");
- new Nome[56];
- GetPlayerName(playerid, Nome, sizeof(Nome));
- format(String, 260,"(RELATORIO) %s | Motivo: %s",Nome, Texto);
- for(new i;i<MAX_PLAYERS;i++)
- {
- if(PlayerInfo[i][AdmNivel] > 0)
- {
- SendClientMessage(i,0x769CCBFF,String);
- SendClientMessage(playerid,0x769CCBFF,"Relatorio enviado.Aguarde respostas!");
- }
- }
- return 1;
- }
- COMMAND:liberarnick(playerid, params[])
- {
- new PlayerB;
- if(PlayerInfo[playerid][AdmNivel] >= 1 || PlayerInfo[playerid][Cargo] > 8)
- if(sscanf(params, "u", PlayerB)) return SendClientMessage(playerid,COR_ERRO,"Digite: /Liberarnick [id]");
- GameTextForPlayer(PlayerB,"~r~/TROCARNICK", 3000, 4);
- OpenNick[PlayerB] = 1;
- return 1;
- }
- COMMAND:trocarnick(playerid, params[])
- {
- #pragma unused params
- if(OpenNick[playerid] == 1)
- {
- ShowPlayerDialog(playerid, DIALOG_NICK, DIALOG_STYLE_INPUT, "TROCAR NICK", "Digite seu novo nome:", "Trocar", "Cancelar");
- }
- return 1;
- }
- COMMAND:rallbr(playerid, params[])
- {
- #pragma unused params
- if(PlayerInfo[playerid][AdmNivel] < 0) return SendClientMessage(playerid, COR_ERRO, "Voce nao é um administrador.");
- for(new i;i==0;i++)
- {
- DestroyObject(BarreiraC[i]);
- SendClientMessageToAll(COR_AVISOADM,"(INFO) Todas a barreiras do servidor foram apagadas.");
- }
- return 1;
- }
- COMMAND:rallbarril(playerid, params[])
- {
- #pragma unused params
- if(PlayerInfo[playerid][AdmNivel] < 0) return SendClientMessage(playerid, COR_ERRO, "Voce nao é um administrador.");
- for(new i;i==0;i++)
- {
- DestroyObject(BarrilC[i]);
- SendClientMessageToAll(COR_AVISOADM,"(INFO) Todas os barris do servidor foram apagados.");
- return 0;
- }
- return 1;
- }
- new Float:PostE[3];
- COMMAND:criarevento(playerid, params[])
- {
- new String[200];
- new Nome[80];
- new EventNome[150];
- if(PlayerInfo[playerid][AdmNivel] < 1) return SendClientMessage(playerid, COR_ERRO, "Voce nao é um administrador nivel 2.");
- if(sscanf(params, "s", EventNome)) return SendClientMessage(playerid,COR_ERRO,"Digite: /Criarevento [nome]");
- GetPlayerName(playerid, Nome, sizeof(Nome));
- format(String, sizeof(String),"(EVENTO)Um evento foi criado | Criador: %s | Evento: %s (Digite: /irevento).",Nome, EventNome);
- SendClientMessageToAll(COR_EVENTO,String);
- GetPlayerPos(playerid, PostE[0], PostE[1], PostE[2]);
- for(new i;i<MAX_PLAYERS;i++)
- {
- if(IsPlayerConnected(i))
- {
- Evento[i] = 1;
- }
- }
- return 1;
- }
- COMMAND:irevento(playerid, params[])
- {
- if(Evento[playerid] == 1)
- {
- SetPlayerPos(playerid, PostE[0], PostE[1], PostE[2]);
- SendClientMessage(playerid,COR_EVENTO,"Voce foi teleportado ate o evento.");
- }else{return SendClientMessage(playerid,COR_ERRO,"Evento fechado ou em andamento.");}
- return 1;
- }
- COMMAND:fecharevento(playerid, params[])
- {
- new String[100];
- if(PlayerInfo[playerid][AdmNivel] < 1) return SendClientMessage(playerid, COR_ERRO, "Voce nao é um administrador nivel 2.");
- format(String, sizeof(String),"(EVENTO)Um evento foi fechado ou iniciado.");
- SendClientMessageToAll(COR_EVENTO,String);
- for(new i;i<MAX_PLAYERS;i++)
- {
- if(IsPlayerConnected(i))
- {
- Evento[i] = 0;
- }
- }
- return 1;
- }
- COMMAND:portaorally(playerid, params[])
- {
- #pragma unused params
- if(PlayerInfo[playerid][AdmNivel] < 1) return SendClientMessage(playerid, COR_ERRO, "Voce nao é um administrador nivel 2.");
- {
- GameTextForAll("~b~PORTAO RALLY ABERTO",1500,4);
- MoveObject(PortaoRally, -2376.1001000,-2196.1999500,24.2000000, 3.0);
- SetTimerEx("TimeRally", 5000,false,"i",playerid);
- }
- return 1;
- }
- forward TimeRally(playerid);
- public TimeRally(playerid)
- {
- MoveObject(PortaoRally, -2376.1001000,-2196.1999500,34.2000000, 3.0);
- GameTextForAll("~r~PORTAO RALLY FECHADO",1500,4);
- }
- COMMAND:ca(playerid, params[])
- {
- //Usaremos parâmetros então não precisaremos do pragma.
- new corda[128];
- new Texto[200];
- if(sscanf(params, "s[128]", corda)) return SendClientMessage(playerid, GetPlayerColor(playerid), "Digite: /cp [mensagem]");
- if(PlayerInfo[playerid][Org] == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "Voce é um civil"); //Caso o player tente utilizar chat sendo civil.
- new nome[MAX_PLAYER_NAME]; //Criamos a variável que acumulará o nome do player que está mandando a mensagem à org.
- GetPlayerName(playerid, nome, sizeof(nome)); //Getamos o nome do player e acoplamos à variável criada acima.
- format(Texto, 128, "(Chat Admin) %s diz: %s", nome, corda); //Lembra da variável global chamada de Texto que criamos? Reutilizaremos ela para armazenar o texto que será mandado aos membros da org. Junto com o mandante e seu cargo.
- for(new i;i<MAX_PLAYERS;i++)
- {
- if(PlayerInfo[i][AdmNivel] > 0)
- {
- SendClientMessage(i,0xC2DF62FF,Texto);
- }
- }
- return true;
- }
- //-------------------------SISTEMA DE ORGANIZAÇAO----------------------------//
- COMMAND:lideres(playerid,params[])
- {
- #pragma unused params
- new String[256];
- new Name[156];
- for(new i;i<MAX_PLAYERS;i++)
- {
- if(PlayerInfo[i][Cargo] > 8)
- {
- GetPlayerName(i, Name, sizeof(Name));
- SendClientMessage(playerid,0xACDE8BFF,"===============================================");
- format(String, sizeof(String),"(ORG)Nome: %s | Org: %s",Name, Nomeorgs[PlayerInfo[i][Org]]);
- SendClientMessage(playerid,0xACDE8BFF,String);
- SendClientMessage(playerid,0xACDE8BFF,"=================================================");
- }
- }
- return 1;
- }
- COMMAND:setlider(playerid, params[])
- {
- new PlayerB, POrg;
- new Nome[MAX_PLAYER_NAME];
- new Adm[MAX_PLAYER_NAME];
- GetPlayerName(playerid, Adm, sizeof(Adm));
- new String[200];
- new Texto[200];
- if(sscanf(params, "ud", PlayerB, POrg)) return SendClientMessage(playerid,COR_ERRO,"Digite: /SetLider [id][org]");
- if(PlayerInfo[playerid][AdmNivel] < 4) return SendClientMessage(playerid, COR_ERRO, "Voce nao é um administrador nivel 4.");
- PlayerInfo[PlayerB][Org] = POrg;
- PlayerInfo[PlayerB][Cargo] = 10;
- GetPlayerName(PlayerB, Nome, sizeof(Nome));
- if(POrg == 1)
- {
- SetPlayerColor(PlayerB, COR_PM);
- format(String, sizeof(String),"(ORG)O Administrador %s tornou %s lider da : Policia Militar",Adm, Nome);
- SendClientMessageToAll(COR_AVISOADM,String);
- format(Texto, sizeof(Texto), ORGS, PlayerInfo[PlayerB][Org]);
- dini_Set(Texto,"Lider", Nome);
- SendClientMessage(PlayerB,COR_AVISO,"(ORG)Digite: /ComandosLider (Para ver os comandos de lider)");
- SendClientMessage(PlayerB,COR_AVISO,"(ORG)Digite: /ComandosOrg (Para ver os comandos da Org)");
- SendClientMessage(PlayerB,COR_AVISO,"(ORG)Nao esqueça de criar o manual e o sistema de [TAG]");
- SpawnPlayer(PlayerB);
- }
- if(POrg == 2)
- {
- SetPlayerColor(PlayerB, COR_PC);
- format(String, sizeof(String),"(ORG)O Administrador %s tornou %s lider da : Policia Civil",Adm, Nome);
- SendClientMessageToAll(COR_AVISOADM,String);
- format(Texto, sizeof(Texto), ORGS, PlayerInfo[PlayerB][Org]);
- dini_Set(Texto,"Lider", Nome);
- SendClientMessage(PlayerB,COR_AVISO,"(ORG)Digite: /ComandosLider (Para ver os comandos de lider)");
- SendClientMessage(PlayerB,COR_AVISO,"(ORG)Digite: /ComandosOrg (Para ver os comandos da Org)");
- SendClientMessage(PlayerB,COR_AVISO,"(ORG)Nao esqueça de criar o manual e o sistema de [TAG]");
- SpawnPlayer(PlayerB);
- }
- if(POrg == 3)
- {
- SetPlayerColor(PlayerB, COR_GOE);
- format(String, sizeof(String),"(ORG)O Administrador %s tornou %s lider do : Grupo de Operaçoes Especiais",Adm, Nome);
- SendClientMessageToAll(COR_AVISOADM,String);
- format(Texto, sizeof(Texto), ORGS, PlayerInfo[PlayerB][Org]);
- dini_Set(Texto,"Lider", Nome);
- SendClientMessage(PlayerB,COR_AVISO,"(ORG)Digite: /ComandosLider (Para ver os comandos de lider)");
- SendClientMessage(PlayerB,COR_AVISO,"(ORG)Digite: /ComandosOrg (Para ver os comandos da Org)");
- SendClientMessage(PlayerB,COR_AVISO,"(ORG)Nao esqueça de criar o manual e o sistema de [TAG]");
- SpawnPlayer(PlayerB);
- }
- if(POrg == 4)
- {
- SetPlayerColor(PlayerB, COR_EXT);
- format(String, sizeof(String),"(ORG)O Administrador %s tornou %s lider do : Exercito",Adm, Nome);
- SendClientMessageToAll(COR_AVISOADM,String);
- format(Texto, sizeof(Texto), ORGS, PlayerInfo[PlayerB][Org]);
- dini_Set(Texto,"Lider", Nome);
- SendClientMessage(PlayerB,COR_AVISO,"(ORG)Digite: /ComandosLider (Para ver os comandos de lider)");
- SendClientMessage(PlayerB,COR_AVISO,"(ORG)Digite: /ComandosOrg (Para ver os comandos da Org)");
- SendClientMessage(PlayerB,COR_AVISO,"(ORG)Nao esqueça de criar o manual e o sistema de [TAG]");
- SpawnPlayer(PlayerB);
- }
- if(POrg == 5)
- {
- SetPlayerColor(PlayerB, COR_FA);
- format(String, sizeof(String),"(ORG)O Administrador %s tornou %s lider da : Força Aeria",Adm, Nome);
- SendClientMessageToAll(COR_AVISOADM,String);
- format(Texto, sizeof(Texto), ORGS, PlayerInfo[PlayerB][Org]);
- dini_Set(Texto,"Lider", Nome);
- SendClientMessage(PlayerB,COR_AVISO,"(ORG)Digite: /ComandosLider (Para ver os comandos de lider)");
- SendClientMessage(PlayerB,COR_AVISO,"(ORG)Digite: /ComandosOrg (Para ver os comandos da Org)");
- SendClientMessage(PlayerB,COR_AVISO,"(ORG)Nao esqueça de criar o manual e o sistema de [TAG]");
- SpawnPlayer(PlayerB);
- }
- if(POrg == 6)
- {
- SetPlayerColor(PlayerB, COR_GROOVE);
- format(String, sizeof(String),"(ORG)O Administrador %s tornou %s lider da : Groove Street",Adm, Nome);
- SendClientMessageToAll(COR_AVISOADM,String);
- format(Texto, sizeof(Texto), ORGS, PlayerInfo[PlayerB][Org]);
- dini_Set(Texto,"Lider", Nome);
- SendClientMessage(PlayerB,COR_AVISO,"(ORG)Digite: /ComandosLider (Para ver os comandos de lider)");
- SendClientMessage(PlayerB,COR_AVISO,"(ORG)Digite: /ComandosOrg (Para ver os comandos da Org)");
- SendClientMessage(PlayerB,COR_AVISO,"(ORG)Nao esqueça de criar o manual e o sistema de [TAG]");
- SpawnPlayer(PlayerB);
- }
- if(POrg == 7)
- {
- SetPlayerColor(PlayerB, COR_YKZ);
- format(String, sizeof(String),"(ORG)O Administrador %s tornou %s lider da : Yakuza",Adm, Nome);
- SendClientMessageToAll(COR_AVISOADM,String);
- format(Texto, sizeof(Texto), ORGS, PlayerInfo[PlayerB][Org]);
- dini_Set(Texto,"Lider", Nome);
- SendClientMessage(PlayerB,COR_AVISO,"(ORG)Digite: /ComandosLider (Para ver os comandos de lider)");
- SendClientMessage(PlayerB,COR_AVISO,"(ORG)Digite: /ComandosOrg (Para ver os comandos da Org)");
- SendClientMessage(PlayerB,COR_AVISO,"(ORG)Nao esqueça de criar o manual e o sistema de [TAG]");
- SpawnPlayer(PlayerB);
- }
- if(POrg == 8)
- {
- SetPlayerColor(PlayerB, COR_LCN);
- format(String, sizeof(String),"(ORG)O Administrador %s tornou %s lider da : La Cosa Nostra",Adm, Nome);
- SendClientMessageToAll(COR_AVISOADM,String);
- format(Texto, sizeof(Texto), ORGS, PlayerInfo[PlayerB][Org]);
- dini_Set(Texto,"Lider", Nome);
- SendClientMessage(PlayerB,COR_AVISO,"(ORG)Digite: /ComandosLider (Para ver os comandos de lider)");
- SendClientMessage(PlayerB,COR_AVISO,"(ORG)Digite: /ComandosOrg (Para ver os comandos da Org)");
- SendClientMessage(PlayerB,COR_AVISO,"(ORG)Nao esqueça de criar o manual e o sistema de [TAG]");
- SpawnPlayer(PlayerB);
- }
- if(POrg == 9)
- {
- SetPlayerColor(PlayerB, COR_BALLAS);
- format(String, sizeof(String),"(ORG)O Administrador %s tornou %s lider do : Ballas",Adm, Nome);
- SendClientMessageToAll(COR_AVISOADM,String);
- format(Texto, sizeof(Texto), ORGS, PlayerInfo[PlayerB][Org]);
- dini_Set(Texto,"Lider", Nome);
- SendClientMessage(PlayerB,COR_AVISO,"(ORG)Digite: /ComandosLider (Para ver os comandos de lider)");
- SendClientMessage(PlayerB,COR_AVISO,"(ORG)Digite: /ComandosOrg (Para ver os comandos da Org)");
- SendClientMessage(PlayerB,COR_AVISO,"(ORG)Nao esqueça de criar o manual e o sistema de [TAG]");
- SpawnPlayer(PlayerB);
- }
- if(POrg == 10)
- {
- SetPlayerColor(PlayerB, COR_AQ);
- format(String, sizeof(String),"(ORG)O Administrador %s tornou %s lider da : Al Qaeda",Adm, Nome);
- SendClientMessageToAll(COR_AVISOADM,String);
- format(Texto, sizeof(Texto), ORGS, PlayerInfo[PlayerB][Org]);
- dini_Set(Texto,"Lider", Nome);
- SendClientMessage(PlayerB,COR_AVISO,"(ORG)Digite: /ComandosLider (Para ver os comandos de lider)");
- SendClientMessage(PlayerB,COR_AVISO,"(ORG)Digite: /ComandosOrg (Para ver os comandos da Org)");
- SendClientMessage(PlayerB,COR_AVISO,"(ORG)Nao esqueça de criar o manual e o sistema de [TAG]");
- SpawnPlayer(PlayerB);
- }
- if(POrg == 11)
- {
- SetPlayerColor(PlayerB, COR_VT);
- format(String, sizeof(String),"(ORG)O Administrador %s tornou %s lider do : Taliban",Adm, Nome);
- SendClientMessageToAll(COR_AVISOADM,String);
- format(Texto, sizeof(Texto), ORGS, PlayerInfo[PlayerB][Org]);
- dini_Set(Texto,"Lider", Nome);
- SendClientMessage(PlayerB,COR_AVISO,"(ORG)Digite: /ComandosLider (Para ver os comandos de lider)");
- SendClientMessage(PlayerB,COR_AVISO,"(ORG)Digite: /ComandosOrg (Para ver os comandos da Org)");
- SendClientMessage(PlayerB,COR_AVISO,"(ORG)Nao esqueça de criar o manual e o sistema de [TAG]");
- SpawnPlayer(PlayerB);
- }
- return true;
- }
- COMMAND:darsub(playerid, params[])
- {
- new PlayerB;
- new CorP;
- new Nome[MAX_PLAYER_NAME];
- new Lider[MAX_PLAYER_NAME];
- GetPlayerName(playerid, Lider, sizeof(Lider));
- new String[200];
- new Texto[200];
- if(sscanf(params, "u", PlayerB)) return SendClientMessage(playerid,GetPlayerColor(playerid),"Digite: /DarSub [id]");
- if(PlayerInfo[playerid][Cargo] != 10) return SendClientMessage(playerid, GetPlayerColor(playerid), "Voce nao é lider da organizaçao.");
- if(PlayerInfo[PlayerB][Org] == PlayerInfo[playerid][Org])
- PlayerInfo[PlayerB][Org] = PlayerInfo[playerid][Org];
- PlayerInfo[PlayerB][Cargo] = 9;
- CorP = GetPlayerColor(playerid);
- SetPlayerColor(PlayerB, CorP);
- GetPlayerName(PlayerB, Nome, sizeof(Nome));
- format(String, sizeof(String),"(ORG)O Lider %s tornou %s Sub-Lider da : %s",Lider, Nome, Nomeorgs[PlayerInfo[playerid][Org]]);
- SendClientMessageToAll(GetPlayerColor(playerid),String);
- format(Texto, sizeof(Texto), ORGS, PlayerInfo[PlayerB][Org]);
- dini_Set(Texto,"SubLider", Nome);
- SpawnPlayer(PlayerB);
- return true;
- }
- COMMAND:demitir(playerid, params[])
- {
- new PlayerB;
- new Nome[MAX_PLAYER_NAME];
- new Lider[MAX_PLAYER_NAME];
- GetPlayerName(playerid, Lider, sizeof(Lider));
- new String[200];
- if(sscanf(params, "u", PlayerB)) return SendClientMessage(playerid,GetPlayerColor(playerid),"Digite: /Demitir [id]");
- if(PlayerInfo[playerid][Cargo] < 9) return SendClientMessage(playerid, GetPlayerColor(playerid), "Voce nao é lider da organizaçao.");
- if(PlayerInfo[PlayerB][Org] != PlayerInfo[playerid][Org]) return SendClientMessage(playerid, GetPlayerColor(playerid), "O player nao é de sua organizaçao.");
- GetPlayerName(PlayerB, Nome, sizeof(Nome));
- format(String, sizeof(String),"(ORG)O lider %s demitiu %s da Organizaçao: %s",Lider, Nome, Nomeorgs[PlayerInfo[playerid][Org]]);
- SendClientMessageToAll(GetPlayerColor(playerid),String);
- PlayerInfo[PlayerB][Org] = 0;
- PlayerInfo[PlayerB][Cargo] = 0;
- new Nick[MAX_PLAYER_NAME];
- GetPlayerName(playerid, Nick, sizeof(Nick));
- new Contas[100];
- format(Contas, sizeof(Contas), CONTAS, Nick);
- dini_IntSet(Contas,"Org", 0);
- dini_IntSet(Contas,"Cargo", 0);
- SetPlayerColor(PlayerB, COR_CIVIL);
- SpawnPlayer(PlayerB);
- return true;
- }
- COMMAND:alistar(playerid, params[])
- {
- new PlayerB;
- new CorP;
- new Vaga;
- new Nome[MAX_PLAYER_NAME];
- new Lider[MAX_PLAYER_NAME];
- GetPlayerName(playerid, Lider, sizeof(Lider));
- new String[200];
- new InfoOrg[200];
- new Texto[200];
- if(sscanf(params, "ud", PlayerB, Vaga)) return SendClientMessage(playerid,GetPlayerColor(playerid),"Digite: /Alistar [id][vaga]");
- if(PlayerInfo[playerid][Cargo] < 9) return SendClientMessage(playerid, GetPlayerColor(playerid), "Voce nao é lider da organizaçao.");
- if(Vaga > 0 && Vaga < 11)
- {
- if(PlayerInfo[PlayerB][Org] >= 1) return SendClientMessage(playerid, GetPlayerColor(playerid), "O player ja faz parte de uma organizaçao.");
- CorP = GetPlayerColor(playerid);
- SetPlayerColor(PlayerB, CorP);
- GetPlayerName(PlayerB, Nome, sizeof(Nome));
- PlayerInfo[PlayerB][Org] = PlayerInfo[playerid][Org];
- PlayerInfo[PlayerB][Cargo] = 0;
- format(String, sizeof(String),"(ORG)O Lider %s alistou %s para Organizaçao : %s",Lider, Nome, Nomeorgs[PlayerInfo[playerid][Org]]);
- SendClientMessageToAll(GetPlayerColor(playerid),String);
- format(InfoOrg, sizeof(InfoOrg), ORGS, PlayerInfo[playerid][Org]);
- format(Texto, sizeof(Texto), "Vaga%d", Vaga);
- dini_Set(InfoOrg,Texto,Nome);
- SpawnPlayer(PlayerB);
- }else{return SendClientMessage(playerid,GetPlayerColor(playerid),"Vagas de 1 a 10");}
- return true;
- }
- COMMAND:limparvaga(playerid, params[])
- {
- new InfoOrg[200];
- new Texto[200];
- new Vaga;
- if(sscanf(params, "d", Vaga)) return SendClientMessage(playerid,GetPlayerColor(playerid),"Digite: /Limparvaga [vaga(999 = SubLider)]");
- if(PlayerInfo[playerid][Cargo] < 9) return SendClientMessage(playerid, GetPlayerColor(playerid), "Voce nao é lider da organizaçao.");
- format(InfoOrg, sizeof(InfoOrg), ORGS, PlayerInfo[playerid][Org]);
- format(Texto, sizeof(Texto), "Vaga%d", Vaga);
- dini_Set(InfoOrg,Texto,"Ninguem");
- if(Vaga == 999)
- format(InfoOrg, sizeof(InfoOrg), ORGS, PlayerInfo[playerid][Org]);
- dini_Set(InfoOrg,"SubLider","Ninguem");
- SendClientMessage(playerid,GetPlayerColor(playerid), "(ORG)Vaga limpa.");
- return true;
- }
- COMMAND:promover(playerid, params[])
- {
- new PlayerB, pCargo;
- new Nome[MAX_PLAYER_NAME];
- new Lider[MAX_PLAYER_NAME];
- GetPlayerName(playerid, Lider, sizeof(Lider));
- new String[200];
- if(sscanf(params, "ud", PlayerB, pCargo)) return SendClientMessage(playerid,GetPlayerColor(playerid),"Digite: /Promover [id][cargo]");
- if(PlayerInfo[playerid][Cargo] < 9) return SendClientMessage(playerid, GetPlayerColor(playerid), "Voce nao é lider da organizaçao.");
- if(PlayerInfo[PlayerB][Org] != PlayerInfo[playerid][Org]) return SendClientMessage(playerid, GetPlayerColor(playerid), "O player nao é de sua organizaçao.");
- PlayerInfo[PlayerB][Cargo] = pCargo;
- GetPlayerName(PlayerB, Nome, sizeof(Nome));
- format(String, sizeof(String),"(ORG)O Lider %s promoveu %s para Cargo : %d",Lider, Nome, pCargo);
- SendClientMessageToAll(GetPlayerColor(playerid),String);
- return true;
- }
- COMMAND:cp(playerid, params[])
- {
- //Usaremos parâmetros então não precisaremos do pragma.
- new corda[128];
- new Texto[200];
- if(sscanf(params, "s[128]", corda)) return SendClientMessage(playerid, GetPlayerColor(playerid), "Digite: /cp [mensagem]");
- if(PlayerInfo[playerid][Org] == 0) return SendClientMessage(playerid, 0xFFFFFFFF, "Voce é um civil"); //Caso o player tente utilizar chat sendo civil.
- new nome[MAX_PLAYER_NAME]; //Criamos a variável que acumulará o nome do player que está mandando a mensagem à org.
- GetPlayerName(playerid, nome, sizeof(nome)); //Getamos o nome do player e acoplamos à variável criada acima.
- format(Texto, 128, "(Chat Profissao) %s diz: %s", nome, corda); //Lembra da variável global chamada de Texto que criamos? Reutilizaremos ela para armazenar o texto que será mandado aos membros da org. Junto com o mandante e seu cargo.
- for(new PP, Progressao = GetMaxPlayers(); PP < Progressao; PP++)
- {
- if(!IsPlayerConnected(PP)) continue; //Caso o player do loop não esteja conectado ele dará continuidade no loop sem executar o que está abaixo.
- if(PlayerInfo[PP][Org] == PlayerInfo[playerid][Org]) //Verificará se o player no Loop é da mesma organização do player que mandou a mensagem à org.
- {
- SendClientMessage(PP, GetPlayerColor(playerid), Texto); //Mandará a mensagem ao player no loop com a cor do player que mandou que lógicamente será a cor da org dele.
- }
- }
- return true;
- }
- COMMAND:infoorg(playerid, params[])
- {
- new String[200];
- new Texto[256];
- format(String, sizeof(String), ORGS, PlayerInfo[playerid][Org]);
- format(Texto, sizeof(Texto), "Lider:%s\nSubLider:%s\nVaga1:%s\nVaga2:%s\nVaga3:%s\nVaga4:%s\nVaga5:%s\nVaga6:%s\nVaga7:%s\nVaga8:%s\nVaga9:%s\nVaga10:%s",
- dini_Get(String, "Lider"),dini_Get(String, "SubLider"),dini_Get(String, "Vaga1"),dini_Get(String, "Vaga2"),dini_Get(String, "Vaga3"),dini_Get(String, "Vaga4"),dini_Get(String, "Vaga5"),dini_Get(String, "Vaga6"),dini_Get(String, "Vaga7"),dini_Get(String, "Vaga8"),dini_Get(String, "Vaga9"),dini_Get(String, "Vaga10"));
- ShowPlayerDialog(playerid, 9999, DIALOG_STYLE_MSGBOX, "Informaçoes da Organizaçao", Texto, "OK","");
- return 1;
- }
- COMMAND:pedircontas(playerid, params[])
- {
- #pragma unused params
- new String[100];
- new Nome[MAX_PLAYER_NAME];
- GetPlayerName(playerid, Nome, sizeof(Nome));
- if(PlayerInfo[playerid][Cargo] == 0) return SendClientMessage(playerid,GetPlayerColor(playerid),"Voce é um civil.");
- format(String, sizeof(String),"(ORG)O jogador %s pediu contas da Organizaçao: %s",Nome, Nomeorgs[PlayerInfo[playerid][Org]]);
- SendClientMessageToAll(GetPlayerColor(playerid),String);
- PlayerInfo[playerid][Cargo] = 0;
- PlayerInfo[playerid][Org] = 0;
- new Nick[MAX_PLAYER_NAME];
- GetPlayerName(playerid, Nick, sizeof(Nick));
- new Contas[100];
- format(Contas, sizeof(Contas), CONTAS, Nick);
- dini_IntSet(Contas,"Org", 0);
- dini_IntSet(Contas,"Cargo", 0);
- SetPlayerColor(playerid, COR_CIVIL);
- SpawnPlayer(playerid);
- return true;
- }
- COMMAND:prender(playerid, params[])
- {
- new id, Float:Pos[3], Float:Distancia = 5.0; // Distancia 5 metros
- if(sscanf(params, "u", id)) return SendClientMessage(playerid, GetPlayerColor(playerid), "Digite: /prender [ID]");
- GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]); // Pega a sua coordenada
- if(PlayerInfo[playerid][Org] == 0) return SendClientMessage(playerid, GetPlayerColor(playerid), "Voce nao é um policial");
- if(PlayerInfo[playerid][Org] <= 5)
- {
- if(IsPlayerConnected(id)) // Verifica se o outro jogador está conectado
- {
- if(IsPlayerInRangeOfPoint(id, Distancia, Pos[0], Pos[1], Pos[2])) // Verifica se o jogador está a 5 metros da sua coordenada
- {
- if(Algemado[id] == 1 && Preso[id] == 0 && Preso[playerid] == 0)
- {
- SetPlayerPos(id, -1429.8289,-953.7226,200.9184); // Manda o jogador para uma coordenada
- SendClientMessage(id, GetPlayerColor(playerid), "(INFO)Voce foi preso por estar procurado.Sera libera em 3 minutos!");
- Preso[id] = 1;
- SetTimerEx("TimePreso", 180000,false,"i",playerid);
- GivePlayerMoney(playerid, 5000);
- ResetPlayerWeapons(id);
- if(GetPlayerWantedLevel(id) == 0)
- {
- GivePlayerMoney(playerid, -10000);
- SendClientMessage(playerid, GetPlayerColor(playerid), "(INFO)Voce perdeu R$10,000 reais por prender um jogador nao procurado.");
- }
- SendClientMessage(playerid, GetPlayerColor(playerid), "(INFO)Voce recebeu R$5000 reais por prender um procurado.");
- }else{return SendClientMessage(playerid, GetPlayerColor(playerid), "(INFO)O player nao esta algemado.");}
- }
- }
- }
- if(!IsPlayerConnected(id))
- {
- SendClientMessage(playerid, COR_ERRO, "O jogador nao esta conectado.");
- }
- return 1;
- }
- forward TimePreso(playerid);
- public TimePreso(playerid)
- {
- SpawnPlayer(playerid);
- Preso[playerid] = 0;
- HandsUp[playerid] = 0;
- Algemado[playerid] = 0;
- if(Preso[playerid] == 1)
- {
- ClearAnimations(playerid);
- }
- SendClientMessage(playerid, COR_ERRO, "Voce foi liberado,nao cometa mais crimes.");
- }
- COMMAND:render(playerid, params[])
- {
- new id, Float:Pos[3], Float:Distancia = 3.0; // Distancia 5 metros
- if(sscanf(params, "u", id)) return SendClientMessage(playerid, GetPlayerColor(playerid), "Digite: /render [ID]");
- GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]); // Pega a sua coordenada
- if(PlayerInfo[playerid][Org] == 0) return SendClientMessage(playerid, GetPlayerColor(playerid), "Voce nao é um policial");
- if(PlayerInfo[playerid][Org] <= 5)
- {
- if(IsPlayerConnected(id)) // Verifica se o outro jogador está conectado
- {
- if(IsPlayerInRangeOfPoint(id, Distancia, Pos[0], Pos[1], Pos[2])) // Verifica se o jogador está a 5 metros da sua coordenada
- {
- if(BlockHandsUp[playerid] == 0 && Preso[id] == 0 && Preso[playerid] == 0)
- {
- if(HandsUp[id] == 0)
- {
- SetPlayerSpecialAction(id,SPECIAL_ACTION_HANDSUP);
- HandsUp[id] = 1;
- BlockHandsUp[playerid] = 1;
- TogglePlayerControllable(id,0);
- SendClientMessage(id,GetPlayerColor(id), "(INFO)Voce foi rendido.");
- SendClientMessage(playerid,GetPlayerColor(id), "(INFO)Player rendido,voce tem 3 segundos para algema-lo.");
- SetTimerEx("TimeHandsUp", 3000,false,"i",id);
- SetTimerEx("TimeBlockHandsUp", 5000,false,"i",playerid);
- }else{return SendClientMessage(playerid,GetPlayerColor(playerid), "(INFO)O Player ja esta rendido.");}
- }else{return SendClientMessage(playerid,GetPlayerColor(playerid), "(INFO)Espere 3 segundos para usar o comando novamente.");}
- }else{return SendClientMessage(playerid,GetPlayerColor(playerid), "(INFO)Chegue mais perto do player.");}
- }
- }
- return 1;
- }
- forward TimeHandsUp(playerid);
- public TimeHandsUp(playerid)
- {
- if(Algemado[playerid] == 0)
- {
- TogglePlayerControllable(playerid,1);
- HandsUp[playerid] = 0;
- ClearAnimations(playerid);
- SendClientMessage(playerid,GetPlayerColor(playerid), "(INFO)Tempo esgotado,voce foi liberado.");
- }
- }
- forward TimeBlockHandsUp(playerid);
- public TimeBlockHandsUp(playerid)
- {
- BlockHandsUp[playerid] = 0;
- SendClientMessage(playerid,GetPlayerColor(playerid), "(INFO)/Render foi desbloqueado.");
- }
- forward TimeAlgemar(playerid);
- public TimeAlgemar(playerid)
- {
- TogglePlayerControllable(playerid,1);
- HandsUp[playerid] = 0;
- Algemado[playerid] = 0;
- ClearAnimations(playerid);
- SendClientMessage(playerid,GetPlayerColor(playerid), "(INFO)Algemas retiradas.");
- }
- COMMAND:algemar(playerid, params[])
- {
- new id, Float:Pos[3], Float:Distancia = 3.0; // Distancia 5 metros
- if(sscanf(params, "u", id)) return SendClientMessage(playerid, GetPlayerColor(playerid), "Digite: /algemar [ID]");
- GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]); // Pega a sua coordenada
- if(PlayerInfo[playerid][Org] == 0) return SendClientMessage(playerid, GetPlayerColor(playerid), "Voce nao é um policial");
- if(PlayerInfo[playerid][Org] <= 5)
- {
- if(IsPlayerConnected(id)) // Verifica se o outro jogador está conectado
- {
- if(IsPlayerInRangeOfPoint(id, Distancia, Pos[0], Pos[1], Pos[2])) // Verifica se o jogador está a 5 metros da sua coordenada
- {
- if(HandsUp[id] == 1 && Preso[id] == 0 && Preso[playerid] == 0)
- {
- SetPlayerSpecialAction(id, SPECIAL_ACTION_CUFFED);
- TogglePlayerControllable(id,0);
- Algemado[id] = 1;
- SetTimerEx("TimeAlgemar", 8000,false,"i",id);
- SendClientMessage(playerid,GetPlayerColor(id), "(INFO)Voce foi algemado.");
- }else{SendClientMessage(playerid,GetPlayerColor(playerid), "(INFO)O player nao esta rendido.");}
- }else{SendClientMessage(playerid,GetPlayerColor(playerid), "(INFO)Chegue mais perto do player.");}
- }
- }
- return 1;
- }
- COMMAND:procurar(playerid, params[])
- {
- new PlayerB;
- if(sscanf(params, "u", PlayerB)) return SendClientMessage(playerid, GetPlayerColor(playerid), "Digite: /procurar [ID]");
- if(PlayerInfo[playerid][Org] == 0) return SendClientMessage(playerid, GetPlayerColor(playerid), "Voce nao é um policial");
- if(PlayerInfo[playerid][Org] <= 5)
- {
- if(GPSUsed[playerid] == 0)
- {
- new Float:X,Float:Y,Float:Z;
- GetPlayerPos(PlayerB, X, Y, Z);
- SetPlayerMapIcon(playerid, 12, X, Y, Z, 56, 0, MAPICON_GLOBAL);
- SendClientMessage(playerid,GetPlayerColor(playerid),"(INFO)Foi marcado no mapa o ultimo local onde o suspeito foi visto.");
- SendClientMessage(playerid,GetPlayerColor(playerid),"(INFO)Em 10 segundos perdera o sinal GPS.");
- GPSUsed[playerid] = 1;
- SetTimerEx("TimeGPS", 10000,false,"i",playerid);
- }
- else
- {
- SendClientMessage(playerid,GetPlayerColor(playerid),"(INFO)Espere 30 segundos para que ative o GPS novamente.");
- }
- }
- else
- {
- SendClientMessage(playerid,GetPlayerColor(playerid),"Voce nao é um policial.");
- }
- return 1;
- }
- public TimeGPS(playerid)
- {
- RemovePlayerMapIcon(playerid, 12);
- SendClientMessage(playerid, GetPlayerColor(playerid), "(INFO)Perca de sinal GPS.");
- SetTimerEx("BlockGPS", 30000,false,"i",playerid);
- return 1;
- }
- public BlockGPS(playerid)
- {
- GPSUsed[playerid] = 0;
- return 1;
- }
- COMMAND:opendp(playerid, params[])
- {
- #pragma unused params
- if(PlayerInfo[playerid][Org] == 0) return SendClientMessage(playerid, GetPlayerColor(playerid), "Voce nao é um policial");
- if(PlayerInfo[playerid][Org] <= 5)
- {
- GameTextForPlayer(playerid,"~b~PORTAO ABERTO",1500,4);
- MoveObject(PortaoDP1, 1543.1999512,-1627.5000000,6.1999998, 3.0);
- SetTimerEx("TimeCloseDP1", 5000,false,"i",playerid);
- }
- else
- {
- SendClientMessage(playerid,GetPlayerColor(playerid),"Voce nao é um policial.");
- }
- return 1;
- }
- forward TimeCloseDP1(playerid);
- public TimeCloseDP1(playerid)
- {
- MoveObject(PortaoDP1, 1543.1999512,-1627.5000000,15.1999998, 3.0);
- GameTextForPlayer(playerid,"~r~PORTAO FECHADO",1500,4);
- }
- COMMAND:openga(playerid, params[])
- {
- #pragma unused params
- if(PlayerInfo[playerid][Org] == 0) return SendClientMessage(playerid, GetPlayerColor(playerid), "Voce nao é um policial");
- if(PlayerInfo[playerid][Org] <= 5)
- {
- GameTextForPlayer(playerid,"~b~GARAGEM ABERTA",1500,4);
- MoveObject(PortaoDP2, 1588.1999512,-1638.4000244,8.1999998, 3.0);
- SetTimerEx("TimeCloseDP2", 5000,false,"i",playerid);
- }
- else
- {
- SendClientMessage(playerid,GetPlayerColor(playerid),"Voce nao é um policial.");
- }
- return 1;
- }
- forward TimeCloseDP2(playerid);
- public TimeCloseDP2(playerid)
- {
- MoveObject(PortaoDP2, 1588.1999512,-1638.4000244,15.1999998, 3.0);
- GameTextForPlayer(playerid,"~r~GARAGEM FECHADA",1500,4);
- }
- COMMAND:openfa(playerid, params[])
- {
- #pragma unused params
- if(PlayerInfo[playerid][Org] == 0) return SendClientMessage(playerid, GetPlayerColor(playerid), "Voce nao é da Força Aeria");
- if(PlayerInfo[playerid][Org] == 5)
- {
- GameTextForPlayer(playerid,"~b~PORTAO FORÇA AERIA ABERTO",1500,4);
- MoveObject(PortaoFA, 87.0000000,2071.3000488,10.2000008, 3.0);
- SetTimerEx("TimeCloseFA", 5000,false,"i",playerid);
- }
- else
- {
- SendClientMessage(playerid,GetPlayerColor(playerid),"Voce nao é da Força Aeria.");
- }
- return 1;
- }
- forward TimeCloseFA(playerid);
- public TimeCloseFA(playerid)
- {
- MoveObject(PortaoFA, 87.0000000,2071.3000488,19.2000008, 3.0);
- GameTextForPlayer(playerid,"~r~PORTAO FORÇA AERIA FECHADO",1500,4);
- }
- COMMAND:opengroove(playerid, params[])
- {
- #pragma unused params
- if(PlayerInfo[playerid][Org] == 0) return SendClientMessage(playerid, GetPlayerColor(playerid), "Voce nao é da Groove Street.");
- if(PlayerInfo[playerid][Org] == 6)
- {
- GameTextForPlayer(playerid,"~b~PORTAO GROOVE STREET ABERTO",1500,4);
- MoveObject(PortaoGroove, 2461.1999512,-1658.6999512,5.1000004, 3.0);
- SetTimerEx("TimeCloseGroove", 5000,false,"i",playerid);
- }
- else
- {
- SendClientMessage(playerid,GetPlayerColor(playerid),"Voce nao é da Groove Street.");
- }
- return 1;
- }
- forward TimeCloseGroove(playerid);
- public TimeCloseGroove(playerid)
- {
- MoveObject(PortaoGroove, 2461.1999512,-1658.6999512,15.1000004, 3.0);
- GameTextForPlayer(playerid,"~r~PORTAO GROOVE STREET FECHADO",1500,4);
- }
- COMMAND:opengoe(playerid, params[])
- {
- #pragma unused params
- if(PlayerInfo[playerid][Org] == 0) return SendClientMessage(playerid, GetPlayerColor(playerid), "Voce nao é da GOE.");
- if(PlayerInfo[playerid][Org] == 3)
- {
- GameTextForPlayer(playerid,"~b~PORTAO GOE ABERTO",1500,4);
- MoveObject(PortaoGOE, -1172.3221,-988.4862,123.100, 3.0);
- SetTimerEx("TimeCloseGOE", 5000,false,"i",playerid);
- }
- else
- {
- SendClientMessage(playerid,GetPlayerColor(playerid),"Voce nao é da GOE.");
- }
- return 1;
- }
- forward TimeCloseGOE(playerid);
- public TimeCloseGOE(playerid)
- {
- MoveObject(PortaoGOE, -1172.3221,-988.4862,131.100, 3.0);
- GameTextForPlayer(playerid,"~r~PORTAO GOE FECHADO",1500,4);
- }
- COMMAND:openykz(playerid, params[])
- {
- #pragma unused params
- if(PlayerInfo[playerid][Org] == 0) return SendClientMessage(playerid, GetPlayerColor(playerid), "Voce nao é da Yakuza.");
- if(PlayerInfo[playerid][Org] == 7)
- {
- GameTextForPlayer(playerid,"~b~PORTAO YAKUZA ABERTO",1500,4);
- MoveObject(PortaoYkz, 664.9000244,-1309.0999756,8.1999998, 3.0);
- MoveObject(PortaoYkz2, 785.4000244,-1152.5000000,15.2999992, 3.0);
- MoveObject(PortaoYkz3, 659.7998047,-1227.2998047,9.7999992, 3.0);
- SetTimerEx("TimeCloseYkz", 5000,false,"i",playerid);
- }
- else
- {
- SendClientMessage(playerid,GetPlayerColor(playerid),"Voce nao é da Yakuza.");
- }
- return 1;
- }
- forward TimeCloseYkz(playerid);
- public TimeCloseYkz(playerid)
- {
- MoveObject(PortaoYkz, 664.9000244,-1309.0999756,15.1999998, 3.0);
- MoveObject(PortaoYkz2, 785.4000244,-1152.5000000,25.2999992, 3.0);
- MoveObject(PortaoYkz3, 659.7998047,-1227.2998047,17.7999992, 3.0);
- GameTextForPlayer(playerid,"~r~PORTAO YAKUZA FECHADO",1500,4);
- }
- COMMAND:openext(playerid, params[])
- {
- #pragma unused params
- if(PlayerInfo[playerid][Org] == 0) return SendClientMessage(playerid, GetPlayerColor(playerid), "Voce nao é do Exercito.");
- if(PlayerInfo[playerid][Org] == 4)
- {
- GameTextForPlayer(playerid,"~b~PORTAO EXERCITO ABERTO",1500,4);
- MoveObject(PortaoEXT, -1530.3000488,482.3999939,1.9000001, 3.0);
- SetTimerEx("TimeCloseEXT", 5000,false,"i",playerid);
- }
- else
- {
- SendClientMessage(playerid,GetPlayerColor(playerid),"Voce nao é do Exercito.");
- }
- return 1;
- }
- forward TimeCloseEXT(playerid);
- public TimeCloseEXT(playerid)
- {
- MoveObject(PortaoEXT, -1530.3000488,482.3999939,7.9000001, 3.0);
- GameTextForPlayer(playerid,"~r~PORTAO EXERCITO FECHADO",1500,4);
- }
- COMMAND:openpc(playerid, params[])
- {
- #pragma unused params
- if(PlayerInfo[playerid][Org] == 0) return SendClientMessage(playerid, GetPlayerColor(playerid), "Voce nao é da Policia Civil.");
- if(PlayerInfo[playerid][Org] == 2)
- {
- GameTextForPlayer(playerid,"~b~PORTAO POLICIA CIVIL ABERTO",1500,4);
- MoveObject(PortaoPC, 1030.1999512,-366.2999878,67.6999969, 3.0);
- SetTimerEx("TimeClosePC", 5000,false,"i",playerid);
- }
- else
- {
- SendClientMessage(playerid,GetPlayerColor(playerid),"Voce nao é da Policia Civil.");
- }
- return 1;
- }
- forward TimeClosePC(playerid);
- public TimeClosePC(playerid)
- {
- MoveObject(PortaoPC, 1030.1999512,-366.2999878,75.6999969, 3.0);
- GameTextForPlayer(playerid,"~r~PORTAO POLICIA CIVIL FECHADO",1500,4);
- }
- COMMAND:openballas(playerid, params[])
- {
- #pragma unused params
- if(PlayerInfo[playerid][Org] == 0) return SendClientMessage(playerid, GetPlayerColor(playerid), "Voce nao é da Ballas.");
- if(PlayerInfo[playerid][Org] == 9)
- {
- GameTextForPlayer(playerid,"~b~PORTAO BALLAS ABERTO",1500,4);
- MoveObject(PortaoBallas, 2091.3000488,-1604.5000000,8.1000004, 3.0);
- SetTimerEx("TimeCloseBallas", 5000,false,"i",playerid);
- }
- else
- {
- SendClientMessage(playerid,GetPlayerColor(playerid),"Voce nao é da Ballas.");
- }
- return 1;
- }
- forward TimeCloseBallas(playerid);
- public TimeCloseBallas(playerid)
- {
- MoveObject(PortaoBallas, 2091.3000488,-1604.5000000,15.1000004, 3.0);
- GameTextForPlayer(playerid,"~r~PORTAO BALLAS FECHADO",1500,4);
- }
- COMMAND:roubar(playerid, params[])
- {
- if(PlayerInfo[playerid][Org] == 0) return SendClientMessage(playerid, GetPlayerColor(playerid), "Voce nao é um criminoso.");
- if(PlayerInfo[playerid][Org] > 5)
- {
- if(Roubando[playerid] == 1) return SendClientMessage(playerid, GetPlayerColor(playerid), "Voce ja esta efetuando um roubo.");
- if(BlockRoubo[playerid] == 0){RoubarBanco(playerid);}
- else{SendClientMessage(playerid,COR_ERRO,"Aguarde 30 segundos para roubar novamente");}
- }
- return 1;
- }
- COMMAND:barril(playerid, params[])
- {
- new Float:POS[3];
- GetPlayerPos(playerid, POS[0], POS[1], POS[2]);
- if(PlayerInfo[playerid][Org] == 0) return SendClientMessage(playerid, GetPlayerColor(playerid), "Voce nao é um criminoso.");
- if(PlayerInfo[playerid][Org] > 5)
- {
- if(Barril[playerid] == 0)
- {
- BarrilC[playerid] = CreateObject(1225, POS[0], POS[1], POS[2], 0.0, 0.0, 96.0);
- Barril[playerid] = 1;
- }else{return SendClientMessage(playerid, GetPlayerColor(playerid), "Numero maximo de barril(/rbarril).");}
- }else{return SendClientMessage(playerid, GetPlayerColor(playerid), "Voce nao é um criminoso.");}
- return 1;
- }
- COMMAND:br(playerid, params[])
- {
- new Float:POS[3];
- GetPlayerPos(playerid, POS[0], POS[1], POS[2]);
- if(PlayerInfo[playerid][Org] == 0) return SendClientMessage(playerid, GetPlayerColor(playerid), "Voce nao é um policial.");
- if(PlayerInfo[playerid][Org] < 6 && PlayerInfo[playerid][Org] != 0)
- {
- if(Barreira[playerid] == 0)
- {
- BarreiraC[playerid] = CreateObject(981, POS[0]+3, POS[1], POS[2], 0.0, 0.0, 96.0);
- Barreira[playerid] = 1;
- }else{return SendClientMessage(playerid, GetPlayerColor(playerid), "Numero maximo de barreira(/rbr).");}
- }else{return SendClientMessage(playerid, GetPlayerColor(playerid), "Voce nao é um policial.");}
- return 1;
- }
- COMMAND:rbarril(playerid, params[])
- {
- if(PlayerInfo[playerid][Org] == 0) return SendClientMessage(playerid, GetPlayerColor(playerid), "Voce nao é um criminoso.");
- if(PlayerInfo[playerid][Org] > 5)
- {
- DestroyObject(BarrilC[playerid]);
- Barril[playerid] = 0;
- SendClientMessage(playerid, GetPlayerColor(playerid), "(INFO)Barril removido.");
- }else{return SendClientMessage(playerid, GetPlayerColor(playerid), "Voce nao é um criminoso.");}
- return 1;
- }
- COMMAND:rbr(playerid, params[])
- {
- if(PlayerInfo[playerid][Org] == 0) return SendClientMessage(playerid, GetPlayerColor(playerid), "Voce nao é um policial.");
- if(PlayerInfo[playerid][Org] < 6 && PlayerInfo[playerid][Org] != 0)
- {
- DestroyObject(BarreiraC[playerid]);
- Barreira[playerid] = 0;
- SendClientMessage(playerid, GetPlayerColor(playerid), "(INFO)Barreira removida.");
- }else{return SendClientMessage(playerid, GetPlayerColor(playerid), "Voce nao é um policial.");}
- return 1;
- }
- COMMAND:vendermaconha(playerid, params[])
- {
- new PlayerB, Quant;
- if(PlayerInfo[playerid][Org] == 0) return SendClientMessage(playerid, GetPlayerColor(playerid), "Voce nao é um Yakuza.");
- if(sscanf(params, "ud", PlayerB, Quant)) return SendClientMessage(playerid, GetPlayerColor(playerid), "Digite: /VenderMaconha [ID][Quant]");
- if(PlayerInfo[playerid][Org] == 7)
- {
- PlayerInfo[PlayerB][Maconha] = Quant;
- SendClientMessage(playerid, GetPlayerColor(playerid), "(TRAFICO)Maconha vendida.");
- SendClientMessage(PlayerB, GetPlayerColor(playerid), "(TRAFICO)Voce recebeu sua maconha.");
- }else{return SendClientMessage(playerid, GetPlayerColor(playerid), "Voce nao é um Yakuza.");}
- return 1;
- }
- COMMAND:vendercrack(playerid, params[])
- {
- new PlayerB, Quant;
- if(PlayerInfo[playerid][Org] == 0) return SendClientMessage(playerid, GetPlayerColor(playerid), "Voce nao é um Yakuza.");
- if(sscanf(params, "ud", PlayerB, Quant)) return SendClientMessage(playerid, GetPlayerColor(playerid), "Digite: /VenderMaconha [ID][Quant]");
- if(PlayerInfo[playerid][Org] == 7)
- {
- PlayerInfo[PlayerB][Crack] = Quant;
- SendClientMessage(playerid, GetPlayerColor(playerid), "(TRAFICO)Crack vendido.");
- SendClientMessage(PlayerB, GetPlayerColor(playerid), "(TRAFICO)Voce recebeu seu crack.");
- }else{return SendClientMessage(playerid, GetPlayerColor(playerid), "Voce nao é um Yakuza.");}
- return 1;
- }
- COMMAND:venderarma(playerid, params[])
- {
- new PlayerB, Arma;
- if(PlayerInfo[playerid][Org] == 0) return SendClientMessage(playerid, GetPlayerColor(playerid), "Voce nao é um Yakuza.");
- if(sscanf(params, "ud", PlayerB, Arma)) return SendClientMessage(playerid, GetPlayerColor(playerid), "Digite: /VenderArma [ID][Combat(27),Uzi(28),Sniper(34)]");
- if(PlayerInfo[playerid][Org] == 7)
- {
- if(Arma == 27){GivePlayerWeapon(PlayerB, 27, 120);SendClientMessage(PlayerB, GetPlayerColor(playerid), "(TRAFICO)Recebeu Shoutgun Combat.");}
- if(Arma == 28){GivePlayerWeapon(PlayerB, 28, 500);SendClientMessage(PlayerB, GetPlayerColor(playerid), "(TRAFICO)Recebeu Micro SMG/Uzi.");}
- if(Arma == 28){GivePlayerWeapon(PlayerB, 34, 100);SendClientMessage(PlayerB, GetPlayerColor(playerid), "(TRAFICO)Recebeu Sniper.");}
- SendClientMessage(playerid, GetPlayerColor(playerid), "(TRAFICO)Arma vendida.");
- }else{return SendClientMessage(playerid, GetPlayerColor(playerid), "Voce nao é um Yakuza.");}
- return 1;
- }
- COMMAND:comandosorg(playerid, params[])
- {
- #pragma unused params
- if(PlayerInfo[playerid][Org] == 0) return SendClientMessage(playerid,COR_ERRO,"Voce é um civil.");
- if(PlayerInfo[playerid][Org] == 1)
- {
- ShowPlayerDialog(playerid, DIALOG_NULL, DIALOG_STYLE_MSGBOX, "COMANDOS - PM", "/OpenDP - /OpenGA\n/InfoOrg - /Membros - /CP\n/Procurar - /Render - /Algemar - /Prender - /BR - /RBR - /Desamarrar", "OK", "");
- }
- if(PlayerInfo[playerid][Org] == 2)
- {
- ShowPlayerDialog(playerid, DIALOG_NULL, DIALOG_STYLE_MSGBOX, "COMANDOS - PC", "/OpenDP - /OpenGA - /OpenPC\n/InfoOrg - /Membros - /CP\n/Procurar - /Render - /Algemar - /Prender - /BR - /RBR - /Desamarrar", "OK", "");
- }
- if(PlayerInfo[playerid][Org] == 3)
- {
- ShowPlayerDialog(playerid, DIALOG_NULL, DIALOG_STYLE_MSGBOX, "COMANDOS - GOE", "/OpenDP - /OpenGA - /OpenGOE\n/InfoOrg - /Membros - /CP\n/Procurar - /Render - /Algemar - /Prender - /BR - /RBR - /Desamarrar", "OK", "");
- }
- if(PlayerInfo[playerid][Org] == 4)
- {
- ShowPlayerDialog(playerid, DIALOG_NULL, DIALOG_STYLE_MSGBOX, "COMANDOS - EXT", "/OpenDP - /OpenGA - /OpenEXT\n/InfoOrg - /Membros - /CP\n/Procurar - /Render - /Algemar - /Prender - /BR - /RBR - /Desamarrar", "OK", "");
- }
- if(PlayerInfo[playerid][Org] == 5)
- {
- ShowPlayerDialog(playerid, DIALOG_NULL, DIALOG_STYLE_MSGBOX, "COMANDOS - FA", "/OpenDP - /OpenGA - /OpenFA\n/InfoOrg - /Membros - /CP\n/Procurar - /Render - /Algemar - /Prender - /BR - /RBR - /Desamarrar", "OK", "");
- }
- if(PlayerInfo[playerid][Org] == 6)
- {
- ShowPlayerDialog(playerid, DIALOG_NULL, DIALOG_STYLE_MSGBOX, "COMANDOS - GROOVE", "/OpenGroove\n/InfoOrg - /Membros - /CP\n/Roubar - /Sequestrar - /Desamarrar\n/Barril - /RBarril", "OK", "");
- }
- if(PlayerInfo[playerid][Org] == 7)
- {
- ShowPlayerDialog(playerid, DIALOG_NULL, DIALOG_STYLE_MSGBOX, "COMANDOS - Yakuza", "/OpenYkz\n/InfoOrg - /Membros - /CP\n/Roubar - /Sequestrar - /Desamarrar\n/VenderCrack - /VenderMaconha - /VenderArma\n/Barril - /RBarril", "OK", "");
- }
- if(PlayerInfo[playerid][Org] == 8)
- {
- ShowPlayerDialog(playerid, DIALOG_NULL, DIALOG_STYLE_MSGBOX, "COMANDOS - LCN", "/OpenLCN\n/InfoOrg - /Membros - /CP\n/Roubar - /Sequestrar - /Desamarrar\n/Barril - /RBarril", "OK", "");
- }
- if(PlayerInfo[playerid][Org] == 9)
- {
- ShowPlayerDialog(playerid, DIALOG_NULL, DIALOG_STYLE_MSGBOX, "COMANDOS - Ballas", "/OpenBallas\n/InfoOrg - /Membros - /CP\n/Roubar - /Sequestrar - /Desamarrar\n/Barril - /RBarril", "OK", "");
- }
- if(PlayerInfo[playerid][Org] == 10)
- {
- ShowPlayerDialog(playerid, DIALOG_NULL, DIALOG_STYLE_MSGBOX, "COMANDOS - AQ", "/OpenAQ\n/InfoOrg - /Membros - /CP\n/Roubar - /Sequestrar - /Desamarrar\n/Barril - /RBarril", "OK", "");
- }
- if(PlayerInfo[playerid][Org] == 11)
- {
- ShowPlayerDialog(playerid, DIALOG_NULL, DIALOG_STYLE_MSGBOX, "COMANDOS - Taliban", "/OpenTL\n/InfoOrg - /Membros - /CP\n/Roubar - /Sequestrar - /Desamarrar\n/Barril - /RBarril", "OK", "");
- }
- return 1;
- }
- COMMAND:sequestrar(playerid, params[])
- {
- new PlayerB, Float:Pos[3], Float:Distancia = 3.0; // Distancia 5 metros
- new String[256];
- GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
- new Nome[156];
- GetPlayerName(playerid, Nome, sizeof(Nome));
- if(PlayerInfo[playerid][Org] == 0) return SendClientMessage(playerid,COR_ERRO,"Voce é um civil.");
- if(sscanf(params, "u", PlayerB)) return SendClientMessage(playerid, GetPlayerColor(playerid), "Digite: /Sequestrar [ID]");
- if(PlayerInfo[playerid][Org] > 5 && PlayerInfo[playerid][Org] != 0 && PlayerInfo[playerid][Org] != 12 && PlayerInfo[playerid][Org] != 14 && PlayerInfo[playerid][Org] != 15)
- {
- if(IsPlayerInRangeOfPoint(PlayerB, Distancia, Pos[0], Pos[1], Pos[2]))
- {
- new Sequest[156];
- GetPlayerName(PlayerB, Sequest, sizeof(Sequest));
- TogglePlayerControllable(PlayerB, 0);
- Sequestrado[PlayerB] = 1;
- PutPlayerInVehicle(PlayerB, GetVehicleModel(playerid), 2 ) ;
- format(String, sizeof(String),"(SEQUESTRO)O jogador %s sequestrou : %s",Nome, Sequest);
- SendClientMessageToAll(COR_AVISOADM,String);
- }
- }
- else{return SendClientMessage(playerid,COR_AVISO,"Voce nao é um criminoso.");}
- return 1;
- }
- COMMAND:desamarrar(playerid, params[])
- {
- new PlayerB, Float:Pos[3], Float:Distancia = 3.0; // Distancia 5 metros
- new String[256];
- GetPlayerPos(playerid, Pos[0], Pos[1], Pos[2]);
- new Nome[156];
- GetPlayerName(playerid, Nome, sizeof(Nome));
- if(PlayerInfo[playerid][Org] == 0) return SendClientMessage(playerid,COR_ERRO,"Voce é um civil.");
- if(sscanf(params, "u", PlayerB)) return SendClientMessage(playerid, GetPlayerColor(playerid), "Digite: /Desamarrar [ID]");
- if(PlayerInfo[playerid][Org] != 0)
- {
- if(Sequestrado[PlayerB] == 1)
- {
- if(IsPlayerInRangeOfPoint(PlayerB, Distancia, Pos[0], Pos[1], Pos[2]))
- {
- new Sequest[156];
- GetPlayerName(PlayerB, Sequest, sizeof(Sequest));
- TogglePlayerControllable(PlayerB, 1);
- Sequestrado[PlayerB] = 0;
- format(String, sizeof(String),"(SEQUESTRO)O jogador %s desamarrou o jogador sequestrado : %s",Nome, Sequest);
- SendClientMessageToAll(COR_AVISOADM,String);
- }
- }else{return SendClientMessage(playerid,COR_AVISO,"O jogador nao esta Sequestrado.");}
- }
- return 1;
- }
- COMMAND:comandoslider(playerid, params[])
- {
- #pragma unused params
- if(PlayerInfo[playerid][Cargo] > 9)
- {
- ShowPlayerDialog(playerid, 8888, DIALOG_STYLE_MSGBOX, "COMANDOS - LIDERES", "/Liberarnick - /Alistar - /Promover - /Demitir - /LimparVaga", "OK", "");
- }
- return 1;
- }
- //------------------------SISTEMA VIP--------------------------//
- COMMAND:armasvip(playerid, params[])
- {
- #pragma unused params
- if(PlayerInfo[playerid][Vip] >= 1)
- {
- ShowPlayerDialog(playerid, DIALOG_VIP, DIALOG_STYLE_LIST, "MENU - ARMAS VIP", "Brass Knuckles\nKnife\nShovel\nKatana\nChainsaw\nGrenade\nMolotov\nDesert Eagle\nSawnoff\nTec-9\nFlamethrower\nJetpack", "Selecionar", "Cancelar");
- }
- else{SendClientMessage(playerid,COR_ERRO,"Voce nao é vip.");}
- return true;
- }
- COMMAND:vips(playerid,params[])
- {
- #pragma unused params
- new String[256];
- new Name[156];
- for(new i;i<MAX_PLAYERS;i++)
- {
- if(PlayerInfo[i][Vip] > 0)
- {
- GetPlayerName(i, Name, sizeof(Name));
- format(String, sizeof(String),"(VIP)Nome: %s | Nivel: %d",Name, PlayerInfo[i][Vip]);
- SendClientMessage(playerid,0xFF976AFF,String);
- }
- }
- return 1;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement