local wejscie_glowne = createMarker(1015.5,-1557.80,15.5,"arrow",1,255,255,255,255)
local wyjscie_glowne = createMarker(1011.90, -1557.80,-25.5,"arrow",1,255,255,255,255)
setElementDimension(wyjscie_glowne,99)
function wchodzenie(player)
if getElementType(player) == "player" then
if source == wejscie_glowne then
setElementPosition(player,1010.09, -1557.80, -26)
setElementDimension(player,99)
setElementFrozen(player,true)
setTimer(setElementFrozen,1000,1,player,false)
end
end
end
function wychodzenie(player)
if getElementType(player) == "player" then
if source == wyjscie_glowne then
setElementPosition(player,1018.24,-1557.81,14.86)
setElementDimension(player,0)
setElementFrozen(player,true)
setTimer(setElementFrozen,1000,1,player,false)
end
end
end
addEventHandler("onClientMarkerHit", getRootElement(),wchodzenie)
addEventHandler("onClientMarkerHit", getRootElement(),wychodzenie)