Все привет,ребята помогите я уже два дня мудрю не как не могу понять в чем дело ворота появляются но по скину не открываются,пожалуйста помогите(
local gate = createObject(10841, 2595.5, -2140.3000488281,6.9000000953674 )
local gatecol = createColCircle ( 2595.5, -2140.3000488281, 25 ) --Co-Ordinates "X" and "Y" and the radius, I use 15 as default.
function openagates(thePlayer)
if getElementModel ( thePlayer ) == 217 then --Will open only if the player is in the male staff skin
moveObject ( gate, 6000, 2618.3000488281, -2140.3000488281, 6.9000000953674, 0, 0, 0 ) --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 (gate, 6000, 2595.5, -2140.3000488281,6.9000000953674) --The speed in which 7000 is slow and 1000 is fast to open, Co-Ordinates for the gate to close.
end
end
addEventHandler( "onColShapeLeave", gatecol, closeagates )