local wejscie = createMarker(1568.5999755859, -1689.5999755859, 6.5999999046326, "arrow", 1, 243,246,22,138)
local wyjscie = createMarker(1565.5, -1676.4000244141, 3448.6000976563, "arrow", 1, 243,246,22,138)
function TeleportDoInterioru(player)
if getElementType(player)=="player" then
if source == wejscie then
setElementPosition(player, 1565.42249, -1677.86597, 3448.26245)
setElementInterior(player, 0)
setElementInterior(wyjscie, 0)
setElementFrozen(player, true)
setTimer(setElementFrozen,2000,1,player,false)
end
end
end
addEventHandler("onMarkerHit", wejscie, TeleportDoInterioru)
function WyjscieZInterioru(player)
if getElementType(player)=="player" then
if source == wyjscie then
setElementPosition(player, 1568.52307, -1691.57178, 5.89063)
setElementInterior(player, 0)
setElementFrozen(player, true)
setTimer(setElementFrozen,2000,1,player,false)
end
end
end
addEventHandler("onMarkerHit", wyjscie, WyjscieZInterioru)
[/u]