Machine Posted August 12, 2012 Share Posted August 12, 2012 hello i made this marker to enter a place but problem is how make it in same time out from the place? using same markers enter = createMarker(1122.7998046875, -2036.8994140625, 70.5, "arrow", 1, 150, 0, 0, 255 ) function teleport(player) if getElementType(player)=="player" then if source == enter then setElementPosition(player, 1107.599609375, -2062.9, -51) setElementFrozen(player, false) setTimer(setElementFrozen, 1000, 1, player, false) end end end addEventHandler("onClientMarkerHit", getRootElement(), teleport) Link to comment
manve1 Posted August 12, 2012 Share Posted August 12, 2012 use lua codes. PS. sorry... i haven't done anything like it... so i don't know how to fix it. Link to comment
ernst Posted August 12, 2012 Share Posted August 12, 2012 (edited) You would need to create two markers. enter = createMarker(1122.7998046875, -2036.8994140625, 70.5, "arrow", 1, 150, 0, 0, 255 ) leave = createMarker(x, y, z, "arrow", 1, 0, 0, 255) function teleport(client) if not (getElementType(client)=="player") then return end if (source == enter) then setElementPosition(client, 1107.599609375, -2062.9, -51) setElementFrozen(client, false) setTimer(setElementFrozen, 1000, 1, client, false) elseif (source == leave) then --your code end end addEventHandler("onClientMarkerHit", root, teleport) Edited August 12, 2012 by Guest Link to comment
TAPL Posted August 12, 2012 Share Posted August 12, 2012 addEventHandler("onClientMarkerHit", root), teleport) addEventHandler("onClientMarkerHit", root, teleport) Link to comment
ernst Posted August 12, 2012 Share Posted August 12, 2012 addEventHandler("onClientMarkerHit", root), teleport) addEventHandler("onClientMarkerHit", root, teleport) Typo.. anyway fixed Link to comment
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now