Jump to content

Opengates


BorderLine

Recommended Posts

something is wrong? :

function openMyGate ( ) 
   local account = getPlayerAccount () 
   if isObjectInACLGroup( 'user.'..getAccountName( account ), aclGetGroup( 'STARS' ) ) then 
   moveObject ( myGate, 3000, -1508.2679443359, 497.58953857422, 2.1646394729614 ) 
else 
  outputChatBox ("Denied Access.") 
 end 
end 
addCommandHandler("abrirstars",openMyGate) 
  
  

Link to comment
function openMyGate (player) 
   local account = getPlayerAccount (player) 
   if isObjectInACLGroup( 'user.'..getAccountName(account), aclGetGroup( 'STARS' ) ) then 
      moveObject ( myGate, 3000, -1508.2679443359, 497.58953857422, 2.1646394729614 ) 
   else 
      outputChatBox ("Denied Access.",player) 
   end 
end 
addCommandHandler("abrirstars",openMyGate) 

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...