Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /*
- ____ _____ __
- / __ \____ ____ / ___/____ ___ ___ ____/ /
- / / / / __ \/ __ \ \__ \/ __ \/ _ \/ _ \/ __ /
- / /_/ / /_/ / / / / ___/ / /_/ / __/ __/ /_/ /
- _____/\____/_/ /_/____/____/ .___/\___/\___/\__,_/
- /_/
- */
- /* Brasil RolePlay - Beta
- Inicio do projeto : 7 de Setembro 2017
- O que ja foi feito ?
- - Sistema de registro com seleção de sexo
- - Sistema de emprego (Motorista , entregador)
- - Sistema de entregador com rota random e facil de acrescentar rota
- - Sistema de motorista com rota random e facil de acrescentar rota
- - Sistema de infoadmin [POSTED]
- - 4 Niveis de Admin
- - Sistema de ORG
- - Sistema de infoorg [POSTED]
- - Carros personalizados GM e BOPE
- - Sistema de Celular com operadora : EX : 8094-8745 [/sms /ligar][resetar numero compra de creditos]
- - Sistema de radio [POSTED]
- - Sistema de empresa
- - Todas HQ (Menos Reporter)
- - Sistema de suspeito com codigo penal
- new JaUsou[MAX_PLAYERS];
- JaUsou[playerid] = gettime() + (60000*5);
- if(JaUsou[playerid] > gettime()) return SendClientMessage(playerid, -1, "espere 5 minutos!");
- */
- #include a_samp
- #include DOF2
- #include zcmd
- #include sscanf2
- #include a_zone
- #include streamer
- #define DIALOG_REGISTER 1
- #define DIALOG_LOGIN 2
- #define DIALOG_SEXO 3
- #define DIALOG_EMPREGO 4
- #define DIALOG_TELEFONE 5
- #define DIALOG_OPERADORA 6
- #define DIALOG_CREDITOS 7
- #define DIALOG_RESETARN 8
- #define DIALOG_RADIO 9
- #define DIALOG_MUSICA 10
- /* DEFINIÇOES DE REGISTRO */
- #define GRANAINICIAL 10000
- #define NIVELINICIAL 5
- #define SKININICIAL 29
- #define SKININICIALF 40
- #define POSPADRAO1 1540.6992
- #define POSPADRAO2 -1674.5836
- #define POSPADRAO3 13.5511
- #define ContaSalva "BrasilRolePlay/Contas/%s.ini"
- #define CallBacK::%0[%1] forward %0(%1); public %0(%1)
- /* DEFINIÇOES DE ORGANIZACOES */
- #define OrgSalva "BrasilRolePlay/Organizacao/%d.ini"
- #define MAX_WEAPON 3
- #define MAX_ORGS 11// MAXIMO
- #define MAX_VORG 5 // vagas para cara org
- enum iorg
- {
- ID,
- NameORG[50],
- SkinLider,
- SkinMembro1,
- Color,
- Float:X,
- Float:Y,
- Float:Z,
- Armas[MAX_WEAPON],
- Salario,
- Interior
- }
- new OrgInfo[MAX_ORGS][iorg] = {
- {0,"Civil", 0, 0, -1, 0.0, 0.0, 0.0, 0}, // default */
- {1,"Guarda Municipal", 283, 282, 0x87CEFAFF, 225.0737,75.9404,1005.0391, {3,24} , 1000, 6},// Multas , rondas , emplacamento
- {2,"Policia Militar", 280, 281, 0x1E90FFFF, 1529.4178,-1668.5122,6.2188, {24,31,29} , 2000, 0}, // rondas abordagens
- {3,"B.O.P.E", 284, 285, 0x696969FF, 1525.2028,-1458.0073,9.5000, {24,31,29}, 5000, 0}, // Atraz dos procurados
- {4,"San News", 120, 120, 0xE0FFFFFF, 0.0, 0.0, 0.0, 43, 1900, 0},
- {5,"Prefeitura", 59, 59, 0xFF0000FF, 284.3175,-1614.6475,17.8593, 43, 1900, 0},
- {6,"Grove Street Families", 107, 106, 0x00FF7FFF, 2488.5647,-1692.0552,14.7656, { 24, 30 }, 900, 0},
- {7,"Front Yard Ballas", 104, 102, 0xFF00FFFF, 332.3149,-1338.0713,14.5078, { 24, 30 }, 900, 0},
- {8,"Los Santos Vagos", 108, 109, 0xFFFF00FF, 950.2487,-909.8270,45.7656, { 24, 30 }, 900, 0},
- {9,"Varrio Los Aztecas", 115, 114, 0x1E90FFFF, 1677.0472,-2124.4573,13.5469, { 24, 30 }, 900, 0},
- {10,"NUll", 0, 0, -1, 0.0, 0.0, 0.0, 0, 900, 0}
- };
- new OrgsCargos[][11] = {
- "Líder",
- "Membro(1)",
- "Membro(2)",
- "Membro(3)",
- "Membro(4)",
- "Membro(5)",
- "Membro(6)",
- "Membro(7)",
- "Membro(8)",
- "Membro(9)",
- "Membro(10)"
- };
- /* DEFINIÇOES DE ADMIN */
- #define AdminSalva "BrasilRolePlay/Admin/%d.ini"
- #define MAX_VAGAS 10
- enum pAdm{
- Name[24],
- Nivel
- }
- new AdminInfo[MAX_VAGAS][pAdm];
- new NomeNivel[][50] ={
- {"Player"},
- {"Game Tester"},
- {"Game Leader"},
- {"Administrator"},
- {"Dono"}
- };
- /* DEFINIÇOES DE EMPREGO */
- #define MAX_EMPREGO 3
- enum pEmprego{
- Nome[50],
- Salario
- }
- new Empregos[MAX_EMPREGO][pEmprego] = {
- {"Desempregado", 100},
- {"Entregador", 900},
- {"Motorista", 1000}
- };
- new VTRUCK[14];
- new VBUS[6];
- /* DEFINICOES DE TRABALHO TRUCK*/
- #define MAXROTAS 4
- enum pJob{
- IDColeta,
- Produto[80],
- Local[80],
- Float:X,
- Float:Y,
- Float:Z,
- Pagamento
- }
- new TrabalhoInfo[MAXROTAS][pJob] = {
- {0,"N/D", "N/D", 0.0, 0.0, 0.0, 0},
- {1,"Seringa", "Hospital Municipal", 1174.5002, -1309.0336, 13.9948, 200},
- {2,"Lençois", "Cemiterio Municipal", 938.8779,-1086.5824,24.2962, 180},
- {3,"Caixa de doces", "Parque Municipal", 379.7225,-2020.7133,7.8301, 150}
- };
- /* DEFINICOES DE TRABALHO Onibus*/
- #define MAXROTAS 4
- enum pBus{
- IDColeta,
- Local[80],
- Float:X,
- Float:Y,
- Float:Z,
- Pagamento
- }
- new OnibusInfo[MAXROTAS][pBus] = {
- {0,"N/D", 0.0, 0.0, 0.0, 0},
- {1,"Cidade 1", 637.7001,-556.6019,16.0826, 200},
- {2,"Cidade 2", 286.9157,-171.9587,1.3246, 180},
- {3,"Cidade 3", -149.8699,1176.9861,19.6412, 150}
- };
- new EmGeral[100], String[300];
- enum pInfo {
- Dinheiro,
- Nivel,
- Respeito,
- TempoJogado,
- Skin,
- Float:Pos[3],
- Interior,
- Tentativa,
- TSalvar,
- Emprego,
- IDColeta,
- IDVColeta,
- Admin,
- Text:Zona,
- Passei,
- MinhaOrg,
- Ranked,
- Telefone,
- Creditos,
- LigouP,
- Procurado,
- Suspeito[5],
- TempoPreso,
- bool:PoliciaM,
- bool:Atendeu,
- bool:Sexo,
- bool:Login,
- bool:Coletou
- }
- new PlayerInfo[MAX_PLAYERS][pInfo];
- new ViaturaGM[11];
- new PortaoGM[2];
- new PortaoBaixo[2];
- new ViaturaBOPE[6];
- new PortaoBOPE;
- new ViaturaPM[11];
- new PortaoPM;
- new VPR[9];
- /* DDD Operadoras */
- new op1[] ={
- 69,
- 79,
- 80,
- 81,
- 82,
- 83
- };
- new op2[] = {
- 68,
- 73,
- 74,
- 75,
- 91,
- 92,
- 93
- };
- new op3[] = {
- 84,
- 85,
- 86,
- 87,
- 88,
- 89
- };
- new op4[] = {
- 95,
- 96,
- 97,
- 98,
- 99
- };
- new op5[] = {
- 30,
- 40
- };
- /*DEFINICOES DE RADIO*/
- #define MAX_MUSICAS 17
- #define MAX_ESTILOS 4
- /* ESTILOS MUSICAIS */
- new EstiloMusical[][]={
- {"ERRO"},
- {"SERTANEJO"},
- {"FUNK"},
- {"POP"}
- };
- new cont;
- new MusicaDon[MAX_PLAYERS][MAX_MUSICAS];
- enum ir{
- IdMusica,
- Estilo,
- Musica[80],
- Cantor[80],
- Link[150]
- }
- new Radio[MAX_MUSICAS][ir] = {
- {0,0, "--", "--", "--"},
- {1,3, "Beliver","Imagine Dragons","https://www.dropbox.com/s/av25zujiv911rtq/Believer.mp3?dl=1"},
- {2,1, "Laranjinha","Wesley Safadão","https://www.dropbox.com/s/6t7232dea7pi7a8/Laranjinha%20DVD%20WS%20In%20Miami%20Beach.mp3?dl=1"},
- {3,3, "The Scientis", "Gabriella", "https://www.dropbox.com/s/n1ypy6syd2hna2y/Coldplay%20-%20The%20Scientist%20Cover.mp3?dl=1"},
- {4,1, "Suave", "Mateus & Kauan", "https://www.dropbox.com/s/9y78jsvhh7ypcdj/VillaMix%20Suave.mp3?dl=1"},
- {5,1, "Direitos Iguais", "Allana Macedo", "https://www.dropbox.com/s/nbqkdr0evopq3q9/Direitos%20Iguais%20Ao%20vivo.mp3?dl=1"},
- {6,1, "Duas da Manha", "Maycon & Vinicius", "https://www.dropbox.com/s/zjw14qx5lsnntun/Duas%20da%20Manha%20Clipe%20Oficial.mp3?dl=1"},
- {7,1, "Poe no 120", "Conrado & Aleksandro", "https://www.dropbox.com/s/6ynoelonap1ob6s/Poe%20no%20120%20Marco%20Brasil%20Filho%20DJ%20Kevin.mp3?dl=1"},
- {8,3, "Paradise", "ColdPlay", "https://www.dropbox.com/s/wqerh6njlun227o/Paradise%20Official%20Video.mp3?dl=1"},
- {9,3, "Wake Me Up", "Avicii", "https://www.dropbox.com/s/288ugnwg3lzvh5n/Wake%20Me%20Up%20Official%20Video.mp3?dl=1"},
- {10,3, "Let Her Go", "Passenger ", "https://www.dropbox.com/s/zxq4xrw6oemlwcf/Passenger%20Let%20Her%20Go%20Official%20Video.mp3?dl=1"},
- {11,2, "Encaixa", "MC Kevinho", "https://www.dropbox.com/s/qsayzpfmcvl2hzc/Encaixa%20KondZilla.mp3?dl=1"},
- {12,2, "OS MALOCA", "MC Livinho", "https://www.dropbox.com/s/viowpzknznnzlai/Perera%20DJ%20feat%20MC%20Livinho%20MC%20Davi%20MC%20Brinquedo%20e%20MC%20Pedrinho.mp3?dl=1"},
- {13,1, "Chifre não e asa", "Thayná Bitencourt", "https://www.dropbox.com/s/bpyr1euw3cmu8wy/Chifre%20nao%20e%20Asa.mp3?dl=1"},
- {14,1, "Juízo Ficou Em Casa", "Mariana e Mateus", "https://www.dropbox.com/s/ko2etb395kmkofj/Juizo%20Ficou%20Em%20Casa%20CLIPE%20OFICIAL.mp3?dl=0"},
- {15,3, "Despacito", "Luis Fonsi", "https://www.dropbox.com/s/waj4025cnp4lr11/Despacito%20ft%20Daddy%20Yankee.mp3?dl=1"},
- {16,1, "Cachaça e Nutella" , "Fernando & Sorocaba", "https://www.dropbox.com/s/gzcvgh97g9kzhyt/Cachaca%20e%20Nutella.mp3?dl=1"}
- // SEMPRE MUDAR AQUELE 0 (ZERO) DO FINAL DO LINK PARA 1 (UM)
- };
- static const Infoart[14][350] = {
- {"{FFFFFF} --- Principais código penal ---"},
- {"{FFFFFF}Art. 33 - Tranfico de intorpecentes .(Resumo)"},
- {"{FFFFFF}Art. 121 - Crime contra vida .(Resumo)"},
- {"{FFFFFF}Art. 129 - Ofender a integridade corporal ou a saúde de outrem ."},
- {"{FFFFFF}Art. 138 - Caluniar alguém, imputando-lhe falsamente fato definido como crime ."},
- {"{FFFFFF}Art. 140 - Injuriar alguém, ofendendo-lhe a dignidade ou o decoro ."},
- {"{FFFFFF}Art. 148 - Privar alguém de sua liberdade, mediante seqüestro ou cárcere privado ."},
- {"{FFFFFF}Art. 150 - Entrar ou permanecer clandestina, em casa alheia ou em suas dependências ."},
- {"{FFFFFF}Art. 155 - Subtrair, para si ou para outrem, coisa alheia ."},
- {"{FFFFFF}Art. 157 - Subtrair, para si ou para outrem, coisa alheia, mediante grave ameaça ou violência a pessoa ."},
- {"{FFFFFF}Art. 163 - Destruir, inutilizar ou deteriorar coisa alheia ."},
- {"{FFFFFF}Art. 171 - Obter, para si ou para outrem, vantagem ilícita, em prejuízo alheio, ou qualquer outro meio fraudulento ."},
- {"{FFFFFF}Art. 331 - Desacatar, ou seja, faltar com o respeito para com um funcionário público no exercício da função ."},
- {"{FFFFFF} --- Principais código penal ---"}
- };
- static const Tempoart[14][350] = {
- {"{FFFFFF} --- Principais código penal ---"},
- {"{FFFFFF}Art. 33 - 10 Minutos de reclusão ."},
- {"{FFFFFF}Art. 121 - 30 Minutos de reclusão ."},
- {"{FFFFFF}Art. 129 - 05 Minutos de reclusão ."},
- {"{FFFFFF}Art. 138 - 05 Minutos de reclusão ."},
- {"{FFFFFF}Art. 140 - 05 Minutos de reclusão ."},
- {"{FFFFFF}Art. 148 - 20 Minutos de reclusão ."},
- {"{FFFFFF}Art. 150 - 10 Minutos de reclusão ."},
- {"{FFFFFF}Art. 155 - 15 Minutos de reclusão ."},
- {"{FFFFFF}Art. 157 - 20 Minutos de reclusão ."},
- {"{FFFFFF}Art. 163 - 10 Minutos de reclusão ."},
- {"{FFFFFF}Art. 171 - 05 Minutos de reclusão ."},
- {"{FFFFFF}Art. 331 - 10 Minutos de reclusão ."},
- {"{FFFFFF} --- Principais código penal ---"}
- };
- new VGroove[5];
- new VBallas[5];
- new VVagos[5];
- new VAzteca[5];
- /* INCLUDES EXTRAS */
- #include BrasilInclude\COMANDOSPLAYERS.pwn
- #include BrasilInclude\MAPAS.pwn
- #include BrasilInclude\TEXTDRAW.pwn
- #include BrasilInclude\DS-Ban.pwn
- #include BrasilInclude\EMPRESA.pwn
- //#include BrasilInclude\DS-Sistema carro.pwn
- main()
- {
- print(" [ BRASIL ROLEPLAY BETA] ");
- }
- CallBacK::OnGameModeInit[]
- {
- SetGameModeText("Brasil RolePlay");
- SendRconCommand("mapname Brasil");
- SendRconCommand("hostname Brasil RolePlay [BETA]");
- DisableInteriorEnterExits();
- UsePlayerPedAnims();
- EnableStuntBonusForAll(false);
- //LoadVehicleAll();
- MapGameMode();
- //ManualVehicleEngineAndLights();
- AdmCarrega();// Carrega o sistema de admin
- ORGCarrega();
- CarregarEmpresa();
- /*Agencia de emprego*/
- CreatePickup(1239, 1, 951.1113,-1744.5856,13.6210,-1);
- Create3DTextLabel("{FFFFFF}[AGENCIA DE EMPREGO]\n(/pegaremprego)", -1, 951.1113,-1744.5856,13.6210, 15.0, 0, 0);
- /*Spawn Transportador*/
- CreatePickup(1279, 1, 1751.4454,-2055.2585,13.9677,-1);
- Create3DTextLabel("{FFFFFF}[Don Transportes]\nLocal de coleta.(/coletar)", -1, 1751.4454,-2055.2585,13.9677, 15.0, 0, 0);
- for(new ds = 1; ds < MAXROTAS; ds++)
- {
- format(String, sizeof String, "{FFFFFF}[%s]\nLocal de coleta.(/coletar)", TrabalhoInfo[ds][Local]);
- CreatePickup(1279, 1, TrabalhoInfo[ds][X],TrabalhoInfo[ds][Y],TrabalhoInfo[ds][Z],-1);
- Create3DTextLabel(String, -1, TrabalhoInfo[ds][X],TrabalhoInfo[ds][Y],TrabalhoInfo[ds][Z], 15.0, 0, 0);
- }
- for(new donspeed = 1; donspeed < MAXROTAS; donspeed++)
- {
- format(String, sizeof String, "{FFFFFF}[%s]\nLocal para embarque e desembaque", OnibusInfo[donspeed][Local]);
- Create3DTextLabel(String, -1, OnibusInfo[donspeed][X],OnibusInfo[donspeed][Y],OnibusInfo[donspeed][Z], 15.0, 0, 0);
- }
- Create3DTextLabel("{FFFFFF}[Terminal de Los Santos]\nLocal para embarque e desembaque", -1, 1269.6337,-1833.7631,13.3850, 15.0, 0, 0);
- /* ENTRADAS E SAIDAS */
- CreatePickup(1239, 1, 1112.1864,-1370.0305,13.9844,-1);// Loja pickup na rua
- Create3DTextLabel("{FFFFFF}[{FFEC8B}Loja de celulares{FFFFFF}]\nAperte 'F' para entrar", -1, 1112.1864,-1370.0305,13.9844, 15.0, 0, 0);
- CreatePickup(1239, 1, 662.6379,-573.4273,16.3359,-1);// Loja pickup na interior
- Create3DTextLabel("{FFFFFF}[{FFEC8B}Loja de celulares{FFFFFF}]\nAperte 'F' para sair", -1, 662.6379,-573.4273,16.3359, 15.0, 0, 0);
- CreatePickup(1274, 1, 664.1734,-568.1102,16.3433,-1);// Loja pickup na interior
- Create3DTextLabel("{FFFFFF}[{FFEC8B}Loja de celulares{FFFFFF}]\nUse '/comprarlc' para efetuar a compra", -1, 664.1734,-568.1102,16.3433, 15.0, 0, 0);
- CreatePickup(1239, 1, 246.9205,62.8383,1003.6406,-1); // Guarda municipal
- Create3DTextLabel("{FFFFFF}[{87CEFA}Guarda Municipal{FFFFFF}]\nAperte 'F' para sair", -1, 246.9205,62.8383,1003.6406, 15.0, 0, 0);
- CreatePickup(1239, 1, 1480.7234,-1783.2421,21.0903,-1); // Guarda municipal
- Create3DTextLabel("{FFFFFF}[{87CEFA}Guarda Municipal{FFFFFF}]\nAperte 'F' para entrar", -1, 1480.7234,-1783.2421,21.0903, 15.0, 0, 0);
- CreatePickup(1242, 1, 258.5227,77.6601,1003.6406,-1);
- Create3DTextLabel("{FFFFFF}[{87CEFA}Guarda Municipal{FFFFFF}]\nAperte 'F' para obter os equipamentos", -1, 258.5227,77.6601,1003.6406, 15.0, 0, 0);
- CreatePickup(1239, 1, 1554.6930,-1675.4583,16.1953,-1);
- Create3DTextLabel("{FFFFFF}[{1E90FF}Policia Militar{FFFFFF}]\nAperte 'F' para entrar", -1, 1554.6930,-1675.4583,16.1953, 15.0, 0, 0);
- CreatePickup(1239, 1, 246.375991,109.245994,1003.218750,-1);// Policia interior
- Create3DTextLabel("{FFFFFF}[{1E90FF}Policia Militar{FFFFFF}]\nAperte 'F' para sair", -1, 246.375991,109.245994,1003.218750, 15.0, 0, 0);
- CreatePickup(1242, 1, 256.2979,120.9445,1003.2188,-1);
- Create3DTextLabel("{FFFFFF}[{1E90FF}Policia Militar{FFFFFF}]\nAperte 'F' para obter os equipamentos", -1, 256.2979,120.9445,1003.2188, 15.0, 0, 0);
- CreatePickup(1239, 1, 276.6117,122.0081,1004.6172,-1);
- Create3DTextLabel("{FFFFFF}[{1E90FF}Policia Militar{FFFFFF}]\nAperte 'F' para sair", -1, 276.6117,122.0081,1004.6172, 15.0, 0, 0);
- CreatePickup(1239, 1, 1524.8663,-1677.9346,5.8906,-1);// dentro do interior
- Create3DTextLabel("{FFFFFF}[{1E90FF}Policia Militar{FFFFFF}]\nAperte 'F' para entrar", -1, 1524.8663,-1677.9346,5.8906, 15.0, 0, 0);
- CreatePickup(1239, 1, 1525.2028,-1458.0073,9.5000,-1);
- Create3DTextLabel("{FFFFFF}[{696969}B.O.P.E{FFFFFF}]\nAperte 'F' para entrar", -1, 1525.2028,-1458.0073,9.5000, 15.0, 0, 0);
- CreatePickup(1239, 1, 1519.1150,-1452.6510,14.2031,-1);
- Create3DTextLabel("{FFFFFF}[{696969}B.O.P.E{FFFFFF}]\nAperte 'F' para entrar", -1, 1519.1150,-1452.6510,14.2031, 15.0, 0, 0);
- CreatePickup(1239, 1, 322.2710,317.4043,999.1484,-1); // saida baixo
- Create3DTextLabel("{FFFFFF}[{696969}B.O.P.E{FFFFFF}]\nAperte 'F' para sair", -1, 322.2710,317.4043,999.1484, 15.0, 0, 0);
- CreatePickup(1239, 1, 322.197998,302.497985,999.148437,-1);
- Create3DTextLabel("{FFFFFF}[{696969}B.O.P.E{FFFFFF}]\nAperte 'F' para sair", -1, 322.197998,302.497985,999.148437, 15.0, 0, 0);
- CreatePickup(1242, 1, 325.1823,307.3195,999.1484,-1);
- Create3DTextLabel("{FFFFFF}[{696969}B.O.P.E{FFFFFF}]\nAperte 'F' para obter os equipamentos", -1, 325.1823,307.3195,999.1484, 15.0, 0, 0);
- CreatePickup(1239, 1, 1547.0463,-1130.1417,24.0721,-1);//Entrada Auto Escola
- Create3DTextLabel("{FFFFFF}[{00F5FF}Auto Escola{FFFFFF}]\nAperte 'F' para entrar", -1, 1547.0463,-1130.1417,24.0721, 15.0, 0, 0);
- CreatePickup(1239, 1, 1494.4147,1303.5787,1093.2891,-1);//saida Auto Escola
- Create3DTextLabel("{FFFFFF}[{00F5FF}Auto Escola{FFFFFF}]\nAperte 'F' para sair", -1, 1494.4147,1303.5787,1093.2891, 15.0, 0, 0);
- //CreatePickup(1210, 1, 1494.325195,1304.942871,1093.289062,-1);//Comprar cnh
- // Create3DTextLabel("{FFFFFF}[{00F5FF}Auto Escola{FFFFFF}]\nDigite (/cnh) para efetuar o teste.", -1, 1494.325195,1304.942871,1093.289062, 15.0, 0, 0);
- // GROVOE
- CreatePickup(1254, 1, 2495.1582,-1690.7872,14.7656,-1);
- Create3DTextLabel("{FFFFFF}[{006400}Groove Street{FFFFFF}]\nAperte 'F' para obter os equipamentos", -1, 2495.1582,-1690.7872,14.7656, 15.0, 0, 0);
- // Ballas
- CreatePickup(1254, 1, 341.6860,-1334.2548,14.5078,-1);
- Create3DTextLabel("{FFFFFF}[{C71585}Ballas{FFFFFF}]\nAperte 'F' para obter os equipamentos", -1, 341.6860,-1334.2548,14.5078, 15.0, 0, 0);
- // Vagos
- CreatePickup(1254, 1, 953.9611,-909.8114,45.7656,-1);
- Create3DTextLabel("{FFFFFF}[{FFFF00}Vagos{FFFFFF}]\nAperte 'F' para obter os equipamentos", -1, 953.9611,-909.8114,45.7656, 15.0, 0, 0);
- // azteca
- CreatePickup(1254, 1, 1673.8043,-2122.3308,14.1460,-1);
- Create3DTextLabel("{FFFFFF}[{6495ED}Azteca{FFFFFF}]\nAperte 'F' para obter os equipamentos", -1, 1673.8043,-2122.3308,14.1460, 15.0, 0, 0);
- return 1;
- }
- CallBacK::OnGameModeExit[]
- {
- AdmSalva();
- //SaveVehicleAll();
- DOF2_Exit();
- return 1;
- }
- CallBacK::OnPlayerRequestClass[playerid, classid]
- {
- // SetPlayerPos(playerid, 1958.3783, 1343.1572, 15.3746);
- // SetPlayerCameraPos(playerid, 1958.3783, 1343.1572, 15.3746);
- // SetPlayerCameraLookAt(playerid, 1958.3783, 1343.1572, 15.3746);
- return 0;
- }
- CallBacK::OnPlayerConnect[playerid]
- {
- CriarText(playerid);
- if(strfind(DonPegaNome(playerid), "_", true) == -1)
- {
- SendClientMessage(playerid, -1, "{FFFFFF}|____________________________ {FF0000}AVISO {FFFFFF}____________________________");
- SendClientMessage(playerid, -1, "{FFFFFF}Seu nome deve serguir o seguinte padrão : {FF0000}Nome_Sobrenome{FFFFFF}.");
- SendClientMessage(playerid, -1, "{FFFFFF}Por conta deste erro o senhor(a) foi desconectado de nosso sistemas.");
- SendClientMessage(playerid, -1,"");
- SendClientMessage(playerid, -1,"");
- SendClientMessage(playerid, -1, "{436EEE}Brasil Roleplay{FFFFFF} agradece a compreenção.");
- Kick(playerid);
- return 1;
- }
- PlayerInfo[playerid][MinhaOrg] = 0;
- PlayerInfo[playerid][Ranked] = 0;
- PlayerInfo[playerid][Login] = true;
- SetPlayerColor(playerid, -1);
- format(EmGeral, sizeof(EmGeral), ContaSalva , DonPegaNome(playerid));
- if(!DOF2_FileExists(EmGeral))
- {
- format(String, sizeof String, "{FFFFFF}Olá {FF0000}%s{FFFFFF} seja bem-vindo ao {436EEE}Brasil RolePlay{FFFFFF} .\n\n\nSenhor(a) não consta em nosso {FF0000}banco de dados{FFFFFF}.\nDigite uma senha para registrar.\n{FF0000}Bom jogo.{FFFFFF}", DonPegaNome(playerid));
- ShowPlayerDialog(playerid, DIALOG_REGISTER, DIALOG_STYLE_PASSWORD, "Brasil Roleplay", String, "Registrar", "{FF0000}Sair{FFFFFF}");
- }
- else
- {
- format(String, sizeof String, "{FFFFFF}Olá {FF0000}%s{FFFFFF} seja bem-vindo ao {436EEE}Brasil RolePlay{FFFFFF} .\n\n\nSenhor(a) possui conta em nosso {FF0000}banco de dados{FFFFFF}.\nDigite sua senha para logar.\n{FF0000}Bom jogo.{FFFFFF}", DonPegaNome(playerid));
- ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "Brasil RolePlay", String, "Logar", "{FF0000}Sair{FFFFFF}");
- }
- MapConnect(playerid);
- PlayerInfo[playerid][Coletou] = false;
- SetTimer("Salvando", 1000*10, true);
- return 1;
- }
- CallBacK::Salvando[playerid]
- {
- DonSalva(playerid);
- return true;
- }
- CallBacK::OnPlayerDisconnect[playerid, reason]
- {
- Salvando(playerid);
- DestroiText(playerid);
- PlayerInfo[playerid][Dinheiro] = 0;
- PlayerInfo[playerid][Nivel] = 0;
- PlayerInfo[playerid][Respeito] = 0;
- PlayerInfo[playerid][TempoJogado] = 0;
- PlayerInfo[playerid][Skin] = 0;
- PlayerInfo[playerid][Pos][0]= 0;
- PlayerInfo[playerid][Pos][1]= 0;
- PlayerInfo[playerid][Pos][2]= 0;
- PlayerInfo[playerid][Interior] = 0;
- PlayerInfo[playerid][MinhaOrg] = 0;
- PlayerInfo[playerid][Ranked] = 0;
- PlayerInfo[playerid][Telefone] = 0;
- PlayerInfo[playerid][Creditos] = 0;
- PlayerInfo[playerid][Tentativa] = 0;
- PlayerInfo[playerid][Emprego] = 0;
- PlayerInfo[playerid][Sexo] = false;
- PlayerInfo[playerid][Login] = false;
- PlayerInfo[playerid][Coletou] = false;
- PlayerInfo[playerid][Passei] = 0;
- PlayerInfo[playerid][IDVColeta] = 0;
- PlayerInfo[playerid][IDColeta] = 0;
- PlayerInfo[playerid][Admin] = 0;
- PlayerInfo[playerid][LigouP] = -1;
- PlayerInfo[playerid][Atendeu] = false;
- PlayerInfo[playerid][Procurado] = 0;
- PlayerInfo[playerid][TempoPreso] = 0;
- for(new su = 0; su< 5; su++)
- {
- PlayerInfo[playerid][Suspeito][su] = 0;
- }
- return 1;
- }
- CallBacK::OnPlayerSpawn[playerid]
- {
- if(PlayerInfo[playerid][Login] == true)
- {
- SetPlayerPos(playerid, PlayerInfo[playerid][Pos][0],PlayerInfo[playerid][Pos][1], PlayerInfo[playerid][Pos][2]);
- SetPlayerInterior(playerid, PlayerInfo[playerid][Interior]);
- SetPlayerSkin(playerid, PlayerInfo[playerid][Skin]);
- PlayerInfo[playerid][Login] = false;
- for(new vagads = 1; vagads < MAX_VAGAS; vagads++)
- {
- if(!strcmp(AdminInfo[vagads][Name],DonPegaNome(playerid)))
- {
- new donstring[80];
- format(donstring, sizeof donstring, "Você tem administrador nivel %d(%s)",AdminInfo[vagads][Nivel], NomeNivel[AdminInfo[vagads][Nivel]]);
- SendClientMessage(playerid, -1, donstring);
- PlayerInfo[playerid][Admin] = AdminInfo[vagads][Nivel];
- }
- }
- for(new dscheck = 1; dscheck < MAX_ORGS - 1; dscheck++)
- {
- new donstring[90];
- format(donstring, sizeof(donstring), OrgSalva, dscheck);
- if(!strcmp(DOF2_GetString(donstring,OrgsCargos[0]),DonPegaNome(playerid)))
- {
- PlayerInfo[playerid][MinhaOrg] = dscheck;
- PlayerInfo[playerid][Ranked] = 5;
- format(donstring, sizeof donstring, "Você e lider de uma organização (%s).",OrgInfo[dscheck][NameORG]);
- SendClientMessage(playerid, -1, donstring);
- SetPlayerHealth(playerid, 99);
- }else
- {
- for(new i=1; i< sizeof OrgsCargos; i++)
- {
- if(!strcmp(DOF2_GetString(donstring,OrgsCargos[i]),DonPegaNome(playerid)))
- {
- PlayerInfo[playerid][MinhaOrg] = dscheck;
- format(donstring, sizeof donstring, "Você e membro de uma organização (%s).",OrgInfo[dscheck][NameORG]);
- SendClientMessage(playerid, -1, donstring);
- SetPlayerHealth(playerid, 99);
- }
- }
- }
- }
- SetTimerEx("SalvarConta", 1000, true, "i", playerid);
- LoadBan(playerid);
- }
- else if(PlayerInfo[playerid][Login] == false)
- {
- if(PlayerInfo[playerid][PoliciaM] == false)
- {
- if(PlayerInfo[playerid][MinhaOrg] > 0)
- {
- SetPlayerPos(playerid, OrgInfo[PlayerInfo[playerid][MinhaOrg]][X], OrgInfo[PlayerInfo[playerid][MinhaOrg]][Y], OrgInfo[PlayerInfo[playerid][MinhaOrg]][Z]);
- SetPlayerColor(playerid, OrgInfo[PlayerInfo[playerid][MinhaOrg]][Color]);
- if(PlayerInfo[playerid][Ranked] < 5){
- SetPlayerSkin(playerid, OrgInfo[PlayerInfo[playerid][MinhaOrg]][SkinMembro1]);}
- else{SetPlayerSkin(playerid, OrgInfo[PlayerInfo[playerid][MinhaOrg]][SkinLider]);}
- SetPlayerInterior(playerid, OrgInfo[PlayerInfo[playerid][MinhaOrg]][Interior]);
- SetPlayerHealth(playerid, 99);
- }
- }
- else
- {
- VerificarNivel(playerid);
- }
- }
- return 1;
- }
- command(spawneu,playerid,params[])return SpawnPlayer(playerid);
- CallBacK::OnPlayerDeath[playerid, killerid, reason]
- {
- if(PlayerInfo[playerid][Procurado] >= 1)
- {
- if(PlayerInfo[killerid][MinhaOrg] == 1 || PlayerInfo[killerid][MinhaOrg] == 2 || PlayerInfo[killerid][MinhaOrg] == 3)
- {
- PlayerInfo[playerid][PoliciaM] = true;
- SendClientMessage(playerid, -1, "Você foi capturado.");
- SendClientMessage(killerid, -1, "Você capturou um fugitivo da lei. Ganhou bonus de R$ 250,00");
- PlayerInfo[killerid][Dinheiro] += 250;
- }
- }
- return 1;
- }
- CallBacK::OnVehicleSpawn[vehicleid]
- {
- return 1;
- }
- CallBacK::OnVehicleDeath[vehicleid, killerid]
- {
- return 1;
- }
- CallBacK::OnPlayerText[playerid, text[]]
- {
- new sdstring[300];
- if(PlayerInfo[playerid][Atendeu] == true)
- {
- if(!IsPlayerConnected(PlayerInfo[playerid][LigouP]))
- {
- PlayerInfo[playerid][Atendeu] = true;
- PlayerInfo[playerid][LigouP] = -1;
- SendClientMessage(playerid, -1, "Jogador não conectado.");
- return true;
- }
- format(sdstring, sizeof sdstring,"[CELULAR]%s: %s .", DonPegaNome(playerid), text);
- SendClientMessage(PlayerInfo[playerid][LigouP], -1, sdstring);
- format(sdstring, sizeof sdstring,"[CELULAR]%s: %s .", DonPegaNome(playerid), text);
- SendClientMessage(playerid, -1, sdstring);
- return true;
- }
- new string[128];
- new Float:x, Float:y, Float:z;
- GetPlayerPos(playerid, x, y, z);
- format(string, sizeof string,"%s: %s", DonPegaNome(playerid), text);
- for(new i = 0; i < MAX_PLAYERS; i++)
- {
- if(i==playerid)return true;
- if(IsPlayerInRangeOfPoint(i, 20.0, x, y, z))
- {
- SendClientMessage(i, -1, string);
- return true;
- }
- }
- return 1;
- }
- CallBacK::OnPlayerEnterVehicle[playerid, vehicleid, ispassenger]
- {
- return 1;
- }
- CallBacK::OnPlayerExitVehicle[playerid, vehicleid]
- {
- return 1;
- }
- CallBacK::OnPlayerStateChange[playerid, newstate, oldstate]
- {
- if(oldstate == PLAYER_STATE_ONFOOT && newstate == PLAYER_STATE_DRIVER)
- {
- for(new vi; vi< 14; vi++)
- {
- if(GetPlayerVehicleID(playerid) == VTRUCK[vi])
- {
- if(PlayerInfo[playerid][Emprego] != 1)
- {
- RemovePlayerFromVehicle(playerid);
- SendClientMessage(playerid, -1, "Você não e transportador.");
- }
- }
- }
- for(new dvi; dvi< 6; dvi++)
- {
- if(GetPlayerVehicleID(playerid) == VBUS[dvi])
- {
- if(PlayerInfo[playerid][Emprego] != 2)
- {
- RemovePlayerFromVehicle(playerid);
- SendClientMessage(playerid, -1, "Você não e motorista.");
- }
- }
- }
- for(new dvsi; dvsi< 11; dvsi++)
- {
- if(GetPlayerVehicleID(playerid) == ViaturaGM[dvsi])
- //if(IsPlayerInVehicle(playerid, ViaturaGM[dvsi]))
- {
- if(PlayerInfo[playerid][MinhaOrg] != 1)
- {
- RemovePlayerFromVehicle(playerid);
- SendClientMessage(playerid, -1, "Você não e guarda.");
- }
- }
- }
- for(new viabope; viabope< 6; viabope++)
- {
- if(GetPlayerVehicleID(playerid) == ViaturaBOPE[viabope])
- {
- if(PlayerInfo[playerid][MinhaOrg] != 3)
- {
- RemovePlayerFromVehicle(playerid);
- SendClientMessage(playerid, -1, "Você não e do BOPE.");
- }
- }
- }
- for(new viapm; viapm< 11; viapm++)
- {
- if(GetPlayerVehicleID(playerid) == ViaturaPM[viapm])
- {
- if(PlayerInfo[playerid][MinhaOrg] != 2)
- {
- RemovePlayerFromVehicle(playerid);
- SendClientMessage(playerid, -1, "Você não e da PM.");
- }
- }
- }
- for(new ddds=0; ddds< 9; ddds++)
- {
- if(GetPlayerVehicleID(playerid) == VPR[ddds])
- {
- if(PlayerInfo[playerid][MinhaOrg] != 5)
- {
- RemovePlayerFromVehicle(playerid);
- SendClientMessage(playerid, -1, "Você não e da Prefeitura.");
- }
- }
- }
- for(new setartodos = 0; setartodos < 5; setartodos++)
- {
- if(GetPlayerVehicleID(playerid) == VGroove[setartodos])
- {
- if(PlayerInfo[playerid][MinhaOrg] != 6)
- {
- RemovePlayerFromVehicle(playerid);
- SendClientMessage(playerid, -1, "Você não e groove.");
- }
- }
- if(GetPlayerVehicleID(playerid) == VBallas[setartodos])
- {
- if(PlayerInfo[playerid][MinhaOrg] != 7)
- {
- RemovePlayerFromVehicle(playerid);
- SendClientMessage(playerid, -1, "Você não e ballas.");
- }
- }
- if(GetPlayerVehicleID(playerid) == VVagos[setartodos])
- {
- if(PlayerInfo[playerid][MinhaOrg] != 8)
- {
- RemovePlayerFromVehicle(playerid);
- SendClientMessage(playerid, -1, "Você não e vagos.");
- }
- }
- if(GetPlayerVehicleID(playerid) == VAzteca[setartodos])
- {
- if(PlayerInfo[playerid][MinhaOrg] != 9)
- {
- RemovePlayerFromVehicle(playerid);
- SendClientMessage(playerid, -1, "Você não e azteca.");
- }
- }
- }
- }
- return 1;
- }
- CallBacK::Descongelar[playerid] return TogglePlayerControllable(playerid,1);
- CallBacK::OnPlayerEnterCheckpoint[playerid]
- {
- TogglePlayerControllable(playerid,0);
- SetTimerEx("Descongelar", 5000, false, "i", playerid);
- if(PlayerInfo[playerid][Passei] == 1)
- {
- DisablePlayerCheckpoint(playerid);
- new dsrand = random(MAXROTAS);
- if(dsrand == 0){dsrand = random(MAXROTAS); return true;}
- PlayerInfo[playerid][IDColeta] = OnibusInfo[dsrand][IDColeta];
- printf("id coleta %d | Rand %d", PlayerInfo[playerid][IDColeta], OnibusInfo[dsrand][IDColeta]);
- PlayerInfo[playerid][IDVColeta] = GetPlayerVehicleID(playerid);
- PlayerInfo[playerid][Coletou] = true;
- SetPlayerCheckpoint(playerid, OnibusInfo[dsrand][X], OnibusInfo[dsrand][Y], OnibusInfo[dsrand][Z], 5.0);
- PlayerInfo[playerid][Passei] ++;
- format(String, sizeof String, "Transporte os passageiros até %s com a remuneração de R$ %d .", OnibusInfo[dsrand][Local], TrabalhoInfo[dsrand][Pagamento]);
- SendClientMessage(playerid, -1, String);
- return true;
- }
- if(PlayerInfo[playerid][Passei] == 2)
- {
- if(PlayerInfo[playerid][Coletou] == true)
- {
- if(GetPlayerVehicleID(playerid) == PlayerInfo[playerid][IDVColeta])
- {
- PlayerInfo[playerid][Dinheiro] += OnibusInfo[PlayerInfo[playerid][IDColeta]][Pagamento];
- format(String, sizeof String, "Viajem realizado com sucesso seu pagamento e de R$ %d.", OnibusInfo[PlayerInfo[playerid][IDColeta]][Pagamento]);
- SendClientMessage(playerid, -1, String);
- PlayerInfo[playerid][Passei] = 0;
- DisablePlayerCheckpoint(playerid);
- PlayerInfo[playerid][Coletou] = false;
- PlayerInfo[playerid][IDColeta] = 0;
- PlayerInfo[playerid][IDVColeta] = 0;
- }
- }
- }
- return 1;
- }
- CallBacK::OnPlayerLeaveCheckpoint[playerid]
- {
- return 1;
- }
- CallBacK::OnPlayerEnterRaceCheckpoint[playerid]
- {
- return 1;
- }
- CallBacK::OnPlayerLeaveRaceCheckpoint[playerid]
- {
- return 1;
- }
- CallBacK::OnPlayerRequestSpawn[playerid]
- {
- return 1;
- }
- CallBacK::OnObjectMoved[objectid]
- {
- return 1;
- }
- CallBacK::OnPlayerObjectMoved[playerid, objectid]
- {
- return 1;
- }
- CallBacK::OnPlayerPickUpPickup[playerid, pickupid]
- {
- return 1;
- }
- CallBacK::OnVehicleMod[playerid, vehicleid, componentid]
- {
- return 1;
- }
- CallBacK::OnVehiclePaintjob[playerid, vehicleid, paintjobid]
- {
- return 1;
- }
- CallBacK::OnVehicleRespray[playerid, vehicleid, color1, color2]
- {
- return 1;
- }
- CallBacK::OnPlayerSelectedMenuRow[playerid, row]
- {
- return 1;
- }
- CallBacK::OnPlayerExitedMenu[playerid]
- {
- return 1;
- }
- CallBacK::OnPlayerInteriorChange[playerid, newinteriorid, oldinteriorid]
- {
- return 1;
- }
- CallBacK::OnPlayerKeyStateChange[playerid, newkeys, oldkeys]
- {
- if(newkeys == KEY_SECONDARY_ATTACK)
- {
- if(IsPlayerInRangeOfPoint(playerid, 2.0, 246.9205,62.8383,1003.6406))return SetPlayerPos(playerid, 1480.7234,-1783.2421,21.0903), SetPlayerInterior(playerid, 0);
- if(IsPlayerInRangeOfPoint(playerid, 2.0, 1480.7234,-1783.2421,21.0903))return SetPlayerPos(playerid, 246.9205,62.8383,1003.6406), SetPlayerInterior(playerid, 0);
- if(IsPlayerInRangeOfPoint(playerid, 2.0, 258.5227,77.6601,1003.6406))
- {
- if(PlayerInfo[playerid][MinhaOrg] == 1){
- for(new i=0; i<MAX_WEAPON; i ++)
- {
- GivePlayerWeapon(playerid, OrgInfo[PlayerInfo[playerid][MinhaOrg]][Armas][i], 100000);
- }
- SendClientMessage(playerid, -1, "{FFFFFF}[{87CEFA}Guarda Municipal{FFFFFF}] Você pegou seu armamento.");
- SetPlayerHealth(playerid, 99);
- }
- }
- if(IsPlayerInRangeOfPoint(playerid, 2.0, 256.2979,120.9445,1003.2188))
- {
- if(PlayerInfo[playerid][MinhaOrg] == 2){
- for(new i=0; i<MAX_WEAPON; i ++)
- {
- GivePlayerWeapon(playerid, OrgInfo[PlayerInfo[playerid][MinhaOrg]][Armas][i], 100000);
- }
- SendClientMessage(playerid, -1, "{FFFFFF}[{696969}Policia Militar{FFFFFF}] Você pegou seu armamento.");
- SetPlayerHealth(playerid, 99);
- }
- }
- //PM
- if(IsPlayerInRangeOfPoint(playerid, 2.0, 1554.6930,-1675.4583,16.1953))return SetPlayerPos(playerid, 246.375991,109.245994,1003.218750), SetPlayerInterior(playerid, 10);//10
- if(IsPlayerInRangeOfPoint(playerid, 2.0, 246.375991,109.245994,1003.218750))return SetPlayerPos(playerid, 1554.6930,-1675.4583,16.1953), SetPlayerInterior(playerid, 0);
- if(IsPlayerInRangeOfPoint(playerid, 2.0, 276.6117,122.0081,1004.6172))return SetPlayerPos(playerid, 1524.8663,-1677.9346,5.8906), SetPlayerInterior(playerid, 0);
- if(IsPlayerInRangeOfPoint(playerid, 2.0, 1524.8663,-1677.9346,5.8906))return SetPlayerPos(playerid, 276.6117,122.0081,1004.6172), SetPlayerInterior(playerid, 10);
- if(IsPlayerInRangeOfPoint(playerid, 2.0, 325.1823,307.3195,999.1484))
- {
- if(PlayerInfo[playerid][MinhaOrg] == 3){
- for(new i=0; i<MAX_WEAPON; i ++)
- {
- GivePlayerWeapon(playerid, OrgInfo[PlayerInfo[playerid][MinhaOrg]][Armas][i], 100000);
- }
- SendClientMessage(playerid, -1, "{FFFFFF}[{696969}B.O.P.E{FFFFFF}] Você pegou seu armamento.");
- SetPlayerHealth(playerid, 99);
- }
- }
- if(IsPlayerInRangeOfPoint(playerid, 2.0, 322.197998,302.497985,999.148437))return SetPlayerPos(playerid, 1519.1150,-1452.6510,14.2031), SetPlayerInterior(playerid, 0);
- if(IsPlayerInRangeOfPoint(playerid, 2.0, 1519.1150,-1452.6510,14.2031))return SetPlayerPos(playerid, 322.197998,302.497985,999.148437), SetPlayerInterior(playerid, 5);
- if(IsPlayerInRangeOfPoint(playerid, 2.0, 322.2710,317.4043,999.1484))return SetPlayerPos(playerid, 1525.2028,-1458.0073,9.5000), SetPlayerInterior(playerid, 0);// arrumar aqui
- if(IsPlayerInRangeOfPoint(playerid, 2.0, 1525.2028,-1458.0073,9.5000))return SetPlayerPos(playerid, 322.2710,317.4043,999.1484), SetPlayerInterior(playerid, 5);
- //loja de celulares
- if(IsPlayerInRangeOfPoint(playerid, 2.0, 1112.1864,-1370.0305,13.9844))return SetPlayerPos(playerid, 662.6379,-573.4273,16.3359), SetPlayerInterior(playerid, 0);// arrumar aqui
- if(IsPlayerInRangeOfPoint(playerid, 2.0, 662.6379,-573.4273,16.3359))return SetPlayerPos(playerid, 1112.1864,-1370.0305,13.9844), SetPlayerInterior(playerid, 0);
- // auto escola
- if(IsPlayerInRangeOfPoint(playerid, 2.0, 1547.0463,-1130.1417,24.0721))return SetPlayerPos(playerid, 1494.325195,1304.942871,1093.289062), SetPlayerInterior(playerid, 3);// arrumar aqui
- if(IsPlayerInRangeOfPoint(playerid, 2.0, 1494.325195,1304.942871,1093.289062))return SetPlayerPos(playerid, 1547.0463,-1130.1417,24.0721), SetPlayerInterior(playerid, 0);
- if(IsPlayerInRangeOfPoint(playerid, 2.0, 2495.1582,-1690.7872,14.7656))
- {
- if(PlayerInfo[playerid][MinhaOrg] == 6){
- for(new i=0; i<MAX_WEAPON; i ++)
- {
- GivePlayerWeapon(playerid, OrgInfo[PlayerInfo[playerid][MinhaOrg]][Armas][i], 100000);
- }
- SendClientMessage(playerid, -1, "{FFFFFF}[{006400}Groove Street{FFFFFF}] Você pegou seu armamento.");
- SetPlayerHealth(playerid, 99);
- }
- }
- if(IsPlayerInRangeOfPoint(playerid, 2.0, 341.6860,-1334.2548,14.5078))
- {
- if(PlayerInfo[playerid][MinhaOrg] == 7){
- for(new i=0; i<MAX_WEAPON; i ++)
- {
- GivePlayerWeapon(playerid, OrgInfo[PlayerInfo[playerid][MinhaOrg]][Armas][i], 100000);
- }
- SendClientMessage(playerid, -1, "{FFFFFF}[{C71585}Ballas{FFFFFF}] Você pegou seu armamento.");
- SetPlayerHealth(playerid, 99);
- }
- }
- if(IsPlayerInRangeOfPoint(playerid, 2.0, 953.9611,-909.8114,45.7656))
- {
- if(PlayerInfo[playerid][MinhaOrg] == 8){
- for(new i=0; i<MAX_WEAPON; i ++)
- {
- GivePlayerWeapon(playerid, OrgInfo[PlayerInfo[playerid][MinhaOrg]][Armas][i], 100000);
- }
- SendClientMessage(playerid, -1, "{FFFFFF}[{FFFF00}Vagos{FFFFFF}] Você pegou seu armamento.");
- SetPlayerHealth(playerid, 99);
- }
- }
- if(IsPlayerInRangeOfPoint(playerid, 2.0, 1673.8043,-2122.3308,14.1460))
- {
- if(PlayerInfo[playerid][MinhaOrg] == 9){
- for(new i=0; i<MAX_WEAPON; i ++)
- {
- GivePlayerWeapon(playerid, OrgInfo[PlayerInfo[playerid][MinhaOrg]][Armas][i], 100000);
- }
- SendClientMessage(playerid, -1, "{FFFFFF}[{6495ED}Azteca{FFFFFF}] Você pegou seu armamento.");
- SetPlayerHealth(playerid, 99);
- }
- }
- }
- if(newkeys == KEY_SPRINT)
- {
- if(IsPlayerInRangeOfPoint(playerid, 3.0, 247.895874,72.519198,1002.640625) && PlayerInfo[playerid][MinhaOrg] == 1)
- {
- MoveDynamicObject(PortaoGM[0],248.895874,72.519198,1002.640625,1.0);
- MoveDynamicObject(PortaoGM[1],243.895874,72.519198,1002.640625,1.0);
- SetTimer("FecharGM", 3000, false);
- }
- if(IsPlayerInRangeOfPoint(playerid, 10.0, 1486.98438, -1804.88904, 15.43190) && PlayerInfo[playerid][MinhaOrg] == 1)
- {
- MoveDynamicObject(PortaoBaixo[0],1486.98438, -1804.88904, 20.43190,1.0);
- MoveDynamicObject(PortaoBaixo[1],1475.47913, -1804.88904, 20.43190,1.0);
- SetTimer("FecharGMBaixo", 3000, false);
- }
- if(IsPlayerInRangeOfPoint(playerid, 10.0, 1535.3000000,-1451.4000000,15.2000000) && PlayerInfo[playerid][MinhaOrg] == 3)
- {
- MoveDynamicObject(PortaoBOPE,1535.3000000,-1451.4000000,20.2000000,1.0);
- SetTimer("FecharportaoBope", 5000, false);
- }
- if(IsPlayerInRangeOfPoint(playerid, 10.0, 1587.1000000,-1638.3000000,15.2000000) && PlayerInfo[playerid][MinhaOrg] == 2)
- {
- MoveDynamicObject(PortaoPM,1587.1000000,-1638.3000000,20.2000000,1.0);
- SetTimer("FecharportaoPM", 5000, false);
- }
- return true;
- }
- return 1;
- }
- CallBacK::FecharportaoPM[]return MoveDynamicObject(PortaoPM, 1587.1000000,-1638.3000000,15.2000000, 1.0);
- CallBacK::FecharportaoBope[]return MoveDynamicObject(PortaoBOPE, 1535.3000000, -1451.4000000, 15.2000000, 1.0);
- CallBacK::FecharGMBaixo[]return MoveDynamicObject(PortaoBaixo[0],1486.98438, -1804.88904, 15.43190,1.0), MoveDynamicObject(PortaoBaixo[1],1475.47913, -1804.88904, 15.43190,1.0);
- CallBacK::FecharGM[]return MoveDynamicObject(PortaoGM[0],247.895874,72.519198,1002.640625,1.0), MoveDynamicObject(PortaoGM[1],244.895874,72.519198,1002.640625,1.0);
- CallBacK::OnRconLoginAttempt[ip[], password[], success]
- {
- return 1;
- }
- CallBacK::OnPlayerUpdate[playerid]
- {
- return 1;
- }
- CallBacK::OnPlayerStreamIn[playerid, forplayerid]
- {
- return 1;
- }
- CallBacK::OnPlayerStreamOut[playerid, forplayerid]
- {
- return 1;
- }
- CallBacK::OnVehicleStreamIn[vehicleid, forplayerid]
- {
- return 1;
- }
- CallBacK::OnVehicleStreamOut[vehicleid, forplayerid]
- {
- return 1;
- }
- CallBacK::OnDialogResponse[playerid, dialogid, response, listitem, inputtext[]]
- {
- switch(dialogid)
- {
- case DIALOG_REGISTER:
- {
- if(!response)return Kick(playerid);
- format(EmGeral, sizeof(EmGeral), ContaSalva , DonPegaNome(playerid));
- PlayerInfo[playerid][Dinheiro] = GRANAINICIAL;
- PlayerInfo[playerid][Nivel] = NIVELINICIAL;
- PlayerInfo[playerid][Respeito] = 0;
- PlayerInfo[playerid][TempoJogado] = 0;
- PlayerInfo[playerid][Respeito] = 0;
- PlayerInfo[playerid][Pos][0] = POSPADRAO1;
- PlayerInfo[playerid][Pos][1] = POSPADRAO2;
- PlayerInfo[playerid][Pos][2] = POSPADRAO3;
- PlayerInfo[playerid][Emprego] = 0;
- PlayerInfo[playerid][Interior] = 0;
- PlayerInfo[playerid][Admin] = 0;
- ShowPlayerDialog(playerid, DIALOG_SEXO, DIALOG_STYLE_LIST, "{FFFFFF}Qual seu sexo ?", "Masculino\nFeminino", "Selecionar", #);
- }
- case DIALOG_LOGIN:
- {
- if(!response)return Kick(playerid);
- format(EmGeral, sizeof(EmGeral), ContaSalva , DonPegaNome(playerid));
- if(!strcmp(inputtext,DOF2_GetString(EmGeral,"Senha"),true))
- {
- DonCarrega(playerid);
- SetSpawnInfo(playerid, 0, PlayerInfo[playerid][Skin], PlayerInfo[playerid][Pos][0], PlayerInfo[playerid][Pos][1], PlayerInfo[playerid][Pos][2], 0, 0, 0, 0, 0, 0, 0 );
- SpawnPlayer(playerid);
- }
- else
- {
- if(PlayerInfo[playerid][Tentativa] == 4) return Kick(playerid);
- PlayerInfo[playerid][Tentativa] ++;
- format(String, sizeof String, "{FFFFFF}Olá {FF0000}%s{FFFFFF} seja bem-vindo ao {436EEE}Brasil RolePlay{FFFFFF} .\n\n\nSenhor(a) possui conta em nosso {FF0000}banco de dados{FFFFFF}.\nDigite sua senha para logar.\n{FF0000}Bom jogo.{FFFFFF}", DonPegaNome(playerid));
- ShowPlayerDialog(playerid, DIALOG_LOGIN, DIALOG_STYLE_PASSWORD, "Brasil RolePlay", String, "Logar", "{FF0000}Sair{FFFFFF}");
- }
- }
- case DIALOG_SEXO:
- {
- if(!response)return ShowPlayerDialog(playerid, DIALOG_SEXO, DIALOG_STYLE_LIST, "{FFFFFF}Qual seu sexo ?", "Masculino\nFeminino", "Selecionar", #);
- switch (listitem)
- {
- case 0:
- {
- PlayerInfo[playerid][Sexo] = true;
- SetPlayerSkin(playerid, SKININICIAL);
- PlayerInfo[playerid][Skin] = SKININICIAL;
- SpawnPlayer(playerid);
- SetSpawnInfo(playerid, 0, PlayerInfo[playerid][Skin], PlayerInfo[playerid][Pos][0], PlayerInfo[playerid][Pos][1], PlayerInfo[playerid][Pos][2], 0, 0, 0, 0, 0, 0, 0 );
- SpawnPlayer(playerid);
- }
- case 1:
- {
- PlayerInfo[playerid][Sexo] = false;
- SetPlayerSkin(playerid, SKININICIALF);
- PlayerInfo[playerid][Skin] = SKININICIALF;
- SpawnPlayer(playerid);
- SetSpawnInfo(playerid, 0, PlayerInfo[playerid][Skin], PlayerInfo[playerid][Pos][0], PlayerInfo[playerid][Pos][1], PlayerInfo[playerid][Pos][2], 0, 0, 0, 0, 0, 0, 0 );
- SpawnPlayer(playerid);
- }
- }
- }
- case DIALOG_EMPREGO:
- {
- if(!response)return true;
- format(String, sizeof String,"{FFFFFF}Parabéns agora você trabalha de {FF0000}%s{FFFFFF}.", Empregos[listitem+1][Nome]);
- SendClientMessage(playerid, -1, String);
- PlayerInfo[playerid][Emprego] = listitem+1;
- }
- case DIALOG_TELEFONE:
- {
- if(!response)return true;
- switch (listitem)
- {
- case 0://EmpresaInfo[7][eItem][2]
- {
- if(PlayerInfo[playerid][Telefone] != 0)return SendClientMessage(playerid, -1, "VocÊ ja possui celular");
- new valoresdef[500];
- format(valoresdef, sizeof valoresdef ,"{FFFFFF}TIM(R$ %d)\nCLARO(R$ %d)\nOI(R$ %d)\nVIVO(R$ %d)\nDON TELEFONIA(R$ %d)", EmpresaInfo[7][eItem][2], EmpresaInfo[8][eItem][2], EmpresaInfo[9][eItem][2], EmpresaInfo[10][eItem][2], EmpresaInfo[11][eItem][2]);
- ShowPlayerDialog(playerid,DIALOG_OPERADORA, DIALOG_STYLE_LIST, "Operadoras Disponiveis",valoresdef , "Comprar", "Fechar");
- }
- case 1:
- {
- if(PlayerInfo[playerid][Telefone] == 0)return SendClientMessage(playerid, -1, "VocÊ jnãoa possui celular");
- new valoresdef[500];
- format(valoresdef, sizeof valoresdef ,"{FFFFFF}Tabela de preços abaixo conforme operadora.\nValor referente a 1 credito.\nTIM(R$ %d)\nCLARO(R$ %d)\nOI(R$ %d)\nVIVO(R$ %d)\nDON TELEFONIA(R$ %d)", EmpresaInfo[7][eItem][3], EmpresaInfo[8][eItem][3], EmpresaInfo[9][eItem][3], EmpresaInfo[10][eItem][3], EmpresaInfo[11][eItem][3]);
- ShowPlayerDialog(playerid,DIALOG_CREDITOS, DIALOG_STYLE_INPUT, "Adicionar Creditos", valoresdef, "Comprar", "Fechar");
- }
- case 2:
- {
- if(PlayerInfo[playerid][Telefone] == 0)return SendClientMessage(playerid, -1, "VocÊ nãoa possui celular");
- new valoresdef[500];
- format(valoresdef, sizeof valoresdef ,"{FFFFFF}Custo para resetar Numero e de : \n\n\n\nR$ %d", EmpresaInfo[6][eItem][2]);
- ShowPlayerDialog(playerid,DIALOG_RESETARN, DIALOG_STYLE_MSGBOX, "Resetar Numero", valoresdef, "Resetar", "Fechar");
- }
- }
- }
- case DIALOG_RESETARN:
- {
- if(!response)return ShowPlayerDialog(playerid,DIALOG_TELEFONE, DIALOG_STYLE_LIST, "Loja de Celulares","{FFFFFF}Comprar Aparelho\nComprar Creditos\nResetar Numero" , "Comprar", "Fechar");
- if(PlayerInfo[playerid][Dinheiro] >= EmpresaInfo[6][eItem][2] || EmpresaInfo[6][eProdutos] < 20)
- {
- PlayerInfo[playerid][Dinheiro] -= EmpresaInfo[6][eItem][2];
- EmpresaInfo[6][eCofre] -= EmpresaInfo[6][eItem][2];
- EmpresaInfo[6][eProdutos] -= 20;
- PlayerInfo[playerid][Creditos] = 0;
- SendClientMessage(playerid, -1, "Numero resetado.");
- PlayerInfo[playerid][Telefone] = 0 ;
- }else SendClientMessage(playerid, -1, "Não tem dinheiro ou sem produtos");
- }
- case DIALOG_CREDITOS:
- {
- new falarpreco[200];
- if(!response)return ShowPlayerDialog(playerid,DIALOG_TELEFONE, DIALOG_STYLE_LIST, "Loja de Celulares","{FFFFFF}Comprar Aparelho\nComprar Creditos\nResetar Numero" , "Comprar", "Fechar");
- if(!IsNumeric(inputtext)) return SendClientMessage(playerid,-1,"somente numeros!");
- if(GetTelefoneID(PlayerInfo[playerid][Telefone]) == 1)
- {
- if(PlayerInfo[playerid][Dinheiro] < strval(inputtext)*EmpresaInfo[7][eItem][3] || EmpresaInfo[6][eMProduto] < 10)return SendClientMessage(playerid,-1,"Você não tem todo este dinheiro.");
- if(EmpresaInfo[7][eProdutos] < 5* strval(inputtext))return SendClientMessage(playerid, -1, "Sem produtos");
- EmpresaInfo[7][eProdutos]-=5* strval(inputtext);
- EmpresaInfo[6][eProdutos] -=10* strval(inputtext);
- EmpresaInfo[6][eCofre] += EmpresaInfo[7][eItem][3] / 2;
- EmpresaInfo[7][eCofre] += EmpresaInfo[7][eItem][3] / 2;
- PlayerInfo[playerid][Creditos] += strval(inputtext);
- PlayerInfo[playerid][Dinheiro] -= strval(inputtext)*EmpresaInfo[7][eItem][3];
- format(falarpreco, sizeof falarpreco, "Voçê comprou %d creditos para DDD TIM e custou R$ %d .", strval(inputtext), strval(inputtext)*EmpresaInfo[7][eItem][3]);
- SendClientMessage(playerid, -1, falarpreco);
- }
- else if(GetTelefoneID(PlayerInfo[playerid][Telefone]) == 2 )
- {
- if(PlayerInfo[playerid][Dinheiro] < strval(inputtext)*EmpresaInfo[8][eItem][3]|| EmpresaInfo[6][eMProduto] < 10)return SendClientMessage(playerid,-1,"Você não tem todo este dinheiro.");
- if(EmpresaInfo[8][eProdutos] < 5* strval(inputtext))return SendClientMessage(playerid, -1, "Sem produtos");
- EmpresaInfo[8][eProdutos]-=5* strval(inputtext);
- EmpresaInfo[6][eProdutos] -=10* strval(inputtext);
- EmpresaInfo[6][eCofre] += EmpresaInfo[8][eItem][3] / 2;
- EmpresaInfo[8][eCofre] += EmpresaInfo[8][eItem][3] / 2;
- PlayerInfo[playerid][Creditos] += strval(inputtext);
- PlayerInfo[playerid][Dinheiro] -= strval(inputtext)*EmpresaInfo[8][eItem][3];
- format(falarpreco, sizeof falarpreco, "Voçê comprou %d creditos para DDD CLARO e custou R$ %d .", strval(inputtext), strval(inputtext)*EmpresaInfo[8][eItem][3]);
- SendClientMessage(playerid, -1, falarpreco);
- }
- else if(GetTelefoneID(PlayerInfo[playerid][Telefone]) == 3 )
- {
- if(PlayerInfo[playerid][Dinheiro] < strval(inputtext)*EmpresaInfo[9][eItem][3]|| EmpresaInfo[6][eMProduto] < 10)return SendClientMessage(playerid,-1,"Você não tem todo este dinheiro.");
- if(EmpresaInfo[9][eProdutos] < 5* strval(inputtext))return SendClientMessage(playerid, -1, "Sem produtos");
- EmpresaInfo[9][eProdutos]-=5* strval(inputtext);
- EmpresaInfo[6][eProdutos] -=10* strval(inputtext);
- EmpresaInfo[6][eCofre] += EmpresaInfo[9][eItem][3] / 2;
- EmpresaInfo[9][eCofre] += EmpresaInfo[9][eItem][3] / 2;
- PlayerInfo[playerid][Creditos] += strval(inputtext);
- PlayerInfo[playerid][Dinheiro] -= strval(inputtext)*EmpresaInfo[9][eItem][3];
- format(falarpreco, sizeof falarpreco, "Voçê comprou %d creditos para DDD OI e custou R$ %d .", strval(inputtext), strval(inputtext)*EmpresaInfo[9][eItem][3]);
- SendClientMessage(playerid, -1, falarpreco);
- }
- else if(GetTelefoneID(PlayerInfo[playerid][Telefone]) == 4 )
- {
- if(PlayerInfo[playerid][Dinheiro] < strval(inputtext)*EmpresaInfo[10][eItem][3]|| EmpresaInfo[6][eMProduto] < 10)return SendClientMessage(playerid,-1,"Você não tem todo este dinheiro.");
- if(EmpresaInfo[10][eProdutos] < 5* strval(inputtext))return SendClientMessage(playerid, -1, "Sem produtos");
- EmpresaInfo[10][eProdutos]-=5* strval(inputtext);
- EmpresaInfo[6][eProdutos] -=10* strval(inputtext);
- EmpresaInfo[6][eCofre] += EmpresaInfo[10][eItem][3] / 2;
- EmpresaInfo[10][eCofre] += EmpresaInfo[10][eItem][3] / 2;
- PlayerInfo[playerid][Creditos] += strval(inputtext);
- PlayerInfo[playerid][Dinheiro] -= strval(inputtext)*EmpresaInfo[10][eItem][3];
- format(falarpreco, sizeof falarpreco, "Voçê comprou %d creditos para DDD VIVO e custou R$ %d .", strval(inputtext), strval(inputtext)*EmpresaInfo[10][eItem][3]);
- SendClientMessage(playerid, -1, falarpreco);
- }
- else if(GetTelefoneID(PlayerInfo[playerid][Telefone]) == 5 )
- {
- if(PlayerInfo[playerid][Dinheiro] < strval(inputtext)*EmpresaInfo[11][eItem][3]|| EmpresaInfo[6][eMProduto] < 10)return SendClientMessage(playerid,-1,"Você não tem todo este dinheiro.");
- if(EmpresaInfo[11][eProdutos] < 5 * strval(inputtext))return SendClientMessage(playerid, -1, "Sem produtos");
- EmpresaInfo[11][eProdutos]-=5* strval(inputtext);
- EmpresaInfo[6][eProdutos] -=10* strval(inputtext);
- EmpresaInfo[6][eCofre] += EmpresaInfo[11][eItem][3] / 2;
- EmpresaInfo[11][eCofre] += EmpresaInfo[11][eItem][3] / 2;
- PlayerInfo[playerid][Creditos] += strval(inputtext);
- PlayerInfo[playerid][Dinheiro] -= strval(inputtext)*EmpresaInfo[11][eItem][3];
- format(falarpreco, sizeof falarpreco, "Voçê comprou %d creditos para DDD DON TELEFONIA e custou R$ %d .", strval(inputtext), strval(inputtext)*EmpresaInfo[11][eItem][3]);
- SendClientMessage(playerid, -1, falarpreco);
- }
- }
- case DIALOG_OPERADORA:
- {
- if(!response)return ShowPlayerDialog(playerid,DIALOG_TELEFONE, DIALOG_STYLE_LIST, "Loja de Celulares","{FFFFFF}Comprar Aparelho\nComprar Creditos\nResetar Numero" , "Comprar", "Fechar");
- new resultadofone[MAX_PLAYERS][4];
- new strd[100];
- switch (listitem)
- {
- case 0:
- {
- if(PlayerInfo[playerid][Dinheiro] < EmpresaInfo[7][eItem][2] || EmpresaInfo[6][eMProduto] < 30)return SendClientMessage(playerid, -1, "Erro você não tem dinheiro , volte mais tarde.");
- EmpresaInfo[6][eProdutos] -= 30;
- EmpresaInfo[6][eCofre] += EmpresaInfo[7][eItem][2] / 2;
- EmpresaInfo[7][eItem] -= 30;
- EmpresaInfo[7][eCofre] += EmpresaInfo[7][eItem][2] / 2;
- new rndo = random(sizeof(op1));
- resultadofone[playerid][0] = op1[rndo];
- resultadofone[playerid][0] = resultadofone[playerid][0] *1000000;
- resultadofone[playerid][1] = random(90)*10000;
- if( resultadofone[playerid][1] < 10)return resultadofone[playerid][1] = random(90)*10000;
- resultadofone[playerid][2] = random(90)*100;
- if( resultadofone[playerid][2] < 10)return resultadofone[playerid][2] = random(90)*10;
- resultadofone[playerid][3] = random(90);
- if( resultadofone[playerid][3] < 10)return resultadofone[playerid][3] = random(90);
- new teste = resultadofone[playerid][0] + resultadofone[playerid][1] + resultadofone[playerid][2] + resultadofone[playerid][3];
- PlayerInfo[playerid][Telefone] = teste;
- teste = 0;
- format(strd, sizeof strd, "{FFFFFF}Compra Realizada com sucesso.\n\n\nOperadora: TIM\nNumero: %d", PlayerInfo[playerid][Telefone]);
- ShowPlayerDialog(playerid,2000, DIALOG_STYLE_MSGBOX, "Loja de Celulares",strd , "Fechar", #);
- PlayerInfo[playerid][Dinheiro] -= EmpresaInfo[7][eItem][2];
- }
- case 1:
- {
- if(PlayerInfo[playerid][Dinheiro] < EmpresaInfo[8][eItem][2]|| EmpresaInfo[6][eMProduto] < 30)return SendClientMessage(playerid, -1, "Erro você não tem dinheiro , volte mais tarde.");
- EmpresaInfo[6][eProdutos] -= 30;
- EmpresaInfo[6][eCofre] += EmpresaInfo[8][eItem][2] / 2;
- EmpresaInfo[8][eItem] -= 30;
- EmpresaInfo[8][eCofre] += EmpresaInfo[8][eItem][2] / 2;
- new rndo = random(sizeof(op2));
- resultadofone[playerid][0] = op2[rndo];
- resultadofone[playerid][0] = resultadofone[playerid][0] *1000000;
- resultadofone[playerid][1] = random(90)*10000;
- if( resultadofone[playerid][1] < 10)return resultadofone[playerid][1] = random(90)*10000;
- resultadofone[playerid][2] = random(90)*100;
- if( resultadofone[playerid][2] < 10)return resultadofone[playerid][2] = random(90)*10;
- resultadofone[playerid][3] = random(90);
- if( resultadofone[playerid][3] < 10)return resultadofone[playerid][3] = random(90);
- new teste = resultadofone[playerid][0] + resultadofone[playerid][1] + resultadofone[playerid][2] + resultadofone[playerid][3];
- PlayerInfo[playerid][Telefone] = teste;
- teste = 0;
- format(strd, sizeof strd, "{FFFFFF}Compra Realizada com sucesso.\n\n\nOperadora: CLARO\nNumero: %d", PlayerInfo[playerid][Telefone]);
- ShowPlayerDialog(playerid,2000, DIALOG_STYLE_MSGBOX, "Loja de Celulares",strd , "Fechar", #);
- PlayerInfo[playerid][Dinheiro] -= EmpresaInfo[8][eItem][2];
- }
- case 2:
- {
- if(PlayerInfo[playerid][Dinheiro] < EmpresaInfo[9][eItem][2]|| EmpresaInfo[6][eMProduto] < 30)return SendClientMessage(playerid, -1, "Erro você não tem dinheiro , volte mais tarde.");
- EmpresaInfo[6][eProdutos] -= 30;
- EmpresaInfo[6][eCofre] += EmpresaInfo[9][eItem][2] / 2;
- EmpresaInfo[9][eItem] -= 30;
- EmpresaInfo[9][eCofre] += EmpresaInfo[9][eItem][2] / 2;
- new rndo = random(sizeof(op3));
- resultadofone[playerid][0] = op3[rndo];
- resultadofone[playerid][0] = resultadofone[playerid][0] *1000000;
- resultadofone[playerid][1] = random(90)*10000;
- if( resultadofone[playerid][1] < 10)return resultadofone[playerid][1] = random(90)*10000;
- resultadofone[playerid][2] = random(90)*100;
- if( resultadofone[playerid][2] < 10)return resultadofone[playerid][2] = random(90)*10;
- resultadofone[playerid][3] = random(90);
- if( resultadofone[playerid][3] < 10)return resultadofone[playerid][3] = random(90);
- new teste = resultadofone[playerid][0] + resultadofone[playerid][1] + resultadofone[playerid][2] + resultadofone[playerid][3];
- PlayerInfo[playerid][Telefone] = teste;
- teste = 0;
- format(strd, sizeof strd, "{FFFFFF}Compra Realizada com sucesso.\n\n\nOperadora: OI\nNumero: %d", PlayerInfo[playerid][Telefone]);
- ShowPlayerDialog(playerid,2000, DIALOG_STYLE_MSGBOX, "Loja de Celulares",strd , "Fechar", #);
- PlayerInfo[playerid][Dinheiro] -= EmpresaInfo[9][eItem][2];
- }
- case 3:
- {
- if(PlayerInfo[playerid][Dinheiro] < EmpresaInfo[10][eItem][2]|| EmpresaInfo[6][eMProduto] < 30)return SendClientMessage(playerid, -1, "Erro você não tem dinheiro , volte mais tarde.");
- EmpresaInfo[6][eProdutos] -= 30;
- EmpresaInfo[6][eCofre] += EmpresaInfo[10][eItem][2] / 2;
- EmpresaInfo[10][eItem] -= 30;
- EmpresaInfo[10][eCofre] += EmpresaInfo[10][eItem][2] / 2;
- new rndo = random(sizeof(op4));
- resultadofone[playerid][0] = op4[rndo];
- resultadofone[playerid][0] = resultadofone[playerid][0] *1000000;
- resultadofone[playerid][1] = random(90)*10000;
- if( resultadofone[playerid][1] < 10)return resultadofone[playerid][1] = random(90)*10000;
- resultadofone[playerid][2] = random(90)*100;
- if( resultadofone[playerid][2] < 10)return resultadofone[playerid][2] = random(90)*10;
- resultadofone[playerid][3] = random(90);
- if( resultadofone[playerid][3] < 10)return resultadofone[playerid][3] = random(90);
- new teste = resultadofone[playerid][0] + resultadofone[playerid][1] + resultadofone[playerid][2] + resultadofone[playerid][3];
- PlayerInfo[playerid][Telefone] = teste;
- teste = 0;
- format(strd, sizeof strd, "{FFFFFF}Compra Realizada com sucesso.\n\n\nOperadora: VIVO\nNumero: %d", PlayerInfo[playerid][Telefone]);
- ShowPlayerDialog(playerid,2000, DIALOG_STYLE_MSGBOX, "Loja de Celulares",strd , "Fechar", #);
- PlayerInfo[playerid][Dinheiro] -= EmpresaInfo[10][eItem][2];
- }
- case 4:
- {
- if(PlayerInfo[playerid][Dinheiro] < EmpresaInfo[11][eItem][2]|| EmpresaInfo[6][eMProduto] < 30)return SendClientMessage(playerid, -1, "Erro você não tem dinheiro , volte mais tarde.");
- EmpresaInfo[6][eProdutos] -= 30;
- EmpresaInfo[6][eCofre] += EmpresaInfo[11][eItem][2] / 2;
- EmpresaInfo[11][eItem] -= 30;
- EmpresaInfo[11][eCofre] += EmpresaInfo[11][eItem][2] / 2;
- new rndo = random(sizeof(op5));
- resultadofone[playerid][0] = op5[rndo];
- resultadofone[playerid][0] = resultadofone[playerid][0] *1000000;
- resultadofone[playerid][1] = random(90)*10000;
- if( resultadofone[playerid][1] < 10)return resultadofone[playerid][1] = random(90)*10000;
- resultadofone[playerid][2] = random(90)*100;
- if( resultadofone[playerid][2] < 10)return resultadofone[playerid][2] = random(90)*10;
- resultadofone[playerid][3] = random(90);
- if( resultadofone[playerid][3] < 10)return resultadofone[playerid][3] = random(90);
- new teste = resultadofone[playerid][0] + resultadofone[playerid][1] + resultadofone[playerid][2] + resultadofone[playerid][3];
- PlayerInfo[playerid][Telefone] = teste;
- teste = 0;
- format(strd, sizeof strd, "{FFFFFF}Compra Realizada com sucesso.\n\n\nOperadora: DON TELEFONIA\nNumero: %d", PlayerInfo[playerid][Telefone]);
- ShowPlayerDialog(playerid,2000, DIALOG_STYLE_MSGBOX, "Loja de Celulares",strd , "Fechar", #);
- PlayerInfo[playerid][Dinheiro] -= EmpresaInfo[11][eItem][2];
- }
- }
- }
- case DIALOG_RADIO:
- {
- if(!response)return true;
- cont = 0;
- new var[300], var1[300];
- for(new ds = 1; ds< MAX_MUSICAS; ds++)
- {
- if(Radio[ds][Estilo] == listitem+1)
- {
- cont ++;
- format(var, sizeof var, "[ID:%d]%s - %s\n", Radio[ds][IdMusica], Radio[ds][Cantor], Radio[ds][Musica]);
- strcat(var1, var);
- MusicaDon[playerid][cont] = Radio[ds][IdMusica];
- }
- }
- ShowPlayerDialog(playerid, DIALOG_MUSICA, DIALOG_STYLE_LIST, "Musicas",var1,"Tocar", "Voltar");
- }
- case DIALOG_MUSICA:
- {
- new var[800], var1[800];
- if(!response)
- {
- for(new ds = 1; ds< MAX_ESTILOS; ds++)
- {
- format(var, sizeof var, "%s\n", EstiloMusical[ds]);
- strcat(var1, var);
- }
- ShowPlayerDialog(playerid, DIALOG_RADIO, DIALOG_STYLE_LIST, "Estilo Musical", var1,"Selecionar", "Fechar");
- }
- new mysic[800], mysic2[800];
- format(mysic, sizeof mysic , "%s", Radio[MusicaDon[playerid][listitem+1]][Link]);
- PlayAudioStreamForPlayer(playerid, mysic);
- format(mysic2, sizeof mysic2, "[ %s ]Musica: %s \nCantor: %s", EstiloMusical[Radio[MusicaDon[playerid][listitem+1]][Estilo]],Radio[MusicaDon[playerid][listitem+1]][Musica], Radio[MusicaDon[playerid][listitem+1]][Cantor]);
- SendClientMessage(playerid, -1 , mysic2);
- }
- }
- return 1;
- }
- CallBacK::OnPlayerCommandPerformed[playerid, cmdtext[], success]
- {
- if(!success)return SendClientMessage(playerid,-1, "Erro comando inexistente em nosso banco de dados.");
- return true;
- }
- CallBacK::OnPlayerClickPlayer[playerid, clickedplayerid, source]
- {
- return 1;
- }
- CallBacK::SalvarConta[playerid]
- {
- PlayerInfo[playerid][TempoJogado]++;
- SetPlayerScore(playerid, PlayerInfo[playerid][Nivel]);
- ResetPlayerMoney(playerid);
- GivePlayerMoney(playerid, PlayerInfo[playerid][Dinheiro]);
- SetPlayerWantedLevel(playerid, PlayerInfo[playerid][Procurado]);
- if(PlayerInfo[playerid][TempoJogado] >= 3600)
- {
- PlayerInfo[playerid][TempoJogado] = 0;
- SendClientMessage(playerid, -1, "PAYDAY:");
- format(String, sizeof String, "Emprego: %s",Empregos[PlayerInfo[playerid][Emprego]][Nome]);
- SendClientMessage(playerid, -1, String);
- format(String, sizeof String, "Salario: R$ %d,00",Empregos[PlayerInfo[playerid][Emprego]][Salario]);
- SendClientMessage(playerid, -1, String);
- if(PlayerInfo[playerid][MinhaOrg] > 0)
- {
- format(String, sizeof String, "[ Organização %s ]", OrgInfo[PlayerInfo[playerid][MinhaOrg]][NameORG]);
- SendClientMessage(playerid, -1, String);
- format(String, sizeof String, "Salario: R$ %d,00", OrgInfo[PlayerInfo[playerid][MinhaOrg]][Salario]*PlayerInfo[playerid][Ranked]);
- SendClientMessage(playerid, -1, String);
- PlayerInfo[playerid][Dinheiro] += OrgInfo[PlayerInfo[playerid][MinhaOrg]][Salario]*PlayerInfo[playerid][Ranked];
- }
- PlayerInfo[playerid][Dinheiro] += Empregos[PlayerInfo[playerid][Emprego]][Salario];
- PlayerInfo[playerid][Respeito] ++;
- if(PlayerInfo[playerid][Respeito] == PlayerInfo[playerid][Nivel]*6)
- {
- SendClientMessage(playerid, -1, "Parabéns você acabou de upar de nivel.");
- PlayerInfo[playerid][Nivel]++;
- PlayerInfo[playerid][Respeito] = 0;
- }
- }
- new zone[MAX_ZONE_NAME];
- GetPlayer2DZone(playerid, zone, MAX_ZONE_NAME);
- format(String, sizeof(String), "%s", zone);
- TextDrawSetString(PlayerInfo[playerid][Zona], String);
- if(PlayerInfo[playerid][TempoPreso] > 0)
- {
- PlayerInfo[playerid][TempoPreso] --;
- if(PlayerInfo[playerid][TempoPreso] == 0)
- {
- SendClientMessage(playerid, -1,"Você cumpriu sua pena.");
- SpawnPlayer(playerid);
- }
- }
- return true;
- }
- CallBacK::DonCarrega[playerid]
- {
- format(EmGeral, sizeof(EmGeral), ContaSalva , DonPegaNome(playerid));
- if(DOF2_FileExists(EmGeral))
- {
- PlayerInfo[playerid][Dinheiro] = DOF2_GetInt(EmGeral,"Dinheiro");
- PlayerInfo[playerid][Nivel] = DOF2_GetInt(EmGeral,"Nivel");
- PlayerInfo[playerid][Respeito] = DOF2_GetInt(EmGeral,"Respeito");
- PlayerInfo[playerid][Sexo] = DOF2_GetBool(EmGeral,"Sexo");
- PlayerInfo[playerid][Skin] = DOF2_GetInt(EmGeral,"Skin");
- PlayerInfo[playerid][Pos][0] = DOF2_GetFloat(EmGeral,"X");
- PlayerInfo[playerid][Pos][1] = DOF2_GetFloat(EmGeral,"Y");
- PlayerInfo[playerid][Pos][2] = DOF2_GetFloat(EmGeral,"Z");
- PlayerInfo[playerid][Interior] = DOF2_GetInt(EmGeral,"Interior");
- PlayerInfo[playerid][TempoJogado] = DOF2_GetInt(EmGeral,"TJogado");
- PlayerInfo[playerid][Emprego] = DOF2_GetInt(EmGeral,"Emprego");
- PlayerInfo[playerid][Ranked] = DOF2_GetInt(EmGeral,"Ranked");
- PlayerInfo[playerid][Telefone] = DOF2_GetInt(EmGeral,"Telefone");
- PlayerInfo[playerid][Creditos] = DOF2_GetInt(EmGeral,"Creditos");
- PlayerInfo[playerid][Procurado] = DOF2_GetInt(EmGeral,"Procurado");
- for(new su = 0; su< 5; su++)
- {
- new strg[50];
- format(strg,sizeof strg, "Suspeito %d", su);
- PlayerInfo[playerid][Suspeito][su] = DOF2_GetInt(EmGeral, strg);
- }
- PlayerInfo[playerid][TempoPreso] = DOF2_GetInt(EmGeral,"Tempo");
- }
- return true;
- }
- CallBacK::DonSalva[playerid]
- {
- GetPlayerPos(playerid, PlayerInfo[playerid][Pos][0], PlayerInfo[playerid][Pos][1], PlayerInfo[playerid][Pos][2]);
- PlayerInfo[playerid][Interior] = GetPlayerInterior(playerid);
- PlayerInfo[playerid][Skin] = GetPlayerSkin(playerid);
- format(EmGeral, sizeof(EmGeral), ContaSalva , DonPegaNome(playerid));
- if(DOF2_FileExists(EmGeral))
- {
- DOF2_SetInt(EmGeral,"Dinheiro",PlayerInfo[playerid][Dinheiro]);
- DOF2_SetInt(EmGeral,"Nivel",PlayerInfo[playerid][Nivel]);
- DOF2_SetInt(EmGeral,"Respeito",PlayerInfo[playerid][Respeito]);
- DOF2_SetBool(EmGeral,"Sexo", PlayerInfo[playerid][Sexo]);
- DOF2_SetInt(EmGeral,"Skin",PlayerInfo[playerid][Skin]);
- DOF2_SetFloat(EmGeral,"X", PlayerInfo[playerid][Pos][0]);
- DOF2_SetFloat(EmGeral,"Y", PlayerInfo[playerid][Pos][1]);
- DOF2_SetFloat(EmGeral,"Z", PlayerInfo[playerid][Pos][2]);
- DOF2_SetInt(EmGeral,"Interior",PlayerInfo[playerid][Interior]);
- DOF2_SetInt(EmGeral,"TJogado",PlayerInfo[playerid][TempoJogado]);
- DOF2_SetInt(EmGeral,"Emprego",PlayerInfo[playerid][Emprego]);
- DOF2_SetInt(EmGeral,"Ranked",PlayerInfo[playerid][Ranked]);
- DOF2_SetInt(EmGeral,"Telefone",PlayerInfo[playerid][Telefone]);
- DOF2_SetInt(EmGeral,"Creditos",PlayerInfo[playerid][Creditos]);
- DOF2_SetInt(EmGeral,"Procurado",PlayerInfo[playerid][Procurado]);
- for(new su = 0; su< 5; su++)
- {
- new strg[50];
- format(strg,sizeof strg, "Suspeito %d", su);
- DOF2_SetInt(EmGeral, strg,PlayerInfo[playerid][Suspeito][su]);
- }
- DOF2_SetInt(EmGeral,"Tempo",PlayerInfo[playerid][TempoPreso]);
- DOF2_SaveFile();
- }
- else
- {
- DOF2_CreateFile(EmGeral);
- DOF2_SetInt(EmGeral,"Dinheiro",PlayerInfo[playerid][Dinheiro]);
- DOF2_SetInt(EmGeral,"Nivel",PlayerInfo[playerid][Nivel]);
- DOF2_SetInt(EmGeral,"Respeito",PlayerInfo[playerid][Respeito]);
- DOF2_SetBool(EmGeral,"Sexo", PlayerInfo[playerid][Sexo]);
- DOF2_SetInt(EmGeral,"Skin",PlayerInfo[playerid][Skin]);
- DOF2_SetFloat(EmGeral,"X", PlayerInfo[playerid][Pos][0]);
- DOF2_SetFloat(EmGeral,"Y", PlayerInfo[playerid][Pos][1]);
- DOF2_SetFloat(EmGeral,"Z", PlayerInfo[playerid][Pos][2]);
- DOF2_SetInt(EmGeral,"Interior",PlayerInfo[playerid][Interior]);
- DOF2_SetInt(EmGeral,"TJogado",PlayerInfo[playerid][TempoJogado]);
- DOF2_SetInt(EmGeral,"Emprego",PlayerInfo[playerid][Emprego]);
- DOF2_SetInt(EmGeral,"Ranked",PlayerInfo[playerid][Ranked]);
- DOF2_SetInt(EmGeral,"Telefone",PlayerInfo[playerid][Telefone]);
- DOF2_SetInt(EmGeral,"Creditos",PlayerInfo[playerid][Creditos]);
- DOF2_SetInt(EmGeral,"Procurado",PlayerInfo[playerid][Procurado]);
- for(new su = 0; su< 5; su++)
- {
- new strg[50];
- format(strg,sizeof strg, "Suspeito %d", su);
- DOF2_SetInt(EmGeral, strg,PlayerInfo[playerid][Suspeito][su]);
- }
- DOF2_SetInt(EmGeral,"Tempo",PlayerInfo[playerid][TempoPreso]);
- DOF2_SaveFile();
- }
- return true;
- }
- CallBacK::AdmCarrega[]
- {
- new string2[80];
- for(new vagads = 1; vagads < MAX_VAGAS; vagads++)
- {
- format(string2, sizeof(string2), AdminSalva, vagads);
- if(!DOF2_FileExists(string2))
- {
- DOF2_CreateFile(string2);
- format(AdminInfo[vagads][Name], 80,"Slot");
- AdminInfo[vagads][Nivel] = 0;
- DOF2_SetString(string2,"Nome",AdminInfo[vagads][Name]);
- DOF2_SetInt(string2,"Nivel", AdminInfo[vagads][Nivel]);
- DOF2_SaveFile();
- }
- else
- {
- format(AdminInfo[vagads][Name], 80, DOF2_GetString(string2,"Nome"));
- AdminInfo[vagads][Nivel] = DOF2_GetInt(string2,"Nivel");
- }
- }
- return true;
- }
- CallBacK::AdmSalva[]
- {
- new string2[180];
- for(new vagads = 1; vagads < MAX_VAGAS; vagads++)
- {
- format(string2, sizeof(string2), AdminSalva, vagads);
- if(DOF2_FileExists(string2))
- {
- DOF2_SetString(string2,"Nome",AdminInfo[vagads][Name]);
- DOF2_SetInt(string2,"Nivel", AdminInfo[vagads][Nivel]);
- DOF2_SaveFile();
- }
- }
- return true;
- }
- stock DonPegaNome(playerid)
- {
- new name[MAX_PLAYER_NAME];
- GetPlayerName(playerid, name, sizeof(name));
- return name;
- }
- stock ReturnUser(PlayerName[])
- {
- if(IsNumeric(PlayerName))
- return strval(PlayerName);
- else
- {
- new found=0, id;
- for(new i=0; i <= MAX_PLAYERS; i++)
- {
- if(IsPlayerConnected(i))
- {
- new foundname[MAX_PLAYER_NAME];
- GetPlayerName(i, foundname, MAX_PLAYER_NAME);
- new namelen = strlen(foundname);
- new bool:searched=false;
- for(new pos=0; pos <= namelen; pos++)
- {
- if(searched != true)
- {
- if(strfind(foundname,PlayerName,true) == pos)
- {
- found++;
- id = i;
- }
- }
- }
- }
- }
- if(found == 1)
- return id;
- else
- return INVALID_PLAYER_ID;
- }
- }
- stock IsNumeric(const string[])
- {
- for (new i = 0, j = strlen(string); i < j; i++)
- if(string[i] > '9' || string[i] < '0') return 0;
- return 1;
- }
- CallBacK::ORGCarrega[]
- {
- new string2[80];
- for(new vagads = 1; vagads < MAX_ORGS; vagads++)
- {
- format(string2, sizeof(string2), OrgSalva, vagads);
- if(!DOF2_FileExists(string2))
- {
- DOF2_CreateFile(string2);
- for(new i=0; i< sizeof OrgsCargos; i++)
- {
- DOF2_SetString(string2,OrgsCargos[i], "Nenhum");
- }
- DOF2_SaveFile();
- }
- }
- return true;
- }
- stock ConvertTelefone(numbers)
- {
- new temp[8], var;
- valstr(temp,numbers);
- for(new i = 1;i < 8; i++)
- {
- var++;
- if(var == 4)
- {
- strins(temp,"-",i);
- var = 0;
- break;
- }
- }
- return temp;
- }
- stock GetTelefoneID(numbers)
- {
- new temp[10],result;
- valstr(temp,numbers);
- if(strfind(temp, "69" ,true) != -1 || strfind(temp, "79" ,true) != -1 || strfind(temp, "80" ,true) != -1 || strfind(temp, "81" ,true) != -1 ||
- strfind(temp, "82" ,true) != -1 || strfind(temp, "83" ,true) != -1)
- {
- result = 1;
- }
- if(strfind(temp, "68" ,true) != -1 || strfind(temp, "73" ,true) != -1 || strfind(temp, "74" ,true) != -1 || strfind(temp, "75" ,true) != -1 ||
- strfind(temp, "91" ,true) != -1 || strfind(temp, "92" ,true) != -1 || strfind(temp, "93" ,true) != -1)
- {
- result = 2;
- }
- if(strfind(temp, "84" ,true) != -1 || strfind(temp, "85" ,true) != -1 || strfind(temp, "86" ,true) != -1 || strfind(temp, "87" ,true) != -1 ||
- strfind(temp, "88" ,true) != -1 || strfind(temp, "89" ,true) != -1)
- {
- result = 3;
- }
- if(strfind(temp, "95" ,true) != -1 || strfind(temp, "96" ,true) != -1 || strfind(temp, "97" ,true) != -1 || strfind(temp, "98" ,true) != -1 ||
- strfind(temp, "99" ,true) != -1 )
- {
- result = 4;
- }
- if(strfind(temp, "30" ,true) != -1 || strfind(temp, "40" ,true) != -1 )
- {
- result = 5;
- }
- return result;
- }
- stock GetTelefoneModel(numbers)
- {
- new temp[10],result[24];
- valstr(temp,numbers);
- if(strfind(temp, "69" ,true) != -1 || strfind(temp, "79" ,true) != -1 || strfind(temp, "80" ,true) != -1 || strfind(temp, "81" ,true) != -1 ||
- strfind(temp, "82" ,true) != -1 || strfind(temp, "83" ,true) != -1)
- {
- result = "TIM";
- }
- if(strfind(temp, "68" ,true) != -1 || strfind(temp, "73" ,true) != -1 || strfind(temp, "74" ,true) != -1 || strfind(temp, "75" ,true) != -1 ||
- strfind(temp, "91" ,true) != -1 || strfind(temp, "92" ,true) != -1 || strfind(temp, "93" ,true) != -1)
- {
- result = "CLARO";
- }
- if(strfind(temp, "84" ,true) != -1 || strfind(temp, "85" ,true) != -1 || strfind(temp, "86" ,true) != -1 || strfind(temp, "87" ,true) != -1 ||
- strfind(temp, "88" ,true) != -1 || strfind(temp, "89" ,true) != -1)
- {
- result = "OI";
- }
- if(strfind(temp, "95" ,true) != -1 || strfind(temp, "96" ,true) != -1 || strfind(temp, "97" ,true) != -1 || strfind(temp, "98" ,true) != -1 ||
- strfind(temp, "99" ,true) != -1 )
- {
- result = "VIVO";
- }
- if(strfind(temp, "30" ,true) != -1 || strfind(temp, "40" ,true) != -1 )
- {
- result = "DON TELEFONIA";
- }
- return result;
- }
- stock VerificarNivel(playerid)
- {
- if(PlayerInfo[playerid][Procurado] != 0)
- {
- for(new su = 0; su< 5; su++)
- {
- if(PlayerInfo[playerid][Suspeito][su] != 0)
- {
- switch(PlayerInfo[playerid][Suspeito][su])
- {
- case 33:{PlayerInfo[playerid][TempoPreso] += (60000*10),PlayerInfo[playerid][Suspeito][su] = 0, PlayerInfo[playerid][Procurado] = 0;SetPlayerPos(playerid, 223.2259,109.8377,999.0156),SetPlayerInterior(playerid, 10);}
- case 121:{PlayerInfo[playerid][TempoPreso] += (60000*30),PlayerInfo[playerid][Suspeito][su] = 0, PlayerInfo[playerid][Procurado] = 0;SetPlayerPos(playerid, 223.2259,109.8377,999.0156),SetPlayerInterior(playerid, 10);}
- case 129:{PlayerInfo[playerid][TempoPreso] += (60000*5),PlayerInfo[playerid][Suspeito][su] = 0, PlayerInfo[playerid][Procurado] = 0;SetPlayerPos(playerid, 223.2259,109.8377,999.0156),SetPlayerInterior(playerid, 10);}
- case 138:{PlayerInfo[playerid][TempoPreso] += (60000*5),PlayerInfo[playerid][Suspeito][su] = 0, PlayerInfo[playerid][Procurado] = 0;SetPlayerPos(playerid, 223.2259,109.8377,999.0156),SetPlayerInterior(playerid, 10);}
- case 140:{PlayerInfo[playerid][TempoPreso] += (60000*5),PlayerInfo[playerid][Suspeito][su] = 0, PlayerInfo[playerid][Procurado] = 0;SetPlayerPos(playerid, 223.2259,109.8377,999.0156),SetPlayerInterior(playerid, 10);}
- case 148:{PlayerInfo[playerid][TempoPreso] += (60000*20),PlayerInfo[playerid][Suspeito][su] = 0, PlayerInfo[playerid][Procurado] = 0;SetPlayerPos(playerid, 223.2259,109.8377,999.0156),SetPlayerInterior(playerid, 10);}
- case 150:{PlayerInfo[playerid][TempoPreso] += (60000*10),PlayerInfo[playerid][Suspeito][su] = 0, PlayerInfo[playerid][Procurado] = 0;SetPlayerPos(playerid, 223.2259,109.8377,999.0156),SetPlayerInterior(playerid, 10);}
- case 155:{PlayerInfo[playerid][TempoPreso] += (60000*15),PlayerInfo[playerid][Suspeito][su] = 0, PlayerInfo[playerid][Procurado] = 0;SetPlayerPos(playerid, 223.2259,109.8377,999.0156),SetPlayerInterior(playerid, 10);}
- case 157:{PlayerInfo[playerid][TempoPreso] += (60000*20),PlayerInfo[playerid][Suspeito][su] = 0, PlayerInfo[playerid][Procurado] = 0;SetPlayerPos(playerid, 223.2259,109.8377,999.0156),SetPlayerInterior(playerid, 10);}
- case 163:{PlayerInfo[playerid][TempoPreso] += (60000*10),PlayerInfo[playerid][Suspeito][su] = 0, PlayerInfo[playerid][Procurado] = 0;SetPlayerPos(playerid, 223.2259,109.8377,999.0156),SetPlayerInterior(playerid, 10);}
- case 171:{PlayerInfo[playerid][TempoPreso] += (60000*5),PlayerInfo[playerid][Suspeito][su] = 0, PlayerInfo[playerid][Procurado] = 0;SetPlayerPos(playerid, 223.2259,109.8377,999.0156),SetPlayerInterior(playerid, 10);}
- case 331:{PlayerInfo[playerid][TempoPreso] += (60000*10),PlayerInfo[playerid][Suspeito][su] = 0, PlayerInfo[playerid][Procurado] = 0;SetPlayerPos(playerid, 223.2259,109.8377,999.0156),SetPlayerInterior(playerid, 10);}
- }
- }
- }
- }
- return true;
- }
- stock SendClientCrime(id, art)
- {
- new gfes[800];
- for(new i; i<MAX_PLAYERS; i++)
- {
- if(PlayerInfo[i][MinhaOrg] == 1 || PlayerInfo[i][MinhaOrg] == 2 || PlayerInfo[i][MinhaOrg] == 3)
- {
- new zone[MAX_ZONE_NAME];
- GetPlayer2DZone(id, zone, MAX_ZONE_NAME);
- SendClientMessage(i, -1, "{FFFFFF} [ {FF4500}ATENÇÃO TODAS VIATURAS{FFFFFF} ] ");
- format(gfes, sizeof gfes,"{FFFFFF} Individo: {FF4500}%s(ID %d){FFFFFF} | Enquadrado {FF4500}ART. %d{FFFFFF}.", DonPegaNome(id), i, art);
- SendClientMessage(i, -1, gfes);
- format(gfes, sizeof gfes,"{FFFFFF} Ultimo contato visual em {FF4500}%s{FFFFFF} .", zone);
- SendClientMessage(i, -1, gfes);
- SendClientMessage(i, -1, "{FFFFFF} [ {FF4500}PARA MAIS INFORMAÇÕES ACESSE O SISTEMA{FFFFFF} ] ");
- PlayerInfo[id][Procurado]++;
- for(new d; d < 5; d++)
- {
- if(PlayerInfo[id][Suspeito][d] == 0)
- {
- PlayerInfo[id][Suspeito][d] = art;
- return true;
- }
- }
- }
- }
- return true;
- }
- command(ajudaartigo, playerid, params[])
- {
- if(PlayerInfo[playerid][MinhaOrg] == 1 || PlayerInfo[playerid][MinhaOrg] == 2 || PlayerInfo[playerid][MinhaOrg] == 3)
- {
- new string[1000];
- for(new ai =0; ai <sizeof(Infoart); ai ++)
- format(string,sizeof(string),"%s\n- %s", string,Infoart[ai]);
- ShowPlayerDialog(playerid, 999, DIALOG_STYLE_MSGBOX,"Codigo", string, "Sair", #);
- }else { SendClientMessage(playerid, -1, "Apenas dentro de uma viatura"); return true;}
- return true;
- }
- command(ajudatartigo, playerid, params[])
- {
- if(PlayerInfo[playerid][MinhaOrg] == 1 || PlayerInfo[playerid][MinhaOrg] == 2 || PlayerInfo[playerid][MinhaOrg] == 3)
- {
- new string[1000];
- for(new ai =0; ai <sizeof(Tempoart); ai ++)
- format(string,sizeof(string),"%s\n- %s", string,Tempoart[ai]);
- ShowPlayerDialog(playerid, 999, DIALOG_STYLE_MSGBOX,"Codigo", string, "Sair", #);
- } else { SendClientMessage(playerid, -1, "Apenas dentro de uma viatura"); return true;}
- return true;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement