Jump to content

question


joedajoester

Recommended Posts

Which would be right?

local acc = getAccountName(getPlayerAccount(player)) 
         if acc then 
         if isObjectInACLGroup("user." .. acc, aclGetGroup("Admin")) then 

local accName = getAccountName ( getPlayerAccount ( thePlayer ) ) 
if isObjectInACLGroup ( "user." .. accName, aclGetGroup ( "Admin" ) ) then 

Does it matter what the function is, and it has to be the same as the other parts of the script???

Link to comment
col  = createColCircle (-1851, -3112.1000976563, 47, 0.1) 
lift = createObject (3095, -1851, -3112.1000976563, 51.700000762939, 0, 0, 228.49365234375) 
function open(player) 
    local acc = getAccountName(getPlayerAccount(player)) 
         if acc then 
         if isObjectInACLGroup("user." .. acc, aclGetGroup("Admin")) then 
            moveObject(lift, 4000, -1851, -3112.1000976563, 38.900001525879) 
        end 
    end 
end 

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