ULX

Author Topic: Low ranks can target higher ranks  (Read 5808 times)

0 Members and 1 Guest are viewing this topic.

Offline -sG- Broccoli

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
  • Broccoli is love, Broccoli is life<3
Low ranks can target higher ranks
« on: February 03, 2015, 10:13:14 AM »
Well hi, i have a problem with my targeting, and i cant figure out why, i have tryed to find out a long time, but nothing is working.

basicly my lower ranks can target everyone, like Trial-moderators can target Moderators and so on,

here is some info you guys might need.

ulx debuginfo:

Code: [Select]
ULX version: 3.61
ULib version: 2.51
Gamemode: DarkRP
Map: rp_downtown_v4c_v2
Dedicated server: true

Currently connected players:
Nick                            steamid            uid        id lsh
Jenz Forkazze                   STEAM_0:1:31288750 2368752993 1  n  


ULib.ucl.users (#=3):
STEAM_0:0:33367061:
deny:
allow:
name = U WANT SUM¿
group = diamond
STEAM_0:1:31288750:
deny:
allow:
name = -sG- Broccoli
group = superadmin
STEAM_0:1:19437406:
deny:
allow:
name = -sG- Shadreck
group = junior-admin


ULib.ucl.groups (#=14):
head-admin:
allow:
1 = ulx physgunplayer
can_target = !%senior-admin
inherit_from = senior-admin
senior-admin:
allow:
1 = ulx physgunplayer
can_target = !%junior-admin
inherit_from = junior-admin
junior-admin:
allow:
1 = ulx physgunplayer
can_target = !%admin
inherit_from = admin
user:
allow:
1 = hatschat_avoidfilter
2 = hatschat_chatcol
3 = hatschat_colorname
4 = hatschat_postlinks
5 = hatschat_steamemotes
6 = ulx asay
7 = ulx echours
8 = ulx help
9 = ulx motd
10 = ulx psay
11 = ulx thetime
12 = ulx urs_weaponpickups
13 = ulx usermanagementhelp
14 = ulx votemap
15 = ulx who
owner:
allow:
can_target = !%co-owner
inherit_from = co-owner
diamond:
allow:
can_target = !%diamond
inherit_from = gold
gold:
allow:
can_target = !%silver
inherit_from = silver
moderator:
allow:
1 = ulx physgunplayer
can_target = %trial-moderator
inherit_from = trial-moderator
admin:
allow:
1 = ulx physgunplayer
can_target = !%moderator
inherit_from = moderator
superadmin:
allow:
1 = awarn_delete
2 = awarn_options
3 = hatschatadmin_config
4 = hatschatrank_donator
5 = ulx addgroup
6 = ulx adduser
7 = ulx adduserid
8 = ulx banid
9 = ulx cexec
10 = ulx ent
11 = ulx exec
12 = ulx groupallow
13 = ulx groupdeny
14 = ulx hiddenecho
15 = ulx loadoutadd
16 = ulx loadoutremove
17 = ulx logchat
18 = ulx logdir
19 = ulx logecho
20 = ulx logechocolorconsole
21 = ulx logechocolordefault
22 = ulx logechocoloreveryone
23 = ulx logechocolormisc
24 = ulx logechocolorplayer
25 = ulx logechocolorplayerasgroup
26 = ulx logechocolors
27 = ulx logechocolorself
28 = ulx logevents
29 = ulx logfile
30 = ulx logjoinleaveecho
31 = ulx logspawns
32 = ulx logspawnsecho
33 = ulx luarun
34 = ulx maul
35 = ulx print
36 = ulx rcon
37 = ulx removegroup
38 = ulx removeuser
39 = ulx removeuserid
40 = ulx renamegroup
41 = ulx restrict
42 = ulx setgroupcantarget
43 = ulx setlimit
44 = ulx unrestrict
45 = ulx userallow
46 = ulx userallowid
47 = ulx userdeny
48 = ulx userdenyid
49 = ulx voteecho
50 = xgui_gmsettings
51 = xgui_managebans
52 = xgui_svsettings
53 = xgui_urs
xgui_managegroups = access tag
can_target = !%superadmin
inherit_from = owner
silver:
allow:
can_target = !%silver
inherit_from = bronze
trial-moderator:
allow:
1 = ulx physgunplayer
can_target = %user
inherit_from = user
co-owner:
allow:
can_target = !%head-admin
inherit_from = head-admin
bronze:
allow:
can_target = !%bronze
inherit_from = user


ULib.ucl.authed (#=1):
2368752993:
deny:
allow:
name = -sG- Broccoli
group = superadmin


Garrysmod default file (#=2):
superadmin:
admin:


Active legacy addons on this server:
3d_car_dealer            by RocketMania, version 3.8X ()
URS                      by xAaron113x, version nil (nil)
awarn2                   by Mr.President, version 1.7 (nil)
darkrpmodification-master by FPtje, version 1 (00/00/00)
ghostmode                by Temparh, version 173 (January 19 2015)
hatschat2                by my_hat_stinks, version 1 (nil)
ulib                     by Team Ulysses, version 2.5099 (00/00/00)
ulx                      by Team Ulysses, version 3.6099 (00/00/00)
utime                    by Megiddo (Team Ulysses), version 1.4199 (01/27/13)

Picture of all of the ranks:

http://gyazo.com/10991179bb581b34610812c5fb0b97a9
http://gyazo.com/702363ca05ef5ffe68b84ff4dd5c3666

Offline Caustic Soda-Senpai

  • Sr. Member
  • ****
  • Posts: 469
  • Karma: 54
  • <Insert something clever here>
    • Steam Page
Re: Low ranks can target higher ranks
« Reply #1 on: February 03, 2015, 11:22:17 AM »
Why you have your trial mod to only be able to target users and not the vips is beyond me. But you have some broken targeting in there, missing some "!"'s.
Once you get to know me, you'll find you'll have never met me at all.

Offline -sG- Broccoli

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
  • Broccoli is love, Broccoli is life<3
Re: Low ranks can target higher ranks
« Reply #2 on: February 03, 2015, 11:45:57 AM »
Thats also the problem, They cant target lower ranks only higher ranks

Offline Caustic Soda-Senpai

  • Sr. Member
  • ****
  • Posts: 469
  • Karma: 54
  • <Insert something clever here>
    • Steam Page
Re: Low ranks can target higher ranks
« Reply #3 on: February 03, 2015, 03:47:50 PM »
But you have some broken targeting in there, missing some "!"'s.
Once you get to know me, you'll find you'll have never met me at all.

Offline -sG- Broccoli

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
  • Broccoli is love, Broccoli is life<3
Re: Low ranks can target higher ranks
« Reply #4 on: February 04, 2015, 12:51:00 PM »
When i try to fix the targeting on a few groups it says "You changed group headadmin to only be able to target !ommunitymanger" it only comes when something starts with c like co-owner and communitymanger

screen shoot of the message: http://gyazo.com/878ed2be18cbe7f8d9af98982856296c

Offline XxLMM13xX

  • Sr. Member
  • ****
  • Posts: 265
  • Karma: -51
  • New to lua development
    • Twitch
Re: Low ranks can target higher ranks
« Reply #5 on: February 04, 2015, 01:25:42 PM »
( off topic ) The red text is because of the chatbox... ( off topic )

Do: !%<groupname>

That should work

Offline -sG- Broccoli

  • Newbie
  • *
  • Posts: 8
  • Karma: 0
  • Broccoli is love, Broccoli is life<3
Re: Low ranks can target higher ranks
« Reply #6 on: February 04, 2015, 01:39:58 PM »
I do that, but the "C" in the beginning is getting removed. i type !%coowner like the groups name is, but it shows its like "You changed group headadmin to only be able to target !ommunitymanger", in the chat http://gyazo.com/878ed2be18cbe7f8d9af98982856296c , but all the others isent like that.

Offline XxLMM13xX

  • Sr. Member
  • ****
  • Posts: 265
  • Karma: -51
  • New to lua development
    • Twitch
Re: Low ranks can target higher ranks
« Reply #7 on: February 04, 2015, 01:55:12 PM »
Don't worry.. if you type "!%c hello" you will see it will make it that color... that has nothing to do with the ULX target but only with the chat... let me guess. your using Hats Chat2 or something.

Anyway a good way to test this is make a group inheriting from superadmin and name this Test ( you will need 2 people for this ) set the can target to "*" and the superadmin target to "!%test" or "!%Test" ( what ever the name of the test group is ) and if you can grab the test usergroup from superadmin then i cant help anymore... ( not that i don't care but i have no idea whats happening ) if you can not target the test good!

If you can not target the test usergroup then rename it co-owner or something... play around with this a little

Offline Caustic Soda-Senpai

  • Sr. Member
  • ****
  • Posts: 469
  • Karma: 54
  • <Insert something clever here>
    • Steam Page
Re: Low ranks can target higher ranks
« Reply #8 on: February 04, 2015, 03:08:38 PM »
Or you could do what's recommended and not add "owner" groups...

But have multiple users and test if you can pick each other up
Once you get to know me, you'll find you'll have never met me at all.