function teleport (player,teleport)
if teleport == 0 then
setElementInterior (player,interior,x,y,z)
unbindKey ("key","down",teleportToggle) -- Remember, replace key.
elseif teleport == 1 then -- For another teleport.
end
end
addEventHandler("onMarkerHit",markerOnEntranceDoor,
function (hitPlayer,dimension)
teleport = 0
bindKey ("key","down",teleport,hitPlayer,teleport) -- Replace key.
end)
That's the best way. Remember, on each marker, choose a different "teleport" variable. And do the markers .