joedajoester Posted December 28, 2011 Share Posted December 28, 2011 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
Xeno Posted December 28, 2011 Share Posted December 28, 2011 Use this: local theAccount=getPlayerAccount(player) if theAccount then local accountName=getAccountName(theAccount) if isObjectInACLGroup("user." .. accountName, aclGetGroup ( "Admin" ) ) then Link to comment
joedajoester Posted December 29, 2011 Author Share Posted December 29, 2011 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
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