Raised This Month: $51 Target: $400
 12% 

Hooking buildin rcon commands, specially rcon say


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
[Godmin] Gonzo
SourceMod Donor
Join Date: Jul 2004
Location: Godmins World
Old 10-24-2009 , 05:19   Hooking buildin rcon commands, specially rcon say
Reply With Quote #1

Is it possible to hook the buildin console commands like the "rcon say"? When I use

register_srvcmd("say", "HandleConSay")

my function seems not to be called. using register_concmd, I don't hook the server-console say either, but instead every say on the server.

If it is possible: how?

Thanks in advance
__________________
[Godmin] Gonzo is offline
Send a message via ICQ to [Godmin] Gonzo
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 10-24-2009 , 11:54   Re: Hooking buildin rcon commands, specially rcon say
Reply With Quote #2

Try hooking client_command().
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 10-24-2009 , 13:27   Re: Hooking buildin rcon commands, specially rcon say
Reply With Quote #3

Strange that neither SayText nor TextMsg are sent.

Neither FM_ServerPrint (called after client chat), nor FM_AlertMessage but those messages are logged though.
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 10-24-2009 at 14:22.
ConnorMcLeod is offline
[Godmin] Gonzo
SourceMod Donor
Join Date: Jul 2004
Location: Godmins World
Old 10-25-2009 , 11:07   Re: Hooking buildin rcon commands, specially rcon say
Reply With Quote #4

Quote:
Originally Posted by Hawk552 View Post
Try hooking client_command().
This doesn't work. Neither for rcon Commands by players, nor by e.g. hlsw. It's not called.
__________________
[Godmin] Gonzo is offline
Send a message via ICQ to [Godmin] Gonzo
Reply



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:37.


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