ULX

Author Topic: Ulx Can Target  (Read 1468 times)

0 Members and 1 Guest are viewing this topic.

Offline Justin ?

  • Newbie
  • *
  • Posts: 1
  • Karma: 0
Ulx Can Target
« on: January 09, 2018, 12:47:32 PM »
Ok. So I have looked around for hours on this issue and kept on trying to apply fixes but none seem to work. I have these ranks Owner, Head Of Staff, Head Admin, Head Moderator, Senior Admin, Admin, Senior Moderator, Moderator, Trial Moderator,

I want it so the rank below can't pick up the rank above,
For example... Moderator should not be able to pick up Senior Moderator.

The inherit system goes from user to Trial Moderator to Moderator going on. Except for Owner and Head Of Staff which inherits from superadmin.
 
Here is a Pastebin for more info.
https://pastebin.com/esdmmZXi

Thanks in advance

Offline iViscosity

  • Respected Community Member
  • Hero Member
  • *****
  • Posts: 802
  • Karma: 58
Re: Ulx Can Target
« Reply #1 on: January 10, 2018, 02:35:50 PM »
Please read this: https://forums.ulyssesmod.net/index.php/topic,5346.msg36209.html#msg36209

The "!%" in your can_target statements means "everything except the group following, including inherits". So, for example, your "Moderator" has a can_target of "!%Trial Moderator". This means Moderator can target everything BELOW Trial Moderator. Obviously this is not what you want. If you wanted "Trial Moderator" unable to target "Moderator" (any anything above it) you would set Trial Moderator's "can_target" to "!%Moderator".

Also, try to stay away from capitalization and spaces in your group names. I don't know for sure if ULX still has issues with those, but it's better to be safe than sorry.
I'm iViscosity. I like gaming and programming. Need some help? Shoot me PM.