This site is a testing version, but all data is shared with the live forum.


Raised This Month: $ Target: $400
 0% 

Block Chat


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   Counter-Strike        Category:   Admin Commands       
thahim
Member
Join Date: Apr 2007
Old 09-22-2007 , 08:00   Block Chat
Reply With Quote #1

Block Chat

Description:- Blocks chatting in server.

Orignal Idea was Asskickers noChat Plugin, i just enhanced it and added a cvar.

*Updated*
cvar name changed

amx_blockchat- Enables or Disables the plugin.

amx_blockchat by default is "0"

Code modified.


Attached Files
File Type: sma Get Plugin or Get Source (blockchat.sma - 1363 views - 387 Bytes)

Last edited by thahim; 09-22-2007 at 14:42.
thahim is offline
M249-M4A1
I <3 Mac
Join Date: May 2005
Location: Not interested
Old 09-22-2007 , 10:22   Re: Block Chat
Reply With Quote #2

Just a few notes about this plugin:
1) Code is rather messy
2) Redundant
3) Useless variables and pcvar if you are only using it once
4) Why are you doing "NO" and "YES" for the information field?
5) Why are the say events require default access?
6) Compiles with a warning

If you can touch that up and make it better than AssKicR's, you might have half a chance of getting this approved
__________________

Last edited by M249-M4A1; 09-22-2007 at 10:24.
M249-M4A1 is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 09-22-2007 , 10:44   Re: Block Chat
Reply With Quote #3

1) ADMIN_MENU != flag Z
2) The defines are pointless in this case, remove them
3) Variable saad is pointless, it can be done by sticking the get_cvar_num in as the if parameter
4) You need to return PLUGIN_CONTINUE in no_chat incase chat_block is set to 0.
5) Fix your indention
6) Add more features, this is to basic to be a new plugin
7) If chat_block is supposed to be defaulted to 0, then make it to where it is. Right now, it defaults to 1


@M249-M4A1: There is no pcvar in the plugin, so please point out where you saw the pcvar.
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou is offline
M249-M4A1
I <3 Mac
Join Date: May 2005
Location: Not interested
Old 09-22-2007 , 10:50   Re: Block Chat
Reply With Quote #4

Quote:
Originally Posted by YamiKaitou View Post
1) ADMIN_MENU != flag Z
2) The defines are pointless in this case, remove them
3) Variable saad is pointless, it can be done by sticking the get_cvar_num in as the if parameter
4) You need to return PLUGIN_CONTINUE in no_chat incase chat_block is set to 0.
5) Fix your indention
6) Add more features, this is to basic to be a new plugin
7) If chat_block is supposed to be defaulted to 0, then make it to where it is. Right now, it defaults to 1


@M249-M4A1: There is no pcvar in the plugin, so please point out where you saw the pcvar.
Haha, there isn't! I dunno why I said that, all I noticed was he gave variable saad the value of "chat_block"

Thanks for pointing out my mistake
__________________
M249-M4A1 is offline
Zenith77
Veteran Member
Join Date: Aug 2005
Old 09-22-2007 , 12:22   Re: Block Chat
Reply With Quote #5

Holy crap. Unapproved. The code is horrendous, and the plugin author obviously didn't read anything about posting plugins.
__________________
Quote:
Originally Posted by phorelyph View Post
your retatred
Zenith77 is offline
thahim
Member
Join Date: Apr 2007
Old 09-23-2007 , 07:39   Re: Block Chat
Reply With Quote #6

OK i have updated
thahim is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-23-2007 , 08:50   Re: Block Chat
Reply With Quote #7

You have just renamed the cvar...

See this version that should be complete : http://forums.alliedmods.net/showthr...256#post527256

. 1 cvar to block say command
. 1 cvar to block say_team command
. admin immunity
. working chat commands
ConnorMcLeod is offline
thahim
Member
Join Date: Apr 2007
Old 09-23-2007 , 13:35   Re: Block Chat
Reply With Quote #8

Quote:
Originally Posted by connorr View Post
You have just renamed the cvar...

See this version that should be complete : http://forums.alliedmods.net/showthr...256#post527256

. 1 cvar to block say command
. 1 cvar to block say_team command
. admin immunity
. working chat commands
i downloaded that one as well... but i acctullay want a thing which can block chat on perticular client.

Last edited by thahim; 09-23-2007 at 13:39.
thahim is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 09-23-2007 , 14:11   Re: Block Chat
Reply With Quote #9

http://forums.alliedmods.net/showthread.php?p=510022
ConnorMcLeod is offline
YamiKaitou
Has a lovely bunch of coconuts
Join Date: Apr 2006
Location: Texas
Old 09-23-2007 , 15:22   Re: Block Chat
Reply With Quote #10

Quote:
Originally Posted by YamiKaitou View Post
3) Variable rest is pointless, it can be done by sticking the get_cvar_num in as the if parameter
4) You need to return PLUGIN_CONTINUE in no_chat incase chat_block is set to 0.
5) Fix your indention
6) Add more features, this is to basic to be a new plugin
Now it compiles with 2 warnings. These are the things that I said last time that still have not been fixed/changed. No offense, but think of something original and create that. Don't try to better another plugin until you have had some previous experience coding first
__________________
ProjectYami Laboratories

I do not browse the forums regularly anymore. If you need me for anything (asking questions or anything else), then PM me (be descriptive in your PM, message containing only a link to a thread will be ignored).
YamiKaitou 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 15:12.


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