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

Best method of hooking 'say' / 'say_team'


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mr.Freeman
Senior Member
Join Date: Nov 2013
Location: Canada
Old 08-23-2017 , 09:56   Best method of hooking 'say' / 'say_team'
Reply With Quote #1

Hey guys,

Quick question, I'm looking for a way to hook say or say_team in order to capture a string of text that the client has typed into chat. It will end up being printed to mysql however if it is easier to post how to capture and print to a log file I can make the necessary changes to work with mysql
__________________
Feel Free to PM me about any questions, I'll do my best to help
Mr.Freeman is offline
WildCard65
Veteran Member
Join Date: Aug 2013
Location: Canada
Old 08-23-2017 , 10:28   Re: Best method of hooking 'say' / 'say_team'
Reply With Quote #2

OnClientSayCommand_Post
__________________
WildCard65 is offline
Mr.Freeman
Senior Member
Join Date: Nov 2013
Location: Canada
Old 08-23-2017 , 16:37   Re: Best method of hooking 'say' / 'say_team'
Reply With Quote #3

Thank you
__________________
Feel Free to PM me about any questions, I'll do my best to help
Mr.Freeman is offline
shanapu
Veteran Member
Join Date: Apr 2015
Location: .de
Old 08-23-2017 , 16:46   Re: Best method of hooking 'say' / 'say_team'
Reply With Quote #4

imho 'Best method '
[Any] Chat-Processor
https://forums.alliedmods.net/showthread.php?p=2448768
__________________
coding & free software
shanapu is offline
yash1441
Senior Member
Join Date: Feb 2015
Location: Illuminati HQ
Old 08-23-2017 , 16:57   Re: Best method of hooking 'say' / 'say_team'
Reply With Quote #5

Quote:
Originally Posted by WildCard65 View Post

Quote:
Originally Posted by shanapu View Post
imho 'Best method '
[Any] Chat-Processor
https://forums.alliedmods.net/showthread.php?p=2448768

Just found some information regarding these 2 types of hooking chat, with OnClientCommandSay and with AddCommandListener (Used by Chat-Processor).
To reduce the number of manual hooks people do on "say" and "say_team"... and more importantly, unlike say and say_team hooks, OnClientSayCommand isn't called for existing hooks registered through RegConsoleCmd (not sure about AddCommandListener).
Source: Powerlord
__________________
yash1441 is offline
Send a message via Skype™ to yash1441
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 06:43.


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