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

Hooking say and say_team


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Mlk27
Veteran Member
Join Date: May 2008
Old 11-20-2010 , 21:32   Hooking say and say_team
Reply With Quote #1

Any idea how to catch all say and say_team chat messages which are not being blocked by return plugin_handled?
Mlk27 is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 11-20-2010 , 21:42   Re: Hooking say and say_team
Reply With Quote #2

Code:
register_clcmd("say", "cmd")
register_clcmd("say_team", "cmd")
__________________
fysiks is offline
Old 11-20-2010, 22:58
shadow.hk
This message has been deleted by shadow.hk.
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 11-21-2010 , 04:16   Re: Hooking say and say_team
Reply With Quote #3

PHP Code:
register_event("SayText""Event_SayText_Chat""bc""2&#Cstrike_Chat_"
PHP Code:
public Event_SayText_ChatiReceiver )
{
    new 
iSender read_data(1)
    new 
szMessage[256]
    
read_data(4szMessagecharsmax(szMessage))


What are you trying to do ?


If you use fysiks way, then you have to declare your plugin at the bottom of plugins.ini (and make sure there is not any plugins-XXX.ini in configs folder).


My way catch chat that is not blocked by plugin via PLUGIN_HANDLED or PLUGIN_HANDLED_MAIN
fysiks way will also catch chat blocked with PLUGIN_HANDLED_MAIN.
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 11-21-2010 at 04:20.
ConnorMcLeod is offline
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 04:44.


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