Author Topic: HeadAdmin can pickup Superadmin.  (Read 5775 times)

0 Members and 1 Guest are viewing this topic.

Offline BobikHere

  • Newbie
  • *
  • Posts: 13
  • Karma: -2
HeadAdmin can pickup Superadmin.
« on: March 14, 2015, 07:15:55 AM »
Hey guys , I've tryed to use:  ulx setgroupcantarget headadmin "!%superadmin" but the head admin can still pick up superadmins. (Headadmin is lower then Superadmin) Any ideas?

Thanks!

Offline Darkblizzard

  • Newbie
  • *
  • Posts: 39
  • Karma: 1
Re: HeadAdmin can pickup Superadmin.
« Reply #1 on: March 14, 2015, 08:08:21 AM »
Is the group name Superadmin or superadmin? It could be because of case sensitive.

Offline BobikHere

  • Newbie
  • *
  • Posts: 13
  • Karma: -2
Re: HeadAdmin can pickup Superadmin.
« Reply #2 on: March 14, 2015, 09:51:06 AM »
It's superadmin in ULX.

Offline lynx

  • Jr. Member
  • **
  • Posts: 59
  • Karma: 15
Re: HeadAdmin can pickup Superadmin.
« Reply #3 on: March 14, 2015, 01:56:57 PM »
Make sure in permissions that ulx pickupplayer for headadmin isn't set to target * on its own. If not, change that command to target !%superadmin explicitly

Offline BobikHere

  • Newbie
  • *
  • Posts: 13
  • Karma: -2
Re: HeadAdmin can pickup Superadmin.
« Reply #4 on: March 14, 2015, 02:06:29 PM »
I already set the headadmins promisions to !%superadmin. Yet he can still pick up the superadmin.

Offline BobikHere

  • Newbie
  • *
  • Posts: 13
  • Karma: -2
Re: HeadAdmin can pickup Superadmin.
« Reply #5 on: March 14, 2015, 02:22:08 PM »
Make sure in permissions that ulx pickupplayer
Where can I edit it? I'm pritty sure you can't edit it in Groups/headadmin/Manage Promisions/other/ulx physgunplayer

Offline lynx

  • Jr. Member
  • **
  • Posts: 59
  • Karma: 15
HeadAdmin can pickup Superadmin.
« Reply #6 on: March 14, 2015, 04:12:16 PM »
In console do this:

ulx groupallow HeadAdmin"ulx pickupplayer" "$!%superadmin"

I believe that should work

Offline BobikHere

  • Newbie
  • *
  • Posts: 13
  • Karma: -2
Re: HeadAdmin can pickup Superadmin.
« Reply #7 on: March 14, 2015, 05:33:47 PM »
Yeah , Still no success. This is what it said in chat : You granted access "ulx pickupplayer" with tag "$!%superadmin" to group headadmin , or tryed to put in "!%superadmin" without ($). None worked.

Offline Decicus

  • Hero Member
  • *****
  • Posts: 552
  • Karma: 81
    • Alex Thomassen
Re: HeadAdmin can pickup Superadmin.
« Reply #8 on: March 14, 2015, 06:11:59 PM »
Make sure your inheritance tree is correct.
In this case, I suppose "superadmin" would have to inherit from "headadmin" (and "headadmin" from "admin" or whatever).
Contact information:
E-mail: alex@thomassen.xyz.
You can also send a PM.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: HeadAdmin can pickup Superadmin.
« Reply #9 on: March 14, 2015, 07:22:08 PM »
Ok, perhaps it's new, but, I don't think we use a dollar sign in our can_target specifications.
(You used $!%superadmin in your example lynx - we only use $<id> for targeting specific player ids.)
But, as you tried without, I too believe your inheritance tree is the issue.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline lynx

  • Jr. Member
  • **
  • Posts: 59
  • Karma: 15
Re: HeadAdmin can pickup Superadmin.
« Reply #10 on: March 14, 2015, 11:09:08 PM »
Ok, perhaps it's new, but, I don't think we use a dollar sign in our can_target specifications.
(You used $!%superadmin in your example lynx - we only use $<id> for targeting specific player ids.)
But, as you tried without, I too believe your inheritance tree is the issue.

I was on my phone doing that, and was looking up command syntax using google. Went off this thread and misread it (ie the fun fact.)

Offline BobikHere

  • Newbie
  • *
  • Posts: 13
  • Karma: -2
Re: HeadAdmin can pickup Superadmin.
« Reply #11 on: March 15, 2015, 05:19:58 AM »
Alright , So after fixing the Inherits tree. moderator inherites from user can target : !%admin (no issue with that rank) , admin inherites from moderator can target !%headadmin,!%superadmin (no issue , cant pick up headadmins nor superadmins) , headadmin inherites from admin can target !%superadmin (can still pick up superadmins) superadmin inherites from headadmin can target *.

Offline lynx

  • Jr. Member
  • **
  • Posts: 59
  • Karma: 15
Re: HeadAdmin can pickup Superadmin.
« Reply #12 on: March 15, 2015, 07:26:16 AM »
Since SA inherits from HeadAdmin you don't need to have admins split target, just doing !%headadmin should work so they can't pickup SA.

Go ahead and run the following command and upload the results:

ulx debuginfo

It will output a file called debuginfo.txt into data/ulx (I believe.) Upload that and we'll take a look at what may be causing it.

Offline JamminR

  • Ulysses Team Member
  • Hero Member
  • *****
  • Posts: 8096
  • Karma: 390
  • Sertafide Ulysses Jenius
    • Team Ulysses [ULib/ULX, other fine releases]
Re: HeadAdmin can pickup Superadmin.
« Reply #13 on: March 15, 2015, 08:55:59 AM »
Just wanted to throw out there we've seen other gamemodes and addons conflict with physgun.
Just search "physgun" in the General Help and Support and Off Topic sections of the forum to see.
"Though a program be but three lines long, someday it will have to be maintained." -- The Tao of Programming

Offline BobikHere

  • Newbie
  • *
  • Posts: 13
  • Karma: -2
Re: HeadAdmin can pickup Superadmin.
« Reply #14 on: March 16, 2015, 08:48:30 AM »
Here you go! Sorry for the wait time.

Code: [Select]
ULX version: <SVN> unknown revision
ULib version: 2.52
Gamemode: DarkRP
Map: gm_flatgrass
Dedicated server: true

Currently connected players:
Nick                            steamid            uid        id lsh


ULib.ucl.users (#=3):
STEAM_0:1:40373292:
deny:
allow:
name = BobikHere #SMFC
group = superadmin
STEAM_0:1:24916910:
deny:
allow:
name = PutNomi
group = admin
STEAM_0:1:88478056:
allow:
name = Rarely
deny:
group = headadmin


ULib.ucl.groups (#=9):
member:
allow:
1 = ulx who
inherit_from = user
user:
allow:
1 = ulx asay
2 = ulx help
3 = ulx motd
4 = ulx psay
5 = ulx thetime
6 = ulx usermanagementhelp
moderator:
allow:
1 = awarn_remove
2 = awarn_view
3 = awarn_warn
4 = ulx ban
5 = ulx banid
6 = ulx bring
7 = ulx gag
8 = ulx goto
9 = ulx kick
10 = ulx mute
11 = ulx noclip
12 = ulx return
13 = ulx ungag
14 = ulx unmute
15 = ulx voteban
16 = ulx votekick
can_target = !%admin
inherit_from = user
admin:
can_target = !%headadmin,!%superadmin
allow:
1 = awarn_remove
2 = awarn_view
3 = awarn_warn
4 = ulx armor
5 = ulx ban
6 = ulx blind
7 = ulx bring
8 = ulx chattime
9 = ulx cloak
10 = ulx csay
11 = ulx freeze
12 = ulx gag
13 = ulx gimp
14 = ulx god
15 = ulx goto
16 = ulx hp
17 = ulx ignite
18 = ulx jail
19 = ulx jailtp
20 = ulx kick
21 = ulx kickafternamechanges
22 = ulx kickafternamechangescooldown
23 = ulx kickafternamechangeswarning
24 = ulx map
25 = ulx mute
26 = ulx noclip
27 = ulx physgunplayer
28 = ulx playsound
29 = ulx ragdoll
30 = ulx return
31 = ulx send
32 = ulx showmotd
33 = ulx slap
34 = ulx slay
35 = ulx spawnecho
36 = ulx spectate
37 = ulx sslay
38 = ulx strip
39 = ulx teleport
40 = ulx tsay
41 = ulx unban
42 = ulx unblind
43 = ulx uncloak
44 = ulx unfreeze
45 = ulx ungag
46 = ulx ungimp
47 = ulx ungod
48 = ulx unignite
49 = ulx unigniteall
50 = ulx unjail
51 = ulx unmute
52 = ulx unragdoll
53 = ulx vote
54 = ulx voteban
55 = ulx votebanminvotes
56 = ulx votebansuccessratio
57 = ulx votekick
58 = ulx welcomemessage
59 = ulx whip
inherit_from = moderator
guest:
allow:
inherit_from = user
donator:
allow:
1 = ulx reservedslots
2 = ulx votekick
3 = ulx who
ulx voteban = * :1h
inherit_from = user
superadmin:
allow:
1 = awarn_delete
2 = awarn_options
3 = ulx addgroup
4 = ulx adduser
5 = ulx adduserid
6 = ulx allfires
7 = ulx banid
8 = ulx cexec
9 = ulx ent
10 = ulx exec
11 = ulx groupallow
12 = ulx groupdeny
13 = ulx hiddenecho
14 = ulx logchat
15 = ulx logdir
16 = ulx logecho
17 = ulx logechocolorconsole
18 = ulx logechocolordefault
19 = ulx logechocoloreveryone
20 = ulx logechocolormisc
21 = ulx logechocolorplayer
22 = ulx logechocolorplayerasgroup
23 = ulx logechocolors
24 = ulx logechocolorself
25 = ulx logevents
26 = ulx logfile
27 = ulx logjoinleaveecho
28 = ulx logspawns
29 = ulx logspawnsecho
30 = ulx luarun
31 = ulx maul
32 = ulx rcon
33 = ulx removegroup
34 = ulx removeuser
35 = ulx removeuserid
36 = ulx renamegroup
37 = ulx reservedslots
38 = ulx rslots
39 = ulx rslotsmode
40 = ulx rslotsvisible
41 = ulx seeanonymousechoes
42 = ulx seeasay
43 = ulx setgroupcantarget
44 = ulx stopvote
45 = ulx userallow
46 = ulx userallowid
47 = ulx userdeny
48 = ulx userdenyid
49 = ulx veto
50 = ulx voteecho
51 = ulx votekickminvotes
52 = ulx votekicksuccessratio
53 = ulx votemap
54 = ulx votemap2
55 = ulx votemap2minvotes
56 = ulx votemap2successratio
57 = ulx votemapenabled
58 = ulx votemapmapmode
59 = ulx votemapmintime
60 = ulx votemapminvotes
61 = ulx votemapsuccessratio
62 = ulx votemapvetotime
63 = ulx votemapwaittime
64 = ulx who
65 = xgui_gmsettings
66 = xgui_managebans
67 = xgui_managegroups
68 = xgui_svsettings
inherit_from = headadmin
trailadmin:
can_target = !%moderator
allow:
1 = awarn_remove
2 = awarn_warn
3 = ulx kick
4 = ulx seeasay
ulx banid = * 0:1d
ulx ban = * :1d
inherit_from = user
headadmin:
allow:
1 = awarn_delete
2 = awarn_options
3 = ulx allfires
4 = ulx extinguisher
5 = ulx fireoff
6 = ulx forcefirefighter
7 = ulx maul
8 = ulx molotov
9 = ulx startfire
10 = ulx validfires
11 = ulx who
ulx pickupplayer = !%superadmin
can_target = !%superadmin
inherit_from = admin


ULib.ucl.authed (#=0):


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


Active legacy addons on this server:
CSS_Content_Addon-Jan2015 by Kajar9, version 6 (7. January 2015)
DarkRP Bank Robbery System by Crap-Head, version 1 (2013)
DarkRP Fire System       by Crap-Head, version 1 (2013)
DarkRP Fire System - Weapons DLC by Crap-Head, version 1 (2013)
DarkRP Modification addon by FPtje, version 1 (00/00/00)
DarkRP_Defibrillator     by Kunit, version nil (nil)
NPC Example              by Author Name, version nil (nil)
TG CoinShop              by Author Name, version nil (nil)
TG PoliceShop            by Author Name, version nil (nil)
Terrific Gaming Content Pack by Author Name, version nil (nil)
awarn2                   by Mr.President, version 1.7 (nil)
cuffs                    by my_hat_stinks, version 1 (nil)
customHQ-rewards         by nil, version nil (nil)
customhq-stungun         by nil, version nil (nil)
doorlink                 by RocketMania, version 1.2 ()
etg_attachments          by EthanTheGreat, version 1.0.0 ()
pointshop-master         by nil, version nil (nil)
rpnpcs                   by Barel, version 2 (nil)
ulib                     by Team Ulysses, version 2.5199 (03/09/15)
ulx                      by Team Ulysses, version 3.6199 (03/09/15)
utime                    by Megiddo (Team Ulysses), version 1.4199 (01/27/13)

Edit by Megiddo: Added code blocks.
« Last Edit: March 18, 2015, 04:09:48 PM by Megiddo »