ULX

Author Topic: Group Restrictions!  (Read 2600 times)

0 Members and 2 Guests are viewing this topic.

Offline Edward Snowman

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Group Restrictions!
« 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!

Offline Neku

  • Hero Member
  • *****
  • Posts: 549
  • Karma: 27
Re: Group Restrictions!
« Reply #1 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.
Out of the Garry's Mod business.

Offline Bytewave

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 718
  • Karma: 116
  • :)
    • My Homepage
Re: Group Restrictions!
« Reply #2 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.
bw81@ulysses-forums ~ % whoami
Homepage

Offline Edward Snowman

  • Newbie
  • *
  • Posts: 2
  • Karma: 0
Re: Group Restrictions!
« Reply #3 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

Offline Bytewave

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 718
  • Karma: 116
  • :)
    • My Homepage
Re: Group Restrictions!
« Reply #4 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.
bw81@ulysses-forums ~ % whoami
Homepage

Offline sabo

  • Full Member
  • ***
  • Posts: 136
  • Karma: 2
  • Hello :)
    • The Elite Gaming
Re: Group Restrictions!
« Reply #5 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.

Offline Snell

  • Newbie
  • *
  • Posts: 11
  • Karma: 2
Re: Group Restrictions!
« Reply #6 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.