local gate1 = createObject(980, -2131.6999511719, 504.20001220703, 36.799999237061, 0, 0, 270)
function Gate1(player)
if not getElementData(player,"gater1") == true then
setElementData(player,"gater1",true)
moveObject(gate1, 3000, -2131.6999511719, 504.20001220703, 31)
else
if getElementData(player,"gater1") == true then
setElementData(player,"gater1",false)
moveObject(gate1, 3000, -2131.6999511719, 504.20001220703, 36.799999237061)
end
end
end
addCommandHandler ("test", Gate1)