local gate = createObject (16775, 2532, -1514.5999755859, 27.10000038147, 0, 0, 0)
local marker = createMarker (2532, -1514.5999755859, 27.10000038147, "cilindro", 8, 0, 0, 0, 0)
função moveGate (thePlayer )
se isObjectInACLGroup ( "utilizador." .. getAccountName (getPlayerAccount (theplayer)), aclGetGroup ( "CV")), em seguida,
Moveobject (portão, 1900, 2532, -1.514,5999755859, 18,89999961853)
extremidade
final
AddEventHandler ( "onMarkerHit", marcador, moveGate )
function move_back_gate ()
moveObject (gate, 1900, 2532, -1514.5999755859, 27.10000038147, 0, 0, 0)
end
addEventHandler ("onMarkerLeave", marcador, move_back_gate)