Raised This Month: $32 Target: $400
 8% 

Hook console say command?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mario AR.
Senior Member
Join Date: May 2011
Location: Lima, Perú
Old 10-30-2020 , 16:52   Hook console say command?
Reply With Quote #1

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:
register_clcmd("say"
register_srvcmd("say"
register_concmd("say
register_message(get_user_msgid("
SayText")
register_message(get_user_msgid("
TextMsg") 
Is there a way to achieve what I want? I'm using ReHLDS + ReAPI.

Thanks!
Mario AR. is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 10-30-2020 , 22:23   Re: Hook console say command?
Reply With Quote #2

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.
__________________
fysiks is offline
Mario AR.
Senior Member
Join Date: May 2011
Location: Lima, Perú
Old 10-31-2020 , 03:04   Re: Hook console say command?
Reply With Quote #3

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).
Mario AR. is offline
JocAnis
Veteran Member
Join Date: Jun 2010
Old 10-31-2020 , 07:59   Re: Hook console say command?
Reply With Quote #4

maybe possible with orpheu (DarkPL sent sources long time ago) but not sure of just catching the message or + to delete it
__________________
KZ Public Autocup - PrimeKZ

My blog: http://primekz.xyz (in progress...) - not active (dec 2022)
JocAnis is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 19:12.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode