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…

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

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

Maybe even look into Cvars.AddChangeCallback