Jump to content

Restricting some function


MIKI785

Recommended Posts

ok, add this to the Default ACL Group(not at the top. In the list):

name="function.setVehicleColor" access="true" />

and add this in every other Group ACL List:

name="function.setVehicleColor" access="false" />

in the script you would need to use this:

HasObjectPermissionTo 

Link to comment

Jay what you are doing is making everybody that is not in the group Default not able to call this command.

What you need to do is use

     <right name="function.setVehicleColor" access="true" />  

where you want the function to be usable.

and use

     <right name="function.setVehicleColor" access="false" />  

where you dont want it to be usable.

then make sure all the ACL rights are correct ofcourse :)

Link to comment
Jay what you are doing is making everybody that is not in the group Default not able to call this command.

What you need to do is use

     <right name="function.setVehicleColor" access="true" />  

where you want the function to be usable.

and use

     <right name="function.setVehicleColor" access="false" />  

where you dont want it to be usable.

then make sure all the ACL rights are correct ofcourse :)

that's what I was doing...

I don't want to use hasObjectPermissionTo() because what i want is to make sure that scripts in the maps won't be able to change vehicle's color, as the players on my server have fixed color based on their clan color.

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