Ulysses
Ulysses Stuff => Suggestions => Topic started 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)
-
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)
-
im talking the second. but without being able to mute admins.
-
ULX already has this capability.
Use can_target as recommended.
-
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?
-
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.
-
ok. i guess its volume don or suck it up then
-
Would this cover your requirement?
https://forums.ulyssesmod.net/index.php?topic=9462.0
-
no not really :P its OK. people stopped being winy
-
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.
-
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.
-
ill try it out with can target