tim260 Posted October 31, 2011 Share Posted October 31, 2011 I thought about restricting gates to ACL but what is wrong with this cuz it doesnt work, gate1 = createObject ( 2990, 1269.8000488281, -1842.1999511719, 16.299999237061, 0, 0, 0.5 ) col = createColCircle (1269.8000488281, -1842.1999511719, 16.299999237061, 3 ) local accountname = getAccountName (getPlayerAccount(player)) function opena51gates(thePlayer) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "admin" ) ) then moveObject (gate1, 500, 1278.5, -1842.0999755859, 16.299999237061 ) end end addEventHandler( "onColShapeHit", col, opena51gates ) function closea51gates(thePlayer) if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "admin" ) ) then moveObject (gate1, 500, 1269.8000488281, -1842.1999511719, 16.299999237061 ) end end addEventHandler( "onColShapeLeave", col, closea51gates ) Link to comment
Charlie_Jefferson Posted October 31, 2011 Share Posted October 31, 2011 What errors do you get? Link to comment
tim260 Posted October 31, 2011 Author Share Posted October 31, 2011 none just not working Link to comment
Aibo Posted October 31, 2011 Share Posted October 31, 2011 viewtopic.php?f=91&t=36800#p379106 read this again. 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