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

Catching Server Messages and Blocking Them


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
SamuraiBarbi
Senior Member
Join Date: Aug 2006
Location: United States
Old 09-03-2007 , 16:32   Catching Server Messages and Blocking Them
Reply With Quote #1

I was wondering, how would I go about catching server messages like "Ringo is joining the Terrorist Force" and "John has the game" and preventing them from being displayed in chat at all?
SamuraiBarbi is offline
Send a message via AIM to SamuraiBarbi Send a message via MSN to SamuraiBarbi Send a message via Yahoo to SamuraiBarbi
Extreme_One
Veteran Member
Join Date: Nov 2006
Old 09-03-2007 , 17:03   Re: Catching Server Messages and Blocking Them
Reply With Quote #2

Clients can choose to filter these messages.

Would you want to enforce this kind of filtering?
__________________
Extreme_One is offline
SamuraiBarbi
Senior Member
Join Date: Aug 2006
Location: United States
Old 09-03-2007 , 17:09   Re: Catching Server Messages and Blocking Them
Reply With Quote #3

yes i would. it's mostly because the plugin i'm working on is going to involve players changing teams frequently, combined with the fact that i have specific messages that will be displayed by the plugin itself when important events related to changing teams are triggered. how can i enforce filtering of those messages to prevent them?
SamuraiBarbi is offline
Send a message via AIM to SamuraiBarbi Send a message via MSN to SamuraiBarbi Send a message via Yahoo to SamuraiBarbi
dalto
Veteran Member
Join Date: Jul 2007
Old 09-03-2007 , 18:20   Re: Catching Server Messages and Blocking Them
Reply With Quote #4

Quote:
Originally Posted by SamuraiBarbi View Post
yes i would. it's mostly because the plugin i'm working on is going to involve players changing teams frequently, combined with the fact that i have specific messages that will be displayed by the plugin itself when important events related to changing teams are triggered. how can i enforce filtering of those messages to prevent them?
Hook player_team and return Plugin_Handled
dalto is offline
sumguy14
Senior Member
Join Date: Apr 2006
Old 09-03-2007 , 22:00   Re: Catching Server Messages and Blocking Them
Reply With Quote #5

Hook player_team pre ;)

Use EventHookMode_Pre, then return Plugin_Handled, as dalto said.
__________________
Don't think of them as bugs think of them as unexpected features
sumguy14 is offline
SamuraiBarbi
Senior Member
Join Date: Aug 2006
Location: United States
Old 09-04-2007 , 00:38   Re: Catching Server Messages and Blocking Them
Reply With Quote #6

Thank all of you so much! That was exactly what I needed.
SamuraiBarbi is offline
Send a message via AIM to SamuraiBarbi Send a message via MSN to SamuraiBarbi Send a message via Yahoo to SamuraiBarbi
Fredd
Veteran Member
Join Date: Jul 2007
Old 09-04-2007 , 04:37   Re: Catching Server Messages and Blocking Them
Reply With Quote #7

usermessages.inc for hooking\blocking messages and "meta game" in console to see your game messages
__________________
Need a private coder? AMXX, SourceMOD, MMS? PM me!
Fredd 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 17:55.


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