Jump to content

Marker de teleporte com permissão no ACL


Recommended Posts

Coloquei Esse Script Mas Nao Consigo, o Marker Aparece eu me Adiociono Na ACL Mas Nao Teleporta

Alguem pode corrigir o script pls 

local entrada = createMarker(-1593.261, 716.234, -6.242, 'cylinder', 1.5, 0, 0, 0, 255 ) -----Entrada

function entrar( hitElement, matchingDimension )
	if isObjectInACLGroup ("user."..accName, aclGetGroup ( "PC" ) ) then
		setElementPosition(hitElement, 288.616, 171.226, 1007.179) 
		setElementDimension(hitElement, 0)
		setElementInterior(hitElement, 3)
	end
end
addEventHandler( "onMarkerHit", entrada , entrar )

-----------------------------------------------------------------------------

local saida = createMarker(288.733, 167.606, 1006.172, 'cylinder', 1.5, 0, 0, 0, 255 ) -----Saida
setElementDimension(saida, 0)
setElementInterior(saida, 3)

function sair( hitElement, matchingDimension )
	if isObjectInACLGroup ("user."..accName, aclGetGroup ( "PC" ) ) then
		setElementPosition(hitElement, -1586.604, 716.054, -5.242) 
		setElementDimension(hitElement, 0)
		setElementInterior(hitElement, 0)
	end
end
addEventHandler("onMarkerHit", saida, sair)

 

Edited by Lord Henry
Código convertido de texto para Lua.
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...