Originally Posted by Vauff
This solution was ineffective because it would only hook inputs to point_servercommand entities in maps. Maps also have the SendToConsoleServer() VScript function available to them that works the same way as point_servercommand. By detouring IsWhiteListedCmd in the engine, this covers all cases.
There's already a built-in override for this, just make a copy called cfg/gamemode_casual_server.cfg
Yea, this is better than mine.
Sorry for my negligence, that is outdated.
My latest version is also using the way of this.
Just use this.