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

Basic say/say_team block


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Event Related       
chris-1337
Senior Member
Join Date: Jan 2008
Location: The United Kingdom Of Gr
Old 01-10-2008 , 14:20   Basic say/say_team block
Reply With Quote #1

Firstly, I did search for this before I posted this, however in advance I am extremely sorry for wasting time if this has already been done.

About, this is a nice and simple bit of code to block people using the "say" and "say_team" commands, I think this is & can be useful if you have offensive players & would rather stop their typing than kick/ban.

Note, any feedback/modifications/optimisations/requestions etc are welcomed, criticism also (nothing too harsh, this is my first attempt at a publically available plugin =P)
Attached Files
File Type: sma Get Plugin or Get Source (block_say.sma - 1038 views - 865 Bytes)
File Type: amxx block_say.amxx (4.6 KB, 149 views)
__________________
Microsoft Word has encountered an error.
As a result of this your bank account has been emptied, your credit cards maxed out & your family has been brutally murdered.
Thank-you for using Microsoft Products.
chris-1337 is offline
Send a message via MSN to chris-1337
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 01-10-2008 , 14:32   Re: Basic say/say_team block
Reply With Quote #2

I guess your plugin already exist : admin_gag and admin_llama

What you could do is an all-in-one with those 2 plugins :
http://forums.alliedmods.net/showthread.php?p=7781
http://forums.alliedmods.net/showthread.php?p=510022
__________________
- tired and retired -

- my plugins -

Last edited by ConnorMcLeod; 01-10-2008 at 14:34.
ConnorMcLeod is offline
TheNewt
Donor
Join Date: Jun 2006
Location: Where I live.
Old 01-10-2008 , 17:20   Re: Basic say/say_team block
Reply With Quote #3

Yeah, blocking a user from saying something, thats called gag and already exists. Sorry man.
__________________
Quote:
toe3_ left the chat room. (G-lined (AUTO Excessive connections from a single host.))
TheNewt is offline
chris-1337
Senior Member
Join Date: Jan 2008
Location: The United Kingdom Of Gr
Old 01-10-2008 , 17:24   Re: Basic say/say_team block
Reply With Quote #4

*writes "n00b" on a sticker*
*sticks to forehead*
*sits in the corner*

Oh well, better luck next time for me =P
__________________
Microsoft Word has encountered an error.
As a result of this your bank account has been emptied, your credit cards maxed out & your family has been brutally murdered.
Thank-you for using Microsoft Products.
chris-1337 is offline
Send a message via MSN to chris-1337
TheNewt
Donor
Join Date: Jun 2006
Location: Where I live.
Old 01-10-2008 , 18:31   Re: Basic say/say_team block
Reply With Quote #5

Well at least you are doing something, unlike certain "omfg do this for me" people. Props at to you for that.
__________________
Quote:
toe3_ left the chat room. (G-lined (AUTO Excessive connections from a single host.))
TheNewt is offline
travo
Senior Member
Join Date: Aug 2006
Old 01-11-2008 , 00:23   Re: Basic say/say_team block
Reply With Quote #6

you could also make it so that players can block each other so its not only exclusive to admins
travo is offline
Bojangles
Senior Member
Join Date: Sep 2007
Location: Over there
Old 01-11-2008 , 12:58   Re: Basic say/say_team block
Reply With Quote #7

There is a mute implemented into the actual game for that.
Bojangles is offline
Send a message via AIM to Bojangles
TheNewt
Donor
Join Date: Jun 2006
Location: Where I live.
Old 01-11-2008 , 13:49   Re: Basic say/say_team block
Reply With Quote #8

I thought the mute function in game is for MIC muting only, not textual.
__________________
Quote:
toe3_ left the chat room. (G-lined (AUTO Excessive connections from a single host.))
TheNewt is offline
chris-1337
Senior Member
Join Date: Jan 2008
Location: The United Kingdom Of Gr
Old 01-11-2008 , 14:46   Re: Basic say/say_team block
Reply With Quote #9

I think it is for voice chat only also.
I could make it so that individuals could mute other people's chat, however, I wouldn't be able to do it with colour.

If you are interested in knowing the problem I am having, for the colour chat you need something similar to:
Code:
public handle_say(id)
{
  message_begin(MSG_ONE, get_user_msgid("SayText"), {0,0,0}, id);
  write_byte(id);
  write_string("^x03Name ^x01 :  message");
  message_end();
}
It is just that the ^x03 represents your team coloured chat (eg red for terrorists, blue for counter-terrorists), and if someone from another team messages, then it turns up in your team's colour, so I would end up just using the "client_print" command (with no colour).
__________________
Microsoft Word has encountered an error.
As a result of this your bank account has been emptied, your credit cards maxed out & your family has been brutally murdered.
Thank-you for using Microsoft Products.
chris-1337 is offline
Send a message via MSN to chris-1337
stupok
Veteran Member
Join Date: Feb 2006
Old 01-17-2008 , 18:30   Re: Basic say/say_team block
Reply With Quote #10

Ho there good fellow! You may find this plugin to be of use!
http://forums.alliedmods.net/showthread.php?t=58616
__________________
stupok 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 10:21.


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