Всем привет ребят вот создал скрипт ворот с открыванием по скину ворота создаются но по скину не открываются помогите пожалуйста вот скрипт который я создал:
local gate = createObject(8210,2497.8999023438,2769.3999023438,12.89999961853, 0, 0, 270.25 )
function openagates(thePlayer)
if getElementModel( thePlayer ) == 217 then --Will open only if the player is in the male staff skin
moveObject ( gate, 6000, 2497.8999023438, 2769.3999023438, 4.0999999046326 ) --The speed in which 7000 is slow and 2000 is fast to open, Co-Ordinates for the gate to move to.
end
end
addEventHandler( "onColShapeHit", gatecol, openagates )
function closeagates(thePlayer)
if getElementModel( thePlayer ) == 217 then --Will close only if the player is in the male staff skin
moveObject (gate1, 6000, 2497.8999023438, 2769.3999023438, 12.89999961853) --The speed in which 7000 is slow and 1000 is fast to open, Co-Ordinates for the gate to close.
end
end