AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   Basic say/say_team block (https://forums.alliedmods.net/showthread.php?t=65529)

chris-1337 01-10-2008 14:20

Basic say/say_team block
 
2 Attachment(s)
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)

ConnorMcLeod 01-10-2008 14:32

Re: Basic say/say_team block
 
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

TheNewt 01-10-2008 17:20

Re: Basic say/say_team block
 
Yeah, blocking a user from saying something, thats called gag and already exists. Sorry man. :P

chris-1337 01-10-2008 17:24

Re: Basic say/say_team block
 
*writes "n00b" on a sticker*
*sticks to forehead*
*sits in the corner*

Oh well, better luck next time for me =P

TheNewt 01-10-2008 18:31

Re: Basic say/say_team block
 
Well at least you are doing something, unlike certain "omfg do this for me" people. Props at to you for that. :P

travo 01-11-2008 00:23

Re: Basic say/say_team block
 
you could also make it so that players can block each other so its not only exclusive to admins

Bojangles 01-11-2008 12:58

Re: Basic say/say_team block
 
There is a mute implemented into the actual game for that.

TheNewt 01-11-2008 13:49

Re: Basic say/say_team block
 
I thought the mute function in game is for MIC muting only, not textual.

chris-1337 01-11-2008 14:46

Re: Basic say/say_team block
 
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).

stupok 01-17-2008 18:30

Re: Basic say/say_team block
 
Ho there good fellow! You may find this plugin to be of use!
http://forums.alliedmods.net/showthread.php?t=58616

purple_pixie 01-18-2008 11:46

Re: Basic say/say_team block
 
Quote:

Originally Posted by travo (Post 572747)
you could also make it so that players can block each other so its not only exclusive to admins

:-O

That's *my* idea:-( I just haven't written it yet ....

It came to me in a flash of inspiration the other day.

EDIT: And Stupok, just because you got there first doesn't mean it's *your* idea.
Oh, wait. Shit.


All times are GMT -4. The time now is 20:29.

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