the marker have a bug
try this:
-- #! Server Side
Marker = createMarker ( -2596.625, 579.358, 15.626 - 1, 'cylinder', 2.0, 255, 0, 0, 150 )
function setPosition(player)
local PlayerTeam = getPlayerTeam ( player )
local TeamN = getTeamFromName ( "TeamName" )
if isElementWithinMarker ( player, Marker ) then
if PlayerTeam == TeamN then
setElementPosition ( player, 2287.78320, 607.99255, 10.82031 )
end
end
end
addEventHandler("onMarkerHit",Marker, setPosition)
Would you like to tell us the bug?