Hook console say command?
Hi.
I'm trying to hook a 'say' command sent from the server console. None of the methods above seemed to work (they just don't catch it). PHP Code:
Thanks! |
Re: Hook console say command?
As a reminder, register_clcmd() is for client commands which can only be sent by a client so that would never have worked. register_concmd() should catch commands from both the server and the client.
I tried register_srvcmd() on a proper server and it also doesn't hook the say command sent via the server's console. It's possible that the engine handles all known server commands before they will be sent to MetaMod (and therefore AMX Mod X) but I don't know that for sure. I'm not able to hook any other server commands either. It sounds more like you need to describe what you're trying to do and why because maybe there's an alternative method to achieve your goal. |
Re: Hook console say command?
Thanks for your reply.
I'm trying to block EAC (Easy Anti Cheat) from printing text. It sends the rcon command "say ....". I didn't find a way to block rcon commands neither (at least not without changing the rcon password). |
Re: Hook console say command?
maybe possible with orpheu (DarkPL sent sources long time ago) but not sure of just catching the message or + to delete it
|
| All times are GMT -4. The time now is 14:10. |
Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.