Jump to content

Resource for admin only?


Interpol

Recommended Posts

Hello, I have an issue.

How can I make certain resource usability available only for admins?

I searched at forum, but I found only one solution with using something like that:

addCommandHandler("mycommand",functionname, [b]true[/b]) 

But what I should do, if there are no commands in resource?

For example, this one

https://community.multitheftauto.com/index.php?p=resources&s=details&id=3206

Thank you.

Link to comment
local accountName = getAccountName ( account ) 
    if ( isObjectInACLGroup ( "user.".. accountName, aclGetGroup ( "Admin" ) ) ) 

this is just one example which can be seen in many scripts which require admin acl

other part u need to make by yourself

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