local myGate1 = createObject ( 980, 1278.5, -1651.8000488281, 15.300000190735, 0, 0, 270 )
local marker = createMarker( -713.90002441406, 973.20001220703, 14, "cylinder", 10, 255, 255, 255, 0)
addEventHandler("onMarkerHit", marker,
function (hitElement)
if getElementType(hitElement) == "player" then
if (getElementData(source, "gang") == "SWAT") then
moveObject ( myGate1, 2500, 1278.5, -1651.8000488281, 9.8000001907349 )
end
end
end
)
addEventHandler("onMarkerLeave", marker,
function (leftElement)
if getElementType(leftElement) == "player" then
if (getElementData(source, "gang") == "SWAT") then
moveObject ( myGate1, 2500, 1278.5, -1651.8000488281, 15.300000190735 )
end
end
end
)