AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Plugins (https://forums.alliedmods.net/forumdisplay.php?f=108)
-   -   [ANY] Ignore list (https://forums.alliedmods.net/showthread.php?t=198385)

FaTony 10-15-2012 03:57

[ANY] Ignore list
 
2 Attachment(s)
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.

C0nw0nk 10-15-2012 08:14

Re: [ANY] Ignore list
 
Wow cool idea :D thanks to valve for the mute key and thanks to you for this <3

eric0279 10-15-2012 09:28

Re: [ANY] Ignore list
 
Thanks Tony :P


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()

FaTony 10-15-2012 10:24

Re: [ANY] Ignore list
 
Quote:

Originally Posted by eric0279 (Post 1819315)
Thanks Tony :P
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.

eric0279 10-15-2012 10:49

Re: [ANY] Ignore list
 
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

FaTony 10-15-2012 11:17

Re: [ANY] Ignore list
 
Quote:

Originally Posted by eric0279 (Post 1819351)
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?

eric0279 10-15-2012 12:45

Re: [ANY] Ignore list
 
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();

FaTony 10-15-2012 13:18

Re: [ANY] Ignore list
 
Quote:

Originally Posted by eric0279 (Post 1819409)
So, here are the tests:

Code:

ftz_ignore Black
returns:

*facepalm* Forgot GetCmdArg. Fixed.

Quote:

Originally Posted by eric0279 (Post 1819409)
No error Effective change >> new Handle:cpRecipients = CreateArray();

Does this mean that out of bounds error has been fixed?

eric0279 10-15-2012 13:38

Re: [ANY] Ignore list
 
yes of bounds has been fixed.

plugin work's but ftz_ignore <userid> return :
[SM] Aucun Client correspondant trouvé.

Sreaper 10-15-2012 13:46

Re: [ANY] Ignore list
 
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?


All times are GMT -4. The time now is 11:02.

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