ItsJustRonalds Posted April 28, 2015 Share Posted April 28, 2015 Hey can some one put in an automatic gates that open when you are near them for ACL group named OMEGA !!! please help Link to comment
Bean666 Posted April 28, 2015 Share Posted April 28, 2015 Just change the coordinates and also change the object ID if u have another one to add. local gate = createObject(985, 263.9, -1333.5, 53.251480102539, 0, 0, 35) local marker = createMarker(264.177734375, -1333.2490234375, 53.251480102539, "cylinder", 8, 0, 0, 0, 0) function moveGate(psource) local Omegausergroup = getAccountName(getPlayerAccount(psource)) if isObjectInACLGroup("user."..Xyruviausergroup, aclGetGroup("OMEGA")) then moveObject(gate, 1000, 263.9, -1333.5, 46) end end addEventHandler("onMarkerHit", marker, moveGate) function move_back_gate() moveObject(gate, 1000, 263.9, -1333.5, 53.251480102539) end addEventHandler("onMarkerLeave", marker, move_back_gate) Link to comment
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now