local gate = createObject(980, 1001.5, -1096.9000244141, 25.60000038147, 0, 0, 110)
local marker = createMarker(1001.5, -1096.9000244141, 25.60000038147, "cylinder", 8, 0, 0, 0, 0)
function moveGate(thePlayer)
if isObjectInACLGroup("user." .. nomeAcc, aclGetGroup("TDF")) then
moveObject(gate, 3000, 1001.5, -1096.9000244141, 20)
end
end
addEventHandler("onMarkerHit", marker, moveGate)
function move_back_gate()
moveObject(gate, 3000, 1001.5, -1096.9000244141, 25.60000038147)
end
addEventHandler("onMarkerLeave", marker, move_back_gate)
I think its all ok with this code, but... ERROR.
I wrongly have deleted a wrong line on my code, thats all ok now guys, i think.
local nomeAcc = getAccountName (getPlayerAccount (source))