Ulysses

Ulysses Stuff => Suggestions => Topic started by: Undercover Orange on June 30, 2016, 11:41:27 PM

Title: Client Mute
Post by: Undercover Orange on June 30, 2016, 11:41:27 PM
I have people on my server who complain cause people are talking im wondering if its possible to make a command that allows them mute all/some players (preferably not admins and above)
Title: Re: Client Mute
Post by: roastchicken on July 01, 2016, 02:47:01 AM
Do you want a command like ULX's !mute, where it mutes the targeted player(s) for everyone, or do you want a command that only mutes the targeted player(s) for the player who ran the command?

The first option can be accomplished by setting can_target. I'll go figure out how that works again now, and report back.

edit: If you want to prevent users from muting admins and above (assuming "above" groups inherit from admin), set can_target to !%admin.
Stickly Man! also made a post about it: http://forums.ulyssesmod.net/index.php/topic,5346.0.html (http://forums.ulyssesmod.net/index.php/topic,5346.0.html)

For the second option, you're going to need a custom command. I think there's a Garry's Mod function to mute someone client side, so that shouldn't be too difficult.

edit: (http://wiki.garrysmod.com/favicon.ico) Player:SetMuted (http://wiki.garrysmod.com/page/Player/SetMuted)
Title: Re: Client Mute
Post by: Undercover Orange on July 01, 2016, 11:40:21 AM
im talking the second. but without being able to mute admins.
Title: Re: Client Mute
Post by: JamminR on July 01, 2016, 10:17:50 PM
ULX already has this capability.
Use can_target as recommended.
Title: Re: Client Mute
Post by: Undercover Orange on July 01, 2016, 11:47:05 PM
ULX already has this capability.

so it doesnt mute that person for everyone? if not why would it be only available to admins and above when first installed?
also how exactly does can target work? if i type admin does that mean they can target admins or only whats below admin?
Title: Re: Client Mute
Post by: JamminR on July 02, 2016, 07:05:28 AM
My apologies. I now understand what you are asking.
You want a player to have a "Ignore this player" command.
No, ULX does not have that ability, but as stated by Roastchicken, is likely already in Gmod (sorry, I don't know where)

Roastchicken has already answered your question. See his referenced link for how can_target works.
Unfortunately, the default Gmod mute command would not prevent a player from doing what you wish it not to do, mute admins.
Title: Re: Client Mute
Post by: Undercover Orange on July 02, 2016, 03:09:31 PM
ok. i guess its volume don or suck it up then
Title: Re: Client Mute
Post by: Buzzkill on July 03, 2016, 09:13:31 PM
Would this cover your requirement?

https://forums.ulyssesmod.net/index.php?topic=9462.0
Title: Re: Client Mute
Post by: Undercover Orange on July 05, 2016, 12:59:43 AM
no not really   :P its OK. people stopped being winy
Title: Re: Client Mute
Post by: Buzzkill on July 05, 2016, 10:29:21 PM
Guess I'm not sure what the original request was, then.  You had asked for the ability to allow players to mic mute other players (presumably for gamemodes that don't already provide that functionality in the scoreboard).  That's precisely what that addon does.
Title: Re: Client Mute
Post by: roastchicken on July 06, 2016, 12:49:34 AM
Guess I'm not sure what the original request was, then.  You had asked for the ability to allow players to mic mute other players (presumably for gamemodes that don't already provide that functionality in the scoreboard).  That's precisely what that addon does.

It might be because he wants to be able to restrict it to target only non-admins. Although that could be accomplished with can_target.
Title: Re: Client Mute
Post by: Undercover Orange on July 06, 2016, 09:18:14 PM
ill try it out with can target