Block a console command?

Is it possible to block a console command? Not just a bound command but rather a command from being run in the server?

Trying to disable HLSS, or HLDJ. They have a new workaround and a lot of people now know about it.

Sure. Just write a script that kicks them when they try to use it.

Easy enough. Initial idea was to run -voicerecord whenever the console command was used, but I forgot that Garry disabled a lot of console commands even with lua. Although I think there is another way to do it…

Place in PlayerSpawn in init.lua
if pl:IsAdmin() or pl:IsSuperAdmin() then Msg(“No block”) else
CreateClientConVar("+voicerecord",“BLOCKED”, true,true)