Jump to content

NickScripter

Members
  • Posts

    43
  • Joined

  • Last visited

  • Days Won

    2

Posts posted by NickScripter

  1. lzEppHi.png

    Hi everyone! I want to offer for sale a Advanced Drug System that can be the perfect DLC for your Roleplay server.

    kEHaOkx.png

    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:

    Spoiler

    Edit script for you to customize the Mod to your liking.

    QO3gBV4.png 

    Drugs Inventory

    LvURHHD.png

    After smoke weed

    JDJAN76.png

    The effect of marijuana creates random objects without collision.

    66Ssi3j.png

    Cocaine effect

    spacer.png

    Illegal Drug Store (Exclusive for players in the drug dealer ACL)

    spacer.png

    Panel selling drugs to other players 

    CyteL8i.png

    Marijuana planting process

    xn5Y9fp.png

    nUB6bLF.png

    xIu4Zvx.png

    sARC8Zj.png

    WMVMsQF.png

    0Y9tkk9.png

    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]

    • Like 1
  2. 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 ?

  3. Combo Introdução PREMIUM Nick Scripter

    Wl9eUyk.png

    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

    Spoiler

    jYjMJ3I.png

    IJtxnqf.png

    112rbQK.png

    rCVXo9d.png

    pqcMZQ4.png

    U8Yr26D.png

    kt84WRh.png

    si8JlBM.png


    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

  4. 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!!

    1JgBMe7.png
    -------------------------------------------------------------

    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

    Spoiler

    Processo de plantação de Maconha

    spacer.png

    Após cavar o buraco, jogar a semente no chão, a maconha floresce e você precisará coleta-la pra processar.

    spacer.png

    Após colher a maconha, você precisará levar até o galpão para a maconha ser processada.

    spacer.png

    Após processar a maconha, você pode consumi-la através do inventário de drogas (/drogas) ou vende-la para outro player através do comando /traficar.

    (Efeito da maconha)

    spacer.png

    (Efeito do Crack)

    spacer.png

    Painel de venda de drogas que aparece para os players através do comando /traficar.

    spacer.png

    Inventário de drogas (/drogas)

    spacer.png

    NPC Traficante das outras drogas (Somente pode acessar o NPC quem está na ACL pré-definida no Edit)

    spacer.png

    Edit completo para personalizar de acordo com a sua preferência.

    spacer.png

     

    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!!

    • Like 1
  5. ----/////////------
    --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.

  6. 6 minutes ago, \\Virus// said:

    bom Mt obrigado vou testar aqui e ver se funciona!

    não funcionou man, continua com o mesmo bug, quando alguem esta em um veiculo assim com eu e sai/entra do carro ambos os carros desligam, ele n tá agindo individualmente ;-;

    mas obg pela ajuda

    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

  7. 51 minutes ago, \\Virus// said:

    olá , bom dia/boa tarde/boa noite/ estou com um problema com o meu script de Ligar/desligar motor com os "triggerServerEvent"."o script faz com que, quando um player entra no carro ele começa desligado, e o player tem que pressionar [ i ] para ligar o veiculo,porém por algum motivo bizarro quando um player está em um veiculo e outro entra/sai  de outro veiculo os dois veículos desligam e não consigo identificar o problema, por isso estou pedindo ajuda aq ;-;"

    Script:

    
    ----/////////------
    --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()
    outputChatBox("#FFFF00Para Ligar/Desligar o Motor Aperte [ i ]",r,g,b,true)
    triggerServerEvent("motor",getLocalPlayer())
    bindKey("i","down",ligarMotor)
    ----//////---
    --Seta o Motor Como Desligado ao Sair
    ----//////---
    end)
    addEventHandler("onClientVehicleStartExit",getRootElement(),function()
    unbindKey("i","down",ligarMotor)
    triggerServerEvent("motor",getLocalPlayer())
    triggerServerEvent("certezza",getLocalPlayer())
    end)
    
    -------------------------------------------------------------------------
    ----/////////------
    --Lado do Server
    ----/////////------
    
    ---desliga e liga o motor baseado no input do cliente
    local function motorToggle()
    local theVehicle = getPedOccupiedVehicle(source)
    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
    addEvent("motor",true)
    addEventHandler("motor",getRootElement(),motorToggle)
    --///---
    --dá a certeza que o motor vai desligar ao sair (mesmo se ja estiver desligado)
    ---///--
    local function certeza()
    local theVehicle = getPedOccupiedVehicle(source)
    if (getVehicleEngineState(theVehicle) == true) then
        setVehicleEngineState(theVehicle,false)
        setVehicleLightState(theVehicle,0,1)
        setVehicleLightState(theVehicle,1,1)
        setVehicleLightState(theVehicle,2,1)
        setVehicleLightState(theVehicle,3,1)
    end
    
    end
    addEvent("certezza",true)
    addEventHandler("certezza",getRootElement(),certeza)
    

    se alguém puder me ajudar ficarei mt grato :D

    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)

     

    • Like 1
  8. 2 hours ago, Khadeer143 said:

    Thats good to see gta V rpg server and also there is another GTA V freeroam already in mta sa 

     

    19 minutes ago, Tut said:

    I like it a lot, great recreation :)

    A few things I would consider is the overall speed of vehicles and animations, for some scenes I would record in say, 0.8 or 0.6 game speed, just to get a more smooth movement.

    For the camera I would use a camera tool instead of panning and cropping in post. It gives you more creativity space and I have personally used it for many years: 

     

    Thank you guys! Good tips Tut, next video i will use it =D

  9. owbxwiS.png

    Hi everyone! I want to offer for sale a Advanced Medical System that can be the perfect DLC for your Roleplay server.B7EMGBk.png

    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]

    • Thanks 2
  10. 1 hour ago, Lord Henry said:

    Bom tópico. A maioria só deixa o IP e uma breve descrição, mas você soube aproveitar seu espaço e mostrar várias coisas legais do servidor, parabéns.

    Apenas deixei as imagens dentro de spoilers para evitar o spam.

    Obrigado, Henry. Fico feliz por vocês  terem gostado =D

  11. 4 hours ago, ~#BlackSCR said:

    Servidor aparentemente bem organizado! Boa sorte brother.

    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

  12. On 25/05/2020 at 11:26, Lukas NQB said:

    Isso é um "trabalho" de criação de armas, porém antes de criar armas ele precisa criar as peças, sendo assim o mesmo tem que ir em determinados locais pré-definidos, aonde ele vai comprar uma certa quantidade de materiais, ele só vai poder comprar 1 vez em cada ponto de venda depois devera retornar a HQ aonde haverá um marker que vai fazer essa divisão aonde a cada 10 materiais ele transforma em 1 peça.

    Realizei o teste acima porém está me retornando um erro.

    
    setElementData(localPlayer, "pPecas", getElementData(localPlayer, "Materials")/10)
    

    attempt to perform arithmetic on a boolean value

    Se possível me de um exemplo de como ficaria esse código em table, isso vai me dar uma base e uma noção para me aprofundar mais e evoluir.

     

    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. 

     

  13. 13 minutes ago, ReZurrecti0n said:
    
    FecharProva -- What is this? A Variable? Its not doing anything... Why is this here or what do you want it to do?etapas[localPlayer] = true -- This line itself is actually just fineAbrirProva -- What is this? A Variable? Its not doing anything... Why is this here or what do you want it to do?

     

    AbrirProva - Opens the DX

    FecharProva - Closes the DX

  14. Thanks for you reply! The radio buttons fit better in the system that i want xD 

    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!!

  15. 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...