AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Scripting Help (https://forums.alliedmods.net/forumdisplay.php?f=11)
-   -   Hooking buildin rcon commands, specially rcon say (https://forums.alliedmods.net/showthread.php?t=107209)

[Godmin] Gonzo 10-24-2009 05:19

Hooking buildin rcon commands, specially rcon say
 
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 :)

Hawk552 10-24-2009 11:54

Re: Hooking buildin rcon commands, specially rcon say
 
Try hooking client_command().

ConnorMcLeod 10-24-2009 13:27

Re: Hooking buildin rcon commands, specially rcon say
 
Strange that neither SayText nor TextMsg are sent.

Neither FM_ServerPrint (called after client chat), nor FM_AlertMessage but those messages are logged though.

[Godmin] Gonzo 10-25-2009 11:07

Re: Hooking buildin rcon commands, specially rcon say
 
Quote:

Originally Posted by Hawk552 (Post 970792)
Try hooking client_command().

This doesn't work. Neither for rcon Commands by players, nor by e.g. hlsw. It's not called.


All times are GMT -4. The time now is 17:38.

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