Author Topic: Can user target group?  (Read 2281 times)

0 Members and 2 Guests are viewing this topic.

Offline end360

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Can user target group?
« on: October 18, 2015, 04:17:20 PM »
Is there a built in function to see if a specific user can target a group? I actually need to see if they can't. I want to make it so say an operator can't mute an admin but the admin could mute the operator.

Offline Caustic Soda-Senpai

  • Sr. Member
  • ****
  • Posts: 469
  • Karma: 54
  • <Insert something clever here>
    • Steam Page
Re: Can user target group?
« Reply #1 on: October 18, 2015, 07:27:23 PM »
In the Manage groups portion of the groups tab, you need to set operator's target to !%admin
Once you get to know me, you'll find you'll have never met me at all.

Offline end360

  • Newbie
  • *
  • Posts: 5
  • Karma: 0
Re: Can user target group?
« Reply #2 on: October 18, 2015, 07:55:23 PM »
Yes i know that, but I need a way in lua to tell if the specific user can target a group. It's for a mute list in VGUI and I don't want a guest/member to be able to mute an admin but at the same time to allow the admin to mute them. (All clientside)

An Error Has Occurred!

array_keys(): Argument #1 ($array) must be of type array, null given