gate1 = createObject ( 987, 959, 198, 35, 0, 0, 90 ) --change
col = createColSphere (959, 198, 35, 10 ) --change pos
peder = createBlip ( 987, 175.19999694824, 1094.9000244141, 43 )
function opengates(thePlayer)
local id = getElementModel ( thePlayer )
if id == 217 then
moveObject (gate1, 959, 198, 35, 16 ) --change
end
end
addEventHandler( "onColShapeHit", col, opengates )
function closegates(thePlayer)
if id == 217 then
moveObject (gate1, 959, 198, 35, 16 ) --change
end
end
addEventHandler( "onColShapeLeave", col, closegates )