Jump to content

androksi

Other Languages Moderators
  • Posts

    543
  • Joined

  • Last visited

  • Days Won

    38

Posts posted by androksi

  1. Primeiramente, para fazer isso, você precisará substituir as armas originais do jogo com uma .dff e .txd invisíveis.

    Baixe-as aqui: invisible

    Após substituídas, você deverá encontrar objetos pequenos, tais como: partes de carro, móveis de interiores, caixas, garrafas etc. Contudo, substitua normalmente o objeto pela arma que você deseja.

    Você pode achar objetos pequenos neste site: aqui

    Em um outro resource, você deverá criar um script que faça a arma anexar ao jogador. (recomendo fazer server-side para começar).

    Funções e eventos que deverão ser usados:

    onPlayerWeaponSwitch -- evento
    createObject
    destroyElement
    attachElementToBone (bone_attach)
    detachElementFromBone (bone_attach)

    Resource: bone_attach

    Exemplo do script: aqui

    • Thanks 1
  2. Desculpe reviver este tópico, mas o que você precisa pra fazer isso é bem simples.

    - Quando o jogador dominar aquele território, use: setElementData para salvar o nickname do jogador. Exemplo: setElementData(marker, "playerName", tostring(getPlayerName(player)))

    - Já no client-side, você deve fazer isto:

    function test()
    	for _, marker in pairs(getElementsByType("marker")) do
    		local playerName = getElementData(marker, "playerName")
    		if (playerName) then
    			local mx, my, mz = getElementPosition(marker)
    			if (getDistanceBetweenPoints3D(mx, my, mz, getElementPosition (localPlayer))) < 20 then
    				local coords = {getScreenFromWorldPosition(mx, my, mz)}
    				if coords[1] and coords[2] then
    					dxDrawText("Area dominada por: "..playerName, coords[1], coords[2], coords[1], coords[2], tocolor(255, 255, 255, 255), x*1.20, "default-bold", "center", "center", false, false, false, true, false)
    				end
    			end 
    		end
    	end
    end
    addEventHandler("onClientPreRender", root, test)

     

    • Thanks 1
  3. 4 hours ago, #RooTs said:

    Afffe esses mlk é muito fdp... vai divulga essas porra na casa do caraio..

    @DNL291 deleta esses post.. sem nexo nenhum

    Identifico como spam.. merece ban

    Se der vontade de eu divulgar meu server localhost divulgarei. Chatão hein, Roots. Deixe o rapaz ser feliz.

  4. Você pode editar o fr_client.lua de seu Freeroam, retirando ou alterando os comandos. Pesquise por addCommandHandler dentro desse arquivo e vá alterando-o.

    Outra opção é criando um script que bloqueie tais comandos.

    local blockedCommands = {
    	["cv"] = true,
    	["createvehicle"] = true,
    }
    
    addEventHandler("onPlayerCommand", root,
    	function(c)
    		if (blockedCommands[c]) then
    			cancelEvent()
    		end
    	end
    )

     

  5. I believe that you need to create a application on Google, so you will get the  Gmail API and must handler it. I'm sorry if it doesn't help you.

  6. Tente isso:

    -- client-side
    addEventHandler("onClientGUIClick", aqui_o_botão,
    	function(button, state)
    		if (button == "left" and state == "up") then
    			triggerServerEvent("onRequestTeam", localPlayer)
    		end
    	end,
    false
    )
    
    -- server-side
    addEvent("onRequestTeam", true)
    addEventHandler("onRequestTeam", root,
    	function()
    		local team = getTeamFromName("Lenhador")
    		if (team) then
    			setPlayerTeam(source, team)
    		end
    	end
    )

    Creio que você já tenha o painel, portanto basta substituir "aqui_o_botão" pelo seu.

  7. -- server-side
    
    addEventHandler("onPlayerLogin", getRootElement(),
    	function(_, playerAccount)
    		local accountName = getAccountName(playerAccount)
    		-- save the account name as data
    		setElementData(source, "AccountName", accountName)
    	end
    )
    
    -- Use getElementData to get your account on client-side. If it helped you, leave like!

     

    • Like 2
  8. Olá, Alexandre.

    Então meu caro, para você desativar a "barrinha" do Raidcall basta seguir estas instruções: Abra seu Raidcall -> System Settings (Configurações) -> Overlay; No primeiro campo, Hotkey to show/hide Overlay você deve colocar duas combinações de teclas. Exemplo: Ctrl + 0 (número 0). Coloque combinações que você não usa.

    Tchau, tchau! Espero ter ajudado.

×
×
  • Create New...