local gate = createObject ( 969, 128.30000305176, 1935.3000488281, 18.299999237061 )
function moveGate()
moveObject ( gate, 3000, 136.39999389648, 1935.3000488281, 18.299999237061 + 5 )
end
addCommandHandler ( "top", moveGate )
addEventHandler("onResourceStart",root,function ()
for k,vv in ipairs(getElementsByType("player")) do
bindKey(vv,"tab","down","top")
end
end
)
او
local gate = createObject ( 969, 128.30000305176, 1935.3000488281, 18.299999237061 )
function moveGate()
moveObject ( gate, 3000, 136.39999389648, 1935.3000488281, 18.299999237061 + 5 )
end
addEventHandler("onResourceStart",root,function ()
for k,v in ipairs(getElementsByType("player")) do
bindKey(v,"tab","down",moveGate)
end
end
)
مشكور اخوي نجح معي بس المشكله انه لو ظغط تاب من بعيد يفتح