this is useless
im bored so i made this
type in console muteplayer playername to mute them
Code:
//Mute// local function findPlayer( name ) name = string.lower( name ) for k,v in pairs( player.GetAll() ) do if string.lower( v:SteamID() ) == name then return v end if string.lower( v:UniqueID() ) == name then return v end local nick = string.lower( v:Nick() ) if string.find( nick, name ) then return v end if v.SteamName then local sname = string.lower( v:SteamName() ) if string.find( sname, name ) then return v end end end end local function mutePlayer( ply, cmd, args ) if args[1] then if findPlayer( args[1] ) then local target = findPlayer( args[1] ) target:SetMuted( !target:IsMuted() ) local color = Color( 0, 255, 0 ) local msgText = "unmuted" if target:IsMuted() then color = Color( 255, 0, 0 ) msgText = "muted" end MsgC( color, target:Nick() .. " has been " .. msgText .. ".\n" ) end end end concommand.Add( "muteplayer", mutePlayer )

