I want users to be able to use the ULX commands !god and !ungod to enable/disable god mode on themselves.
In order to prevent abuse, I must set the user's target group to ^ in order for them to not be able to change the god mode state of other players, for example to prevent player1 from typing "[B]!ungod player2[/B]".
This creates an issue, because now the users can't target other players with [B]!votekick[/B].
So the question is if it's possible to enable group targetting allowance [B]per command[/B]?
Like, I want users to be able to use !god and !ungod on only themselves, but I want them to be able to !votekick others.
Yes, there is an "Ignore can_target" flag you can set on the access tag for a specific command that will ignore the group's can_target field, which you can set in XGUI like so:
[img]http://ulyssesmod.net/xgui/ignore_can_target.png[/img]
This states that admins can only target themselves when using "ulx god", no matter what is set on the admin group's can_target field.
You can also use $ as the "Ignore can_target" flag to add it via command line, like so:
[code]
ulx groupallow admin "ulx god" "$^"
(Console) granted access "ulx god" with tag "$^" to group admin
[/code]
Aah, thank you!
That was extremely hard to miss, I didn't realise the "restrict player(s)" menu expanded.
Sorry, you need to Log In to post a reply to this thread.