Ulysses

General => Developers Corner => Topic started by: Edward Snowman on March 09, 2014, 04:50:03 PM

Title: Group Restrictions!
Post by: Edward Snowman on March 09, 2014, 04:50:03 PM
Hey! Im somewhat new to ULX and cant seem to figure out how to set it to where like "Mod" cant target any rank above mod. I saw a post explaining that !%Mod should work but it doesnt, it either lets them target all or none, HELP!
Title: Re: Group Restrictions!
Post by: Neku on March 09, 2014, 05:00:25 PM
Whatever rank is the next tier in your ranks.

Here's my example:

user, moderator, admin, superadmin

For this, you'd do

User: *
Moderator: !%admin
Admin: !%superadmin
Superadmin: *

And also, I recommend that you rename your ranks so they are lowercase.
I don't know if it'll affect anything if you don't, but it's just a safer approach.
Title: Re: Group Restrictions!
Post by: Bytewave on March 09, 2014, 05:16:04 PM
Hey! Im somewhat new to ULX and cant seem to figure out how to set it to where like "Mod" cant target any rank above mod. I saw a post explaining that !%Mod should work but it doesnt, it either lets them target all or none, HELP!
Do NOT use capital letters in group names- I found this out the hard way.
It breaks the ULX inheritance system/can_target.
Title: Re: Group Restrictions!
Post by: Edward Snowman on March 09, 2014, 05:21:08 PM
So what would be the easiest way to fix that if we had them with uppercase such as: Mod
Title: Re: Group Restrictions!
Post by: Bytewave on March 09, 2014, 07:36:38 PM
So what would be the easiest way to fix that if we had them with uppercase such as: Mod
Rename them in XGUI under Groups>Group Management.
It's not that hard- I'll post screenshots if you need.
Title: Re: Group Restrictions!
Post by: sabo on March 13, 2014, 12:17:48 PM
First of you need to be sure the rank that is supposed to be above a rank is actually higher rank

That means you need a system like the following:

User (no inheritance)
VIP (inherits from user)
Moderator (inherits from VIP)
Admin (inherits from Moderator)
Superadmin (inherits from Admin)

Then the "!%GROUP" option works. Otherwise it will be tricky to make it work or wont work at all, I suggest you to use the simple way and let every rank inherit from the rank before it.

Good luck.
Title: Re: Group Restrictions!
Post by: Snell on March 14, 2014, 12:22:42 AM
It's actualy quite simple after you get the grasp of it :D

Say these are your Ranks, and they all have access to commands which target other players (The Need to inhert from Eachother)
Quote
superadmin
admin
operator
moderator

For Moderator to be unable to target operator, you will have to use the parameter

Code: [Select]
!%operator
The %operator is everyone in the usergroup, and the ! means anyone not in the usergroup, which inherts from it.