Jump to content

[HELP] How to give access to Handling Editor script only for admins?


Tokio

Recommended Posts

Posted

Add this to script:

 accountname = getAccountName (getPlayerAccount(source))
      if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "admin" ) ) then

 

Posted
2 hours ago, LyricalMM said:

Add this to script:


 accountname = getAccountName (getPlayerAccount(source))
      if isObjectInACLGroup ( "user." .. accountname, aclGetGroup ( "admin" ) ) then

 

yeah, but where? which file?

Posted
8 hours ago, Pirulax said:

Nobody realized that isObjectInACLGroup accepts an element too?

Pirulaaax. (Szia)

No, nobody because it's dose not accept elements. If it is, the wiki wrong! (It writes that theObject can only string)

bool isObjectInACLGroup ( string theObject, aclgroup theGroup )

 

  • Discord Moderators
Posted

Actually, I was wrong, it doesnt, but hasObjectPermissionTo does.
Maybe we could add the ability to pass in elements as well.

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