DonPro Posted July 30, 2014 Author Share Posted July 30, 2014 Ah, I haven't seen this topic since a while. local gate = createObject(3114, -3362.0400390625, 2425.9689941406, 9.4750003814697, 0, 0, 270) local marker = createMarker(-3364.6000976563, 2414, 10, "cylinder", 1, 255, 255, 255, 0) function isAclGroup(p,group) if p and getElementType(p) == "player" and type(group) == "string" then local Deadusergroup = getAccountName(getPlayerAccount(p)) if isObjectInACLGroup("user."..Deadusergroup, aclGetGroup(group)) then return true else return false end else return false end end function moveGate(psource) if isAclGroup(psource,"PST_Army") then moveObject(gate, 5000, -3362.0400390625, 2425.9499511719, 16.540000915527) end end addEventHandler("onMarkerHit", marker, moveGate) function moveBack(pp) moveObject(gate, 5000, -3362.0400390625, 2425.9689941406, 9.4750003814697) end addEventHandler("onMarkerLeave", marker, moveBack) Everything should work fine now btw your group name was "PST_Army" not "Dead". dude, i just freaking love u man! thanks it works now! 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