General > Developers Corner

Can user target group?

<< < (2/2)

Caustic Soda-Senpai:
I just assumed he wanted an admin check since he asked


--- Quote --- 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.
--- End quote ---

end360:
I noticed the getGroupCanTarget, but it returns it as the !%admin and stuff, is there any way i can convert that into a list of ranks or should i just compare it against a table of ranks? The IsAdmin wont work because some of the groups dont inherit from an admin group.

Professor_Smiley:
Disable the mute command for guest/member/user. Just remove the permission
Keep the mute command permission for admin.

Now I believe that the user cannot mute anyone, only admins can.

roastchicken:
The best way to do this is just having the panel run a ULX command. This will handle all the targeting for you, so you don't have to copy ULib's code for same purpose.

Navigation

[0] Message Index

[*] Previous page

Go to full version