Hello.I'm Nelson, an other MTA new scripter.I need some help with a gate system.I'm here till now
function createTheGate ()
gate1 = createObject ( 2938, 984.8, 1480.7, 14.6 )
end
addEventHandler ( "onResourceStart", getResourceRootElement ( getThisResource () ), createTheGate )
function openMyGate ( )
moveObject ( gate1, 2938, 984.8, 1480.7, 16.6 )
setTimer ( movingMyGateBack, 5000, 1 )
end
getPlayerTeam ( ThePlayer, openMyGate )
function movingMyGateBack ()
moveObject ( gate1, 2938, 984.8, 1480.7, 14.6 )
end
can anyone help me?