Jump to content

NickScripter

Members
  • Posts

    43
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by NickScripter

  1. Hi everyone! I want to offer for sale a Advanced Drug System that can be the perfect DLC for your Roleplay server. The Advanced Drug System is a system designed to bring realism to your city. This Mod allows you to be a drug dealer. The system works by ACL protection, ensuring the security and efficiency of the Mod, selecting the people who will have access to the system. The drug dealer can sell up to 5 different types of drugs: - Marihuana - Cocaine - Crack - Crystal - Ecstasy Each drug has a different psychedelic effect when used and the time it gets stoned is random, which can be a quick or long wave. Marijuana plantation system to be able to plant and process marijuana. Illegal drug store exclusively for those at ACL, with the option to buy Cocaine, Crack, Ecstasy and Crystal. Command /selldrugs to create a Marker and start selling drugs to nearby players. Key bind to open the Drug Inventory, configurable in Edit. Edit script to customize the main Mod settings. Useful commands: - /setdrugs id drugname quantity - Set drugs for a player. (Example: / setdrugs 1 marijuana 50) (Permission only for ACL Admin and Console) Name of the drugs: marijuana crack cocaine ecstasy crystal. - /drugs - Opens the drug inventory. - /selldrugs - Command for a trafficker use to open the drug store. - /plantmarijuana - Starts the planting of marijuana on the farm ------------- Screenshots of the Mod: Requirements ID System (Included on the resource package) This resource is compiled Buy it Payment with Paypal using PayHip and get the Download file Buy it fast and safe here: https://payhip.com/b/29uR Or send $30 to [email protected] with Paypal and i will send the Mod File to your E-mail. Other products: Advanced Medical System MTA Forum Contact Website Facebook Page E-MAIL: [email protected]
  2. Fixed it by setting root directory permission to 755.
  3. Hello everyone! I'm having trouble configuring the External Web Server using Nginx. I followed the MTA Wiki tutorial on how to install and configure Nginx properly. However, I am not able to resolve the 403 error. I put permissions on all files in the resource-cache at 755 and it didn't work either. Does anyone know what I can do to resolve this error? I'm using Debian 10 x64 Thanks ?
  4. Combo Introdução PREMIUM Nick Scripter Sabia que a primeira coisa que os players reparam no seu servidor é a introdução?? Por isso, decidi fazer um super sistema para o seu servidor ficar mais completo do que nunca! Vídeo Demonstativo Imagens Funções: - Painel de Login Personalizado - Whitelist (prova após o registro) Para evitar players Anti-RP no seu servidor. - Modo Anti-lag no cadastro. Ativando essa função, os players ganham mais FPS. - Criação de personagem MASCULINO e FEMININO para atender todos os jogadores(as) da sua cidade! - Emissão de RG para registrar seus dados antes de entrar na cidade - Introdução do servidor que mostra até 10 telas de locais que você pode escolher, junto com titulo e texto. - Edit para configurar o local de Spawn após a finalização da introdução. --------------------------------------------------------------------- Adquira já o Combo PREMIUM via INBOX da página Nick Scripter e deixe o seu servidor com a sua cara! Valor: R$100,00
  5. Olá pessoal!! Hoje venho trazer pra vocês um script que pode ser o script perfeito para você adicionar ao seu servidor de Roleplay! Está disponível a nova versão do Sistema de Drogas Avançado com diversas novidades!! ------------------------------------------------------------- Funções: - Todas as drogas possuem efeitos ao serem usadas. - A potência do efeito é aleatória, podendo bater uma brisa rápida e fraca ou uma muito forte e duradoura. - 5 tipos de Drogas: Maconha, Cocaina, Crack, Lança Perfume e Bala. - Sistema de Plantação, colheita e processamento de Maconha. - Sistema de Tráfico (/traficar) para vender drogas a outros players. - Inventário reformulado leve e dinâmico para guardar as drogas. - Sistema protegido por ACL (Somente pode plantar quem está na ACL) - Script Edit completo para personalizar as configurações do MOD a seu gosto. - Comando administrativo /setdroga id droga qnt para setar drogas a um player. - E MUITO MAIS!!! Vídeo Demonstrativo Imagens Adquira já via INBOX da página do Facebook Nick Scripter MTA ? Valor: R$60,00 Se gostou do Post, não se esqueça de reagir ao post pra me incentivar a trazer mais mods pra vocês!!
  6. ----/////////------ --Lado do Cliente ----/////////------ function ligarMotor() triggerServerEvent("motor",getLocalPlayer()) end --Seta o Motor Como Desligado ao Entrar + Bind para Ligar/desligar o motor addEventHandler("onClientVehicleEnter",getRootElement(),function() if(getPedOccupiedVehicleSeat(localPlayer) == 0 then outputChatBox("#FFFF00Para Ligar/Desligar o Motor Aperte [ i ]",r,g,b,true) triggerServerEvent("motor",getLocalPlayer()) bindKey("i","down",ligarMotor) else return end ----//////--- --Seta o Motor Como Desligado ao Sair ----//////--- end) addEventHandler("onClientVehicleStartExit",getRootElement(),function() if(getPedOccupiedVehicleSeat(localPlayer) == 0 then unbindKey("i","down",ligarMotor) triggerServerEvent("motor",getLocalPlayer()) triggerServerEvent("certezza",getLocalPlayer()) else return end end) Tente assim.
  7. Recomendo você tentar usar essa função que falei acima no client em OnClientVehicleEnter e OnClientVehicleStartExit, para chamar o triggerServerEvent apenas quando for o passageiro 1 para evitar de que outros passageiros chamem essa função. Lembrando que terá que trocar o source por localPlayer
  8. Nesse caso, no Server, você precisa adicionar uma função para verificar qual o assento do jogador. Recomendo você usar getPedOccupiedVehicleSeat para verificar se o passageiro é o motorista (no caso, 0) Ficaria então: ------------------------------------------------------------------------- ----/////////------ --Lado do Server ----/////////------ ---desliga e liga o motor baseado no input do cliente local function motorToggle() local theVehicle = getPedOccupiedVehicle(source) if getPedOccupiedVehicleSeat(source) == 0 then if (getVehicleEngineState(theVehicle) == true) then setVehicleEngineState(theVehicle,false) setVehicleLightState(theVehicle,0,1) setVehicleLightState(theVehicle,1,1) setVehicleLightState(theVehicle,2,1) setVehicleLightState(theVehicle,3,1) elseif (getVehicleEngineState(theVehicle) == false) then setVehicleEngineState(theVehicle,true) setVehicleLightState(theVehicle,0,0) setVehicleLightState(theVehicle,1,0) setVehicleLightState(theVehicle,2,0) setVehicleLightState(theVehicle,3,0) end end end addEvent("motor",true) addEventHandler("motor",getRootElement(),motorToggle)
  9. Thank you guys! Good tips Tut, next video i will use it =D
  10. Hello everyone! I made the GTA V trailer in MTA and I would like to share with you guys. Hope you enjoy it! If you enjoyed it, please react to the post ?
  11. The first 3 persons who use the code NSCR will have 10% discount on the buy!
  12. Hi everyone! I want to offer for sale a Advanced Medical System that can be the perfect DLC for your Roleplay server. Basic Informations - Includes the Hospital Interior. - Patient and Vehicle Panel with several options. - With <36 health, the Player get a Hurt Walkstyle and needs to go to the Hospital and look for a Medic to heal him. (Or set the Player HP to > 36) - With < 30 health, the Player get unconscious for 10 minutes, needing to call the ambulance with the '/medic' command. - Release the Stretcher on ground with '/release' command. - Pickup the stretcher with '/pickup' command. - To be able to revive the patient at the accident site, you will need to use the Defibrillator. You will have 5 chances to try to revive the patient. If not, the patient will die. - After placing the Patient in the ambulance and taking him to the hospital, you will take him to the ICU (Intensive Care Unit) room to have surgery. - After completing the surgery on the patient, you will be taken to the recovery room for final treatment and then released. - After the Patient has recovered, he will be given a wheelchair, in which he will stay for 2 minutes, not being able to jump and hit while in the chair. - '/debug id' command for Admin ACL to reset System variables for a doctor. - Command '/heal id' for Admin, SuperModerator or Moderator ACL for a fast player heal. - Debugscript CLEAR without Errors or Warnings (The vehicle skin is not included) These images are from the BETA version and may not represent the final version of the product. Requirements ID System (Included on the resource package) The resource is compiled Buy it The first 3 persons who use the Promotion Code NSCR will have 10% discount Payment with Paypal Buy it fast and safe here: https://payhip.com/b/vcW7 Contact Facebook: facebook.com/NickScripterMTA E-MAIL: [email protected]
  13. Muito obrigado. Estamos ai na luta desde 2010 tentando fazer o cenário brasileiro ir pra frente. Acredito que consegui chegar no nivel de desenvolvimento do servidor que o cenário BR de MTA merece =D
  14. Thug Life Roleplay v1.0 Trailer Thug Life Roleplay Conexão [[--[Nome na lista] 『Thug Life Roleplay』 『FiveM-RP』 [IP THUG LIFE] mtasa://104.156.245.223:22003--]] Informações O Servidor Thug Life Roleplay, fundado em 2010 por André Felipe no SA-MP, retornou. Porém agora, para o MTA! O servidor foi desenvolvido por Nick Scripter, durante o período de um ano. Várias funções foram adicionadas durante esse período, tudo foi gravado e divulgado através do Discord do Thug Life e o meu canal do Youtube. As prints e vídeos a seguir, são da versão Beta, feita durante esse processo de 1 ano e não podem representar as mesmas funções na versão final. Espero que vocês curtam o servidor, que está acessível para todos, devido a função Anti-Lag implementada. Ao criar sua conta, você é perguntado se quer ativar a função Anti-lag! Te garante 10 FPS no minimo... Funções do servidor: Sistema de cadastro by Nick Scripter Ao entrar no servidor e se registrar pela primeira vez, você será submetido a um questionário para saber se está apto ou não de acordo com as regras do servidor Thug Life Roleplay. Após passar a prova, você irá criar o seu personagem e personalizar da forma com que você preferir. Existe a funcionalidade Anti-lag para otimizar o seu MTA e rodar com a maior quantidade possivel de FPS que o seu MTA alcança. O servidor possui um sistema de Americanos que são NPCs que andam pela cidade, motos, carros, pedestres, avioes, helicopteros e barcos. Todos otimizados e não dao qualquer interferência na performance do jogo. A cidade sempre fica movimentada e cheia de vida. Servidor foi pensado nos minimos detalhes para trazer uma experiência inédita e gloriosa na história do MTA Brasil!!! Aguardamos vocês na nossa cidade. Fique com as prints do servidor Thug Life =D Sistema de Drogas avançado e Vídeo Bonus by Nick Scripter Painel Policial iPad Pro by Nick Scripter Sistema de inventário by Nick Scripter Sistema de Skins by Nick Scripter Loja de Roubos by Nick Scripter Sistema de Level by Nick Scripter Sistema de SAMU Avançado by Nick Scripter Sistema de Morte by Nick Scripter Sistema de Pixação by Desconhecido e editado por Nick Scripter Vídeos Bonus Thug Life 0.9 DEMO introdução Informações do servidor [[--[Nome na lista] 『Thug Life Roleplay』 『FiveM-RP』 [IP THUG LIFE] mtasa://104.156.245.223:22003--]] Se você gostou da publicação, deixe um coração para mostrar seu reconhecimento para com que eu faça mais conteúdos sobre o MTA. Dá muito trabalho para fazer, mas faço porque gosto!! Espero que tenham curtido =D Facebook Thug Life Roleplay Facebook Nick Scripter
  15. Isso acontece pois o Element "pPecas" ou "Materials" está em false ao invés de numerico.. você precisa definir o valor deles para conseguir fazer a divisão.
  16. I managed to fix it! Thanks for your RadioBox tip, you saved me ?!!
  17. AbrirProva - Opens the DX FecharProva - Closes the DX
  18. Thanks for you reply! The radio buttons fit better in the system that i want I'ts returning a error when i start the script '=' expected near 'etapas' --Error line in function Prova(button) etapas[localPlayer] = true More explained Script Client: local etapas = {}; -- Step of the questions local acertou = {}; -- right answer table local Pergunta = "" -- Question local textotitulo = "" -- Title Text local texto1 = "" -- Option 1 text local texto2 = "" -- Option 2 text local texto3 = "" -- Option 3 text local texto4 = "" -- Option 4 text function AbrirProva() -- Open DX if isEventHandlerAdded("onClientRender", getRootElement(), ProvaRender) then return end addEventHandler ( "onClientGUIClick", prosseguir, Prova ) addEventHandler("onClientRender", root, ProvaRender) showCursor(true) end --addCommandHandler("testedss", AbrirProva) addEvent("NSCR:AbrirProva", true) addEventHandler("NSCR:AbrirProva", root, AbrirProva) function FecharProva() -- Close DX if isEventHandlerAdded("onClientRender", getRootElement(), ProvaRender) then removeEventHandler("onClientRender", root, ProvaRender) removeEventHandler("onClientGUIClick", root, Prova) showCursor(false) setElementVisibleTo(localPlayer, "prosseguir", false) setElementVisibleTo(localPlayer, "opcaoA", false) setElementVisibleTo(localPlayer, "opcaoB", false) setElementVisibleTo(localPlayer, "opcaoC", false) setElementVisibleTo(localPlayer, "opcaoD", false) end end function Prova(button) local quantidade = acertou[localPlayer] if button == "left" then if etapas[localPlayer] == false then FecharProva etapas[localPlayer] = true AbrirProva elseif etapas[localPlayer] == true then if Pergunta == false then FecharProva Pergunta = 1 AbrirProva elseif Pergunta == 1 then if source == opcaoC then if guiRadioButtonGetSelected(source) then acertou[localPlayer] = quantidade+1 end end FecharProva Pergunta = 2 AbrirProva elseif Pergunta == 2 then if source == opcaoC then if guiRadioButtonGetSelected(source) then acertou[localPlayer] = quantidade+1 end end FecharProva Pergunta = 3 AbrirProva end elseif Pergunta == 3 then if source == opcaoD then if guiRadioButtonGetSelected(source) then acertou[localPlayer] = quantidade+1 end end FecharProva Pergunta = 4 AbrirProva end elseif Pergunta == 4 then if source == opcaoD then if guiRadioButtonGetSelected(source) then acertou[localPlayer] = quantidade+1 end end FecharProva Pergunta = 5 AbrirProva end elseif Pergunta == 6 then if source == opcaoC then if guiRadioButtonGetSelected(source) then acertou[localPlayer] = quantidade+1 end end FecharProva Pergunta = 7 AbrirProva end elseif Pergunta == 7 then if source == opcaoC then if guiRadioButtonGetSelected(source) then acertou[localPlayer] = quantidade+1 end end FecharProva Pergunta = 8 AbrirProva end elseif Pergunta == 8 then if source == opcaoC then if guiRadioButtonGetSelected(source) then acertou[localPlayer] = quantidade+1 end end FecharProva Pergunta = 9 AbrirProva end elseif Pergunta == 9 then if source == opcaoC then if guiRadioButtonGetSelected(source) then acertou[localPlayer] = quantidade+1 end end FecharProva if quantidade >= 6 then -- If you hit more than 6, you passed outputChatBox ( "[TLRP] #34eb3dVocê passou na prova com "..quantidade.." acertos. Parabéns!!", 255, 255, 255, true ) acertou[localPlayer] = 0 etapas[localPlayer] = false; triggerServerEvent(localPlayer, "NSCR:TerminouProva", localPlayer) else -- fail message outputChatBox ( "[TLRP] #ff0000Você falhou na prova com "..quantidade.." acertos e foi kickado. (Maximo de erros: 6)", 255, 255, 255, true ) kickPlayer(localPlayer) end end end end end function ProvaRender() -- DX if Pergunta == "1" then -- Sets the DX Text textotitulo = "O que é Roleplay?" texto1 = "A- Cidade do MTA Roleplay" texto2 = "B- Simulação de tiro" texto3 = "C- Simulação da vida real" texto4 = "D- Gamemode do GTA ONLINE" elseif Pergunta == "2" then textotitulo = "O que é RDM?" texto1 = "A- Quando prende um meliante" texto2 = "B- Roubar alguem perto da policia" texto3 = "C- Matar um jogador sem motivo" texto4 = "D- Atropelar um jogador sem motivo" end elseif Pergunta == "3" then textotitulo = "O que é VDM?" texto1 = "A- Quando morre afogado" texto2 = "B- Fugir da delegacia de policia" texto3 = "C- Matar um jogador sem motivo" texto4 = "D- Atropelar um jogador sem motivo" end if etapas[localPlayer] == false then -- Intro DX acertou[localPlayer] = 0 dxDrawImage(711, 406, 507, 354, ":[Script]Identidade/Img/prova.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawText("Testando conhecimento do RP", 805 - 1, 421 - 1, 1085 - 1, 459 - 1, tocolor(0, 0, 0, 255), 1.20, "diploma", "left", "top", false, false, false, false, false) dxDrawText("Testando conhecimento do RP", 805 + 1, 421 - 1, 1085 + 1, 459 - 1, tocolor(0, 0, 0, 255), 1.20, "diploma", "left", "top", false, false, false, false, false) dxDrawText("Testando conhecimento do RP", 805 - 1, 421 + 1, 1085 - 1, 459 + 1, tocolor(0, 0, 0, 255), 1.20, "diploma", "left", "top", false, false, false, false, false) dxDrawText("Testando conhecimento do RP", 805 + 1, 421 + 1, 1085 + 1, 459 + 1, tocolor(0, 0, 0, 255), 1.20, "diploma", "left", "top", false, false, false, false, false) dxDrawText("Testando conhecimento do RP", 805, 421, 1085, 459, tocolor(255, 255, 255, 255), 1.20, "diploma", "left", "top", false, false, false, false, false) dxDrawText(" Seja bem vindo ao ThugLife Roleplay!! \n\nVocê irá responder um questionário \nantes de entrar na cidade.", 749 - 1, 512 - 1, 1178 - 1, 648 - 1, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "top", false, false, false, false, false) dxDrawText(" Seja bem vindo ao ThugLife Roleplay!! \n\nVocê irá responder um questionário \nantes de entrar na cidade.", 749 + 1, 512 - 1, 1178 + 1, 648 - 1, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "top", false, false, false, false, false) dxDrawText(" Seja bem vindo ao ThugLife Roleplay!! \n\nVocê irá responder um questionário \nantes de entrar na cidade.", 749 - 1, 512 + 1, 1178 - 1, 648 + 1, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "top", false, false, false, false, false) dxDrawText(" Seja bem vindo ao ThugLife Roleplay!! \n\nVocê irá responder um questionário \nantes de entrar na cidade.", 749 + 1, 512 + 1, 1178 + 1, 648 + 1, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "top", false, false, false, false, false) dxDrawText(" Seja bem vindo ao ThugLife Roleplay!! \n\nVocê irá responder um questionário \nantes de entrar na cidade.", 749, 512, 1178, 648, tocolor(255, 255, 255, 255), 1.00, "pricedown", "left", "top", false, false, false, false, false) dxDrawText("Responda corretamente o formulário \npara conseguir emitir o seu passaporte.", 745 - 1, 658 - 1, 1178 - 1, 739 - 1, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "top", false, false, false, false, false) dxDrawText("Responda corretamente o formulário \npara conseguir emitir o seu passaporte.", 745 + 1, 658 - 1, 1178 + 1, 739 - 1, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "top", false, false, false, false, false) dxDrawText("Responda corretamente o formulário \npara conseguir emitir o seu passaporte.", 745 - 1, 658 + 1, 1178 - 1, 739 + 1, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "top", false, false, false, false, false) dxDrawText("Responda corretamente o formulário \npara conseguir emitir o seu passaporte.", 745 + 1, 658 + 1, 1178 + 1, 739 + 1, tocolor(0, 0, 0, 255), 1.00, "pricedown", "left", "top", false, false, false, false, false) dxDrawText("Responda corretamente o formulário \npara conseguir emitir o seu passaporte.", 745, 658, 1178, 739, tocolor(255, 0, 0, 255), 1.00, "pricedown", "left", "top", false, false, false, false, false) dxDrawImage(849, 203, 236, 193, ":[Script]Identidade/Img/logo.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) setElementVisibleTo(localPlayer, "prosseguir", true) elseif etapas[localPlayer] == true then -- Questions DX setElementVisibleTo(localPlayer, "opcaoA", true) setElementVisibleTo(localPlayer, "opcaoB", true) setElementVisibleTo(localPlayer, "opcaoC", true) setElementVisibleTo(localPlayer, "opcaoD", true) dxDrawImage(849, 203, 236, 193, ":[Script]Identidade/Img/logo.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawImage(711, 406, 507, 354, ":[Script]Identidade/Img/perguntas.png", 0, 0, 0, tocolor(255, 255, 255, 255), false) dxDrawText(""..textotitulo.."", 854 - 1, 422 - 1, 1091 - 1, 472 - 1, tocolor(0, 0, 0, 255), 1.00, "diploma", "left", "top", false, false, false, false, false) dxDrawText(""..textotitulo.."", 854 + 1, 422 - 1, 1091 + 1, 472 - 1, tocolor(0, 0, 0, 255), 1.00, "diploma", "left", "top", false, false, false, false, false) dxDrawText(""..textotitulo.."", 854 - 1, 422 + 1, 1091 - 1, 472 + 1, tocolor(0, 0, 0, 255), 1.00, "diploma", "left", "top", false, false, false, false, false) dxDrawText(""..textotitulo.."", 854 + 1, 422 + 1, 1091 + 1, 472 + 1, tocolor(0, 0, 0, 255), 1.00, "diploma", "left", "top", false, false, false, false, false) dxDrawText(""..textotitulo.."", 854, 422, 1091, 472, tocolor(229, 107, 25, 255), 1.00, "diploma", "left", "top", false, false, false, false, false) dxDrawText("A- "..texto.."", 774 - 1, 509 - 1, 1011 - 1, 559 - 1, tocolor(0, 0, 0, 255), 1.30, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("A- "..texto.."", 774 + 1, 509 - 1, 1011 + 1, 559 - 1, tocolor(0, 0, 0, 255), 1.30, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("A- "..texto.."", 774 - 1, 509 + 1, 1011 - 1, 559 + 1, tocolor(0, 0, 0, 255), 1.30, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("A- "..texto.."", 774 + 1, 509 + 1, 1011 + 1, 559 + 1, tocolor(0, 0, 0, 255), 1.30, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("A- "..texto.."", 774, 509, 1011, 559, tocolor(255, 255, 255, 255), 1.30, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("B- "..texto2.."", 774 - 1, 565 - 1, 1011 - 1, 615 - 1, tocolor(0, 0, 0, 255), 1.30, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("B- "..texto2.."", 774 + 1, 565 - 1, 1011 + 1, 615 - 1, tocolor(0, 0, 0, 255), 1.30, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("B- "..texto2.."", 774 - 1, 565 + 1, 1011 - 1, 615 + 1, tocolor(0, 0, 0, 255), 1.30, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("B- "..texto2.."", 774 + 1, 565 + 1, 1011 + 1, 615 + 1, tocolor(0, 0, 0, 255), 1.30, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("B- "..texto2.."", 774, 565, 1011, 615, tocolor(255, 255, 255, 255), 1.30, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("C- "..texto3.."", 774 - 1, 625 - 1, 1011 - 1, 675 - 1, tocolor(0, 0, 0, 255), 1.30, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("C- "..texto3.."", 774 + 1, 625 - 1, 1011 + 1, 675 - 1, tocolor(0, 0, 0, 255), 1.30, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("C- "..texto3.."", 774 - 1, 625 + 1, 1011 - 1, 675 + 1, tocolor(0, 0, 0, 255), 1.30, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("C- "..texto3.."", 774 + 1, 625 + 1, 1011 + 1, 675 + 1, tocolor(0, 0, 0, 255), 1.30, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("C- "..texto3.."", 774, 625, 1011, 675, tocolor(255, 255, 255, 255), 1.30, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("D- "..texto4.."", 774 - 1, 690 - 1, 1011 - 1, 740 - 1, tocolor(0, 0, 0, 255), 1.30, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("D- "..texto4.."", 774 + 1, 690 - 1, 1011 + 1, 740 - 1, tocolor(0, 0, 0, 255), 1.30, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("D- "..texto4.."", 774 - 1, 690 + 1, 1011 - 1, 740 + 1, tocolor(0, 0, 0, 255), 1.30, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("D- "..texto4.."", 774 + 1, 690 + 1, 1011 + 1, 740 + 1, tocolor(0, 0, 0, 255), 1.30, "default-bold", "left", "top", false, false, false, false, false) dxDrawText("D- "..texto4.."", 774, 690, 1011, 740, tocolor(255, 255, 255, 255), 1.30, "default-bold", "left", "top", false, false, false, false, false) end end addEventHandler("onClientResourceStart", resourceRoot, function() prosseguir = guiCreateButton(878, 760, 157, 41, "Prosseguir", false) guiSetProperty(prosseguir1, "NormalTextColour", "FF31FC02") opcaoA = guiCreateRadioButton(749, 492, 75, 53, "", false, false) opcaoB = guiCreateRadioButton(749, 549, 75, 53, "", false, false) opcaoC = guiCreateRadioButton(749, 608, 75, 53, "", false, false) opcaoD = guiCreateRadioButton(749, 671, 75, 53, "", false, false) end ) Server: function TerminouProva() -- Final Step triggerClientEvent(source, "DNL:AbrirRG", source) -- Continues the registration spawnPlayer(source, 1481.9635009766, -1782.9182128906, 21.828456878662, 2.0302429199219) end addEvent("NSCR:TerminouProva", true) addEventHandler("NSCR:TerminouProva", root, TerminouProva) Waiting your reply! Thanks!!
  19. Hello! I'm trying to make a system where the player needs to answer a few questions before registering. I'm having trouble doing the part where the player selects a CheckBox an answer and clicks the Confirm button. can anybody help me? 'etapas' means the step of the menu (false is the intro menu and true is the questions menu) Client etapas = {}; acertou = {}; function Prova(button) local quantidade = acertou[localPlayer] if button == "left" then if etapas[localPlayer] == false then FecharProva etapas[localPlayer] = true AbrirProva elseif etapas[localPlayer] == true then if Pergunta == false then FecharProva Pergunta = 1 AbrirProva elseif Pergunta == 1 then if source == opcaoC then if guiCheckBoxGetSelected(source) then acertou[localPlayer] = quantidade+1 end end FecharProva Pergunta = 2 AbrirProva elseif Pergunta == 2 then if source == opcaoC then if guiCheckBoxGetSelected(source) then acertou[localPlayer] = quantidade+1 end end FecharProva Pergunta = 3 AbrirProva end elseif Pergunta == 3 then if source == opcaoC then if guiCheckBoxGetSelected(source) then acertou[localPlayer] = quantidade+1 end end FecharProva if quantidade >= 2 then outputChatBox ( "[TLRP] #34eb3dVocê passou na prova com "..quantidade.." acertos. Parabéns!!", 255, 255, 255, true ) acertou[localPlayer] = 0 etapas[localPlayer] = false; triggerServerEvent(localPlayer, "NSCR:TerminouProva", localPlayer) else outputChatBox ( "[TLRP] #ff0000Você falhou na prova com "..quantidade.." acertos e foi kickado. (Maximo de erros: 3)", 255, 255, 255, true ) kickPlayer(localPlayer) end end end end end Error: '=' expected near 'etapas' --Error line: etapas[localPlayer] = true Thanks!!!!
×
×
  • Create New...