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

Advanced Chat Blocker v1.1


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   General Purpose        Approver:   Hawk552 (427)
fezh
Veteran Member
Join Date: Dec 2008
Location: BANNED
Old 06-18-2009 , 21:45   Advanced Chat Blocker v1.1
Reply With Quote #1

.: Description :.
This is just a remake of NoChat by AssKicR. I just added more cvars for more functionality.

.: CVARs :.
acb_enabled "1" // Enable/disable the plugin.
acb_message "1" // Enable/disable "not" message while try chatting.
acb_admins_chat "1" // Enable/disable chat only for admins.

.: Changelog :.
Code:
v1.0 - First release.
v1.1 - Included amxmisc.inc instead of creating a stock. Also, replaced PLUGIN_HANDLED by PLUGIN_HANDLED_MAIN.
.: Download :.
Attached Files
File Type: sma Get Plugin or Get Source (advanced_chat_blocker.sma - 2390 views - 746 Bytes)
__________________
"There is no knowledge, that is not power"

Last edited by fezh; 11-14-2009 at 22:05.
fezh is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 06-18-2009 , 21:48   Re: Advanced Chat Blocker
Reply With Quote #2

Why would you copy the is_user_admin() stock instead of doing "#include <amxmisc>"?
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
fezh
Veteran Member
Join Date: Dec 2008
Location: BANNED
Old 06-18-2009 , 21:52   Re: Advanced Chat Blocker
Reply With Quote #3

Quote:
Originally Posted by Exolent[jNr] View Post
Why would you copy the is_user_admin() stock instead of doing "#include <amxmisc>"?
Since in amxmisc.inc there are some functions that I don't use. But I can include it anyways.
__________________
"There is no knowledge, that is not power"
fezh is offline
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 06-18-2009 , 22:10   Re: Advanced Chat Blocker
Reply With Quote #4

They are all stock functions.
When the plugin is compiled, the unused stocks are ignored.
__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] is offline
Emp`
AMX Mod X Plugin Approver
Join Date: Aug 2005
Location: Decapod 10
Old 06-19-2009 , 00:44   Re: Advanced Chat Blocker
Reply With Quote #5

Return PLUGIN_HANDLED_MAIN instead of PLUGIN_HANDLED
Emp` is offline
Send a message via AIM to Emp` Send a message via MSN to Emp` Send a message via Yahoo to Emp` Send a message via Skype™ to Emp`
fezh
Veteran Member
Join Date: Dec 2008
Location: BANNED
Old 06-19-2009 , 13:53   Re: Advanced Chat Blocker
Reply With Quote #6

Quote:
Originally Posted by Emp` View Post
Return PLUGIN_HANDLED_MAIN instead of PLUGIN_HANDLED
I never used that return because I thought that had been stopped using.. Anyway, looking into amxconst.inc I've been noticed about that return value is useful for blocking generic commands.

Plugin updated.
__________________
"There is no knowledge, that is not power"
fezh is offline
xPaw
Retired AMX Mod X Moderator
Join Date: Jul 2008
Old 06-19-2009 , 14:09   Re: Advanced Chat Blocker
Reply With Quote #7

acb_enabled
  • 0 - Disabled
  • 1 - Block global chat (say)
  • 2 - Block total chat (say, say_team)
Would be better i think
__________________
xPaw is offline
Alucard^
AMXX Moderator: Others
Join Date: Sep 2007
Location: Street
Old 07-02-2009 , 17:30   Re: Advanced Chat Blocker
Reply With Quote #8

good plugin, some times ago i tried to add more functions to this plugin, but no time for that... now maybe i am gonna to do it, i have a lot of ideas to add.
Alucard^ is offline
Send a message via Skype™ to Alucard^
Hawk552
AMX Mod X Moderator
Join Date: Aug 2005
Old 08-14-2009 , 15:35   Re: Advanced Chat Blocker
Reply With Quote #9

This plugin is redundant but does the job better than the other similar plugins out there.

If you would like any information regarding possible adjustments you could make or things you could do to make this better, please feel free to post here or PM me.

Approved.
__________________
Hawk552 is offline
Send a message via AIM to Hawk552
Reply


Thread Tools
Display Modes

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 20:16.


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