Jump to content

Como Coloco Dx Junto Com Teleporte


Recommended Posts

Eu Queria Saber Como Eu Coloco Dx Com Teleporte Tipo, Quando Eu Dou O Comando Do Teleporte Exemplo "/praia" Ai Apareçe o Jogador Foi Para Praia Mais Eu Queria Que Essa Msg Aparecia No Topo Da Tela Junto Com O Dx. Eu Sou Bom Em Scripter Mais Com Dx Nao Sou Bom  Entao Ta Ai Me Ajudem Por Favor

 

Teleportes:

local posicoes =
    {
        { 350.177, -1763.144, 5.283 },	
    }
	
function PosicaoPlayer ( thePlayer, command )
    local azar = math.random ( #posicoes )
	local veh = getPedOccupiedVehicle(thePlayer)
		if (veh) then
			setElementPosition(veh, unpack ( posicoes [ azar ] ) )
		else
			setElementPosition(thePlayer, unpack ( posicoes [ azar ] ) )
		end	
			outputChatBox ('#ffffff[ #00ff00INFO #ffffff]#ffffff: O Jogador(a) ' .. getPlayerName(thePlayer) .. ' #ffffffFoi Para [/#00ff00praia#ffffff]', root, 255, 255, 255, true)
end
addCommandHandler ( "praia", PosicaoPlayer )

local posicoes =
    {
        { 2465.643, -1670.133, 13.477 },	
    }
	
function PosicaoPlayer ( thePlayer, command )
    local azar = math.random ( #posicoes )
	local veh = getPedOccupiedVehicle(thePlayer)
		if (veh) then
			setElementPosition(veh, unpack ( posicoes [ azar ] ) )
		else
			setElementPosition(thePlayer, unpack ( posicoes [ azar ] ) )
		end	
			outputChatBox ('#ffffff[ #00ff00INFO #ffffff]#ffffff: O Jogador(a) ' .. getPlayerName(thePlayer) .. ' #ffffffFoi Para [/#00ff00cj#ffffff]', root, 255, 255, 255, true)
end
addCommandHandler ( "cj", PosicaoPlayer  )

local posicoes =
    {
        { 2172.055, -1015.773, 62.972 },	
    }
	
function PosicaoPlayer ( thePlayer, command )
    local azar = math.random ( #posicoes )
	local veh = getPedOccupiedVehicle(thePlayer)
		if (veh) then
			setElementPosition(veh, unpack ( posicoes [ azar ] ) )
		else
			setElementPosition(thePlayer, unpack ( posicoes [ azar ] ) )
		end	
			outputChatBox ('#ffffff[ #00ff00INFO #ffffff]#ffffff: O Jogador(a) ' .. getPlayerName(thePlayer) .. ' #ffffffFoi Para [/#00ff00favela#ffffff]', root, 255, 255, 255, true)
end
addCommandHandler ( "favela", PosicaoPlayer  )

local posicoes =
    {
        { 1914.546, -2415.094, 13.539 },	
    }
	
function PosicaoPlayer ( thePlayer, command )
    local azar = math.random ( #posicoes )
	local veh = getPedOccupiedVehicle(thePlayer)
		if (veh) then
			setElementPosition(veh, unpack ( posicoes [ azar ] ) )
		else
			setElementPosition(thePlayer, unpack ( posicoes [ azar ] ) )
		end	
			outputChatBox ('#ffffff[ #00ff00INFO #ffffff]#ffffff: O Jogador(a) ' .. getPlayerName(thePlayer) .. ' #ffffffFoi Para O AeroPorto De [/#00ff00ls#ffffff]', root, 255, 255, 255, true)
end
addCommandHandler ( "ls", PosicaoPlayer  )

local posicoes =
    {
        { -2334.966, -1658.198, 483.703 },	
    }
	
function PosicaoPlayer ( thePlayer, command )
    local azar = math.random ( #posicoes )
	local veh = getPedOccupiedVehicle(thePlayer)
		if (veh) then
			setElementPosition(veh, unpack ( posicoes [ azar ] ) )
		else
			setElementPosition(thePlayer, unpack ( posicoes [ azar ] ) )
		end	
			outputChatBox ('#ffffff[ #00ff00INFO #ffffff]#ffffff: O Jogador(a) ' .. getPlayerName(thePlayer) .. ' #ffffffFoi Para O [/#00ff00mt#ffffff]', root, 255, 255, 255, true)
end
addCommandHandler ( "mt", PosicaoPlayer  )

 

Edited by KaioScripter
Link to comment
  • Moderators

O DX você faz com cálculos e usa as funções DX para o front, basicamente isso. Veja algum resource como exemplo pra você estudá-lo:

https://community.multitheftauto.com/index.php?p=resources&s=details&id=7668

Mas claro que o principal é já ter um conhecimento intermediário já que você quer fazer o seu próprio.

Depois de feito, você cria o evento para possibilitar o trigger através do lado server.

Link to comment
1 hour ago, DNL291 said:

O DX você faz com cálculos e usa as funções DX para o front, basicamente isso. Veja algum resource como exemplo pra você estudá-lo:

https://community.multitheftauto.com/index.php?p=resources&s=details&id=7668

Mas claro que o principal é já ter um conhecimento intermediário já que você quer fazer o seu próprio.

Depois de feito, você cria o evento para possibilitar o trigger através do lado server.

Vlw Obg Pela Ajuda Qualquer Duvida Eu Pergunto

 

Link to comment

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...