Jump to content

Another qeustion


tim260

Recommended Posts

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

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...