how to block hldj and hlss

how do I block people on my server from playing sounds with hldj and hlss.

With a ban.

maybe just mute em…

[lua]
local function BlockVoice( ply, bind, pressed )
if string.find( bind, “voicerecord” ) then
if GetConVar(“voice_inputfromfile”):GetInt() == 1 then return true end
end
end
hook.Add(“PlayerBindPress”, “BYPASSTHIS”…math.random(0, 1000), BlockVoice)
[/lua]

Stop’s noobs and script kiddies. Can still be bypassed but not as easily.

Maybe even look into Cvars.AddChangeCallback