Hello There, Guest!   Inicia Sesion Login Registrate Register La Hora Current time: 6-3-26, 10:25 PM
Login
Username/Email:
Password:
Lost Password?
 
Lenny Face Gaming Forums
  • [ ] Portal
  • [ ] Forum
  • [ ] Members
  • [ ] Calendar
  • [ ] Help
  • Steam Group
  • GameTracker
  • Youtube
Donations | Server List | Admin List | Bans | Praise The Overlord!
Home Lenny Face Gaming Forums › Lenny Face Gaming › Server Chat › Server Suggestions v
« Previous 1 … 37 38 39 40 41 … 48 Next »

Prop hunt mute command clientside
Threaded Mode
Prop hunt mute command clientside
« Next Oldest | Next Newest »
Views 6997
Replies 5
Thread Closed 
Users browsing this thread:
BLACKROOSTER73 Offline
The Dankest Rooster
***
Beginner (6)
Posts: 180
Threads: 33
Thanks: 3 in 3 posts
Thanks Given: 6
Joined: Jun 2016
Warning Level: 0%
gmod_donator_premium
Member
#1
Heart  7-17-16, 12:05 AM
this code makes it where players can client side mute players. instead of having to do a line in the console to mute all.

here is the code. not mine but useful


-- Mute Voice Player Locally.
-- I know this may differs from 'gag' and 'mute', this one however will helps users if there is no admin
-- to make sure they can mute those noisy players by themselves.

-- Additional notes:
-- You can customize admin types here.

function ulx.MutePlayers(calling_ply, target_ply)
-- I am not lazy, maybe you can enhance by yourself.
if target_ply:IsAdmin() or target_ply:IsSuperAdmin() or target_ply:IsUserGroup("Moderator") or target_ply:IsUserGroup("owner") or target_ply:IsUserGroup("VIP") then
calling_ply:ChatPrint("Sorry, You cannot mute Admin or Moderator!")
else
net.Start("MuteInfo")
net.WriteEntity(target_ply)
net.Send(calling_ply)
end

if target_ply == nil then
ulx.fancyLogAdmin( calling_ply, "Error: Player was not found." )
end
end
local mutes_ply = ulx.command( "Mute Player", "ulx mutes", ulx.MutePlayers, "!mutes" )
mutes_ply:addParam{ type=ULib.cmds.PlayerArg }
mutes_ply:defaultAccess( ULib.ACCESS_ALL )
mutes_ply:help( "Toggles mute player\'s voice locally.\nNote: You cannot mute Admin or Moderators!" )
idea
(4 votes total)
good idea
4 (100.0%)
bad idea
0 (0%)

[Image: e7fc220e8dc068ef7c888a529db75ddd.png]
[Image: 76561198070609346.png]
[+]
  •
Find
SaintLuther Offline
Administrator
*******
Legendary (1147)
Posts: 9,413
Threads: 91
Thanks: 1,063 in 805 posts
Thanks Given: 75
Joined: Dec 2014
Warning Level: 0%
Administrators
#2
7-17-16, 02:48 PM
Or something like this would be (a little) sleeker: https://steamcommunity.com/sharedfiles/f...=121261431
[+]
  •
Website Find
Zellogi Offline
Indie Game Dev
***
Legendary (301)
Posts: 2,416
Threads: 65
Thanks: 252 in 214 posts
Thanks Given: 47
Joined: Dec 2015
Warning Level: 0%
gmod_donator_premium
Member
#3
7-17-16, 03:36 PM
Yeah, can we get this on all servers that don't have a clientside mute? Sometimes you just don't wanna hear certain people, and quite a few servers don't have the option to just mute 1-2 people, it's either all or none. So this shouldn't just be added to Prop Hunt, but to all servers that don't have something like this. The only one I can think of that has a clientside mute is Sandbox...
[+]
  •
Find
SaintLuther Offline
Administrator
*******
Legendary (1147)
Posts: 9,413
Threads: 91
Thanks: 1,063 in 805 posts
Thanks Given: 75
Joined: Dec 2014
Warning Level: 0%
Administrators
#4
7-17-16, 03:41 PM
@Zellogi AFAIK Prop Hunt is the only server that doesn't have mute
[+]
  •
Website Find
BLACKROOSTER73 Offline
The Dankest Rooster
***
Beginner (6)
Posts: 180
Threads: 33
Thanks: 3 in 3 posts
Thanks Given: 6
Joined: Jun 2016
Warning Level: 0%
gmod_donator_premium
Member
#5
7-17-16, 04:50 PM
@SaintLuther im down for what ever you want. do it bby
[Image: e7fc220e8dc068ef7c888a529db75ddd.png]
[Image: 76561198070609346.png]
[+]
  •
Find
Zellogi Offline
Indie Game Dev
***
Legendary (301)
Posts: 2,416
Threads: 65
Thanks: 252 in 214 posts
Thanks Given: 47
Joined: Dec 2015
Warning Level: 0%
gmod_donator_premium
Member
#6
7-18-16, 10:10 PM
Just checked on deathrun and unless it's handled differently than Sandbox, there't no clientside mute on there.
[+]
  •
Find
« Next Oldest | Next Newest »
Thread Closed 


  • View a Printable Version
  • Subscribe to this thread
Forum Jump:

  • Contact Us
  • Lenny Face Gaming Forums
  • Return to Top
  • Lite (Archive) Mode
  • Mark all forums read
  • RSS Syndication