I replaced Bope with admin group.. and it works...
local gate = createObject( 980, 1541.0999755859, -1627.6999511719, 15.199999809265, 0, 0, 90 )
local marker = createMarker(1541.49, -1627.82, 13.38, "cylinder", 10, 255, 255, 255, 0)
local marker2 = createMarker(1541.49, -1627.82, 13.38, "cylinder", 10, 255, 255, 255, 0)
function moveGate(psource)
local Deadusergroup = getAccountName(getPlayerAccount(psource))
if isObjectInACLGroup("user."..Deadusergroup, aclGetGroup("Admin")) then
moveObject(gate, 980, 1541.0999755859, -1627.6999511719, 9)
setTimer(moveBack, 5000, 1)
else
triggerClientEvent(psource, "senhadabase", psource)
end
end
addEventHandler("onMarkerHit", marker, moveGate)
function moveBack()
moveObject(gate, 980, 1541.0999755859, -1627.6999511719, 15.199999809265)
end
So, the problem is either you didn't create group in acl for "Bope"