General > Developers Corner

Can user target group?

(1/2) > >>

end360:
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.

Caustic Soda-Senpai:
In the Manage groups portion of the groups tab, you need to set operator's target to !%admin

end360:
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

[0] Board index

Go to full version