MIKI785 Posted July 22, 2012 Share Posted July 22, 2012 Is there any way how to restrict any function in the ACL? For example function setVehicleColor only to group admin. I tried to disallow acces in default group but it still can be used by any resource. Is it possible to restrict it? Link to comment
robhol Posted July 22, 2012 Share Posted July 22, 2012 That should be possible, yes. Mind posting your acl? Link to comment
MIKI785 Posted July 22, 2012 Author Share Posted July 22, 2012 Why? I just restricted function setVehicleColor for group Default... and it doesn't work. Link to comment
Jaysds1 Posted July 22, 2012 Share Posted July 22, 2012 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
AeroXbird Posted July 22, 2012 Share Posted July 22, 2012 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
Jaysds1 Posted July 22, 2012 Share Posted July 22, 2012 oh, snap, I never read his first post right, thanks AeroXbird. Link to comment
MIKI785 Posted July 23, 2012 Author Share Posted July 23, 2012 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
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