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

[ANY] Ignore list


Post New Thread Reply   
 
Thread Tools Display Modes
Author
FaTony
Veteran Member
Join Date: Aug 2008
Plugin ID:
3298
Plugin Version:
0.95
Plugin Category:
General Purpose
Plugin Game:
Any
Plugin Dependencies:
Servers with this Plugin:
1 
Plugin Description:
Ignore other client's chat or voice or both.
Old 10-15-2012 , 03:57   [ANY] Ignore list
Reply With Quote #1

Ignore list

This plugin provides a way to ignore other client's chat or voice or both. Requested here. Untested.

Requirements:
ConVars:
  • ftz_ignorelist_version: The version of ignore list.

Client commands:
  • ftz_ignore <#userid|name>: Toggle both chat and voice ignore status.
  • sm_ignore <#userid|name>: Same as above for convenient chat triggers.
  • ftz_ignore_chat <#userid|name>: Toggle the chat ignore status.
  • ftz_ignore_voice <#userid|name>: Toggle the voice ignore status.

Compile requirements:
Known issues:
  • None.

ToDo:
  • Translations and prettier code.

Changelog:
  • 0.95 (23.10.2012): Bug fix.
Attached Files
File Type: sp Get Plugin or Get Source (ftz_ignorelist.sp - 552 views - 4.8 KB)
File Type: smx ftz_ignorelist.smx (10.6 KB, 486 views)
__________________

Last edited by FaTony; 10-23-2012 at 06:04.
FaTony is offline
C0nw0nk
Senior Member
Join Date: May 2011
Location: United Kingdom
Old 10-15-2012 , 08:14   Re: [ANY] Ignore list
Reply With Quote #2

Wow cool idea thanks to valve for the mute key and thanks to you for this <3
__________________
C0nw0nk is offline
Send a message via MSN to C0nw0nk
eric0279
AlliedModders Donor
Join Date: May 2007
Old 10-15-2012 , 09:28   Re: [ANY] Ignore list
Reply With Quote #3

Thanks Tony


but :
Quote:
L 10/15/2012 - 13:59:26: [SM] Plugin encountered error 15: Array index is out of bounds
L 10/15/2012 - 13:59:26: [SM] Displaying call stack trace for plugin "ftz_ignorelist.smx":
L 10/15/2012 - 13:59:26: [SM] [0] Line 49, F:\SRCDS\l4d2\left4dead2\left4dead2\addons\so urcemod\scripting\ftz_ignorelist.sp::OnChatMe ssage()

Last edited by eric0279; 10-15-2012 at 09:31.
eric0279 is offline
FaTony
Veteran Member
Join Date: Aug 2008
Old 10-15-2012 , 10:24   Re: [ANY] Ignore list
Reply With Quote #4

Quote:
Originally Posted by eric0279 View Post
Thanks Tony
but :
Hm, not sure what exactly can be out of bounds. I've released new version which fixes a few bugs unrelated to this one.

EDIT: I've made it so it will check for bounds and if it's a bad value, it will log it into errors log. I'm very curious about this problem, post the output after you've tested it.
__________________

Last edited by FaTony; 10-15-2012 at 10:38.
FaTony is offline
eric0279
AlliedModders Donor
Join Date: May 2007
Old 10-15-2012 , 10:49   Re: [ANY] Ignore list
Reply With Quote #5

Quote:
L 10/15/2012 - 16:44:14: [SM] Plugin encountered error 15: Array index is out of bounds
L 10/15/2012 - 16:44:14: [SM] Displaying call stack trace for plugin "ftz_ignorelist.smx":
L 10/15/2012 - 16:44:14: [SM] [0] Line 53, F:\SRCDS\l4d2\left4dead2\left4dead2\addons\so urcemod\scripting\ftz_ignorelist.sp::OnChatMe ssage()
Line 52 is uncommented... :

Quote:
[DEBUG ftz_ignorelist] client: -618611880, author: 1
eric0279 is offline
FaTony
Veteran Member
Join Date: Aug 2008
Old 10-15-2012 , 11:17   Re: [ANY] Ignore list
Reply With Quote #6

Quote:
Originally Posted by eric0279 View Post
Line 52 is uncommented... :
Can you download the source code of Simple Chat Processor, open it and change line 235 from:
PHP Code:
new Handle:cpRecipients CreateArray(11); 
to:
PHP Code:
new Handle:cpRecipients CreateArray(); 
then compile locally and report back?
__________________
FaTony is offline
eric0279
AlliedModders Donor
Join Date: May 2007
Old 10-15-2012 , 12:45   Re: [ANY] Ignore list
Reply With Quote #7

So, here are the tests:

Code:
ftz_ignore Black
returns:
Quote:
[SM] More than one client matched the given filter.
test only with bots (Francis, Louis and Zoey)

Code:
ftz_ignore BlackLagon or ftz_ignore <userid>
returns:
Quote:
[SM] More than one client matched the given filter.
(2 bots and 2 players)

No error Effective change >> new Handle:cpRecipients = CreateArray();

Last edited by eric0279; 10-15-2012 at 12:51.
eric0279 is offline
FaTony
Veteran Member
Join Date: Aug 2008
Old 10-15-2012 , 13:18   Re: [ANY] Ignore list
Reply With Quote #8

Quote:
Originally Posted by eric0279 View Post
So, here are the tests:

Code:
ftz_ignore Black
returns:
*facepalm* Forgot GetCmdArg. Fixed.

Quote:
Originally Posted by eric0279 View Post
No error Effective change >> new Handle:cpRecipients = CreateArray();
Does this mean that out of bounds error has been fixed?
__________________
FaTony is offline
eric0279
AlliedModders Donor
Join Date: May 2007
Old 10-15-2012 , 13:38   Re: [ANY] Ignore list
Reply With Quote #9

yes of bounds has been fixed.

plugin work's but ftz_ignore <userid> return :
[SM] Aucun Client correspondant trouvé.
eric0279 is offline
Sreaper
髪を用心
Join Date: Nov 2009
Old 10-15-2012 , 13:46   Re: [ANY] Ignore list
Reply With Quote #10

Can you please also add an option to ignore a clients voice but not the chat?
And possibly add an option to prevent admins from being ignored?

Last edited by Sreaper; 10-15-2012 at 13:47.
Sreaper 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 22:31.


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