Raised This Month: $ Target: $400
 0% 

Good way to hook the chat?


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-14-2011 , 01:27   Re: Good way to hook the chat?
Reply With Quote #7

Yes, because you copy/pasted admin chat color plugin by Arion that has bugs.
Hook say and say_team commands can also be a fine method, you just have to make it a good way, now you know the 2 possible methods.

register_message against register_clcmd :

With register_message you won't have to figure out who should receive or not message because you hook all sent messages, you also directly hook message type (say_team, dead say_team, say, dead say, spectator say).
With register_clcmd you hook the command so you just hook it once but you have to manually send all messages that have to be received by players, you have to figure out teams, alives players etc....

For all those arguments, i personnally prefer register_message method, but both are fine.
I won't discuss specifically your plugin here because it has already be done in your thread.
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 03-14-2011 at 01:33.
ConnorMcLeod is offline
 



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 14:30.


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