• best way of disabling concommands?
    6 replies, posted
I'm currently trying to code an anti cheat, and i want to override the lua_openscript_cl command to ban anyone trying to use it. how would you go about doing this?
You can't remove non-Lua console commands or convars.
[QUOTE=Robotboy655;48426475]You can't remove non-Lua console commands or convars.[/QUOTE] alright. how should I got about doing this then, where if someone enters that into console, it auto bans them?
You can't. sv_allowcslua 0 prevents the command from being executed.
[QUOTE=Robotboy655;48426562]You can't. sv_allowcslua 0 prevents the command from being executed.[/QUOTE] I'm aware of that, but I want to do this so bypassers(like gDaap, Alexander, etc) are useless.
This calls a hook (ExecuteStringCommand) whenever someone runs a command, I haven't tested it though: [url]https://github.com/MFSiNC/VC/tree/master/gmsv_slog2_win32[/url] [b]Edit:[/b] You can return a bool to block the command aswell
[QUOTE=stev_;48426706]This calls a hook (ExecuteStringCommand) whenever someone runs a command, I haven't tested it though: [url]https://github.com/MFSiNC/VC/tree/master/gmsv_slog2_win32[/url] [b]Edit:[/b] You can return a bool to block the command aswell[/QUOTE] The module you linked is disliked by rtti data & only works for commands which get transfered through net_StringCmd. lua_openscript_cl is not one of them.
Sorry, you need to Log In to post a reply to this thread.