Evie Addon Details

Watch - Add Favorite

Chatwatch - Version 1.1t

posted on 2007-05-31 09:12:06
by GODJonez
10
w00ts
w00t!
Requires: Tags: admin chat css dods hl2dm punishment sdk uses_auth

Description

Chatwatch v1.1t

Description
Monitors player text chatting and has ability to filter out messages or otherwise punish players using certain words in their chat messages.

Requirements
  • EventScripts 1.3
    • EventScripts 1.5 with Auth provider is recommended

  • Updated damage corelib subscript (for proper slap effect)


Installation
  • Download the zip file from link above
  • Extract to your root game folder (e.g. cstrike)
  • Add es_load chatwatch to your server's autoexec.cfg file


Using Auth with Chatwatch
If you are using EventScripts 1.5 and are using an Auth provider, Chatwatch allows server admins with permission admin_chatwatch to modify the chat filtering rules from client console using console command cw.


Administering without Auth
The chat filtering rules can be viewed and edited using server console command cw either directly on the server console or by using RCON (recommended way).

Usage of command 'cw'
cw

cw
- Displays help
cw list
- Displays the list of added chat strings that are to be watched for
cw addcatch
- Adds a word to be watched at the start of the chat. These chat messages can be hidden completely
cw catch
- Adds a text to be checked in a caught chat message.
- See later for possible punishment options
cw watch
- Adds a text to be watched in any part of a chat message
- These messages can still be seen by players but the sayer can be punished, see later
cw delcatch
- Deletes a catch rule
cw load
- Loads the latest rules (undo changes since last save)
cw save
- Saves the current rules to be automatically used next time

cw addtext
- Adds a text to say punishment category
cw listtext
- Lists the texts in the category
cw deltext
- Deletes a chosen text from the category, see listtext for the index numbers

cw addpunish
- Adds a punishment to a multi-punish list
cw listpunish
- Lists the punishment list
cw delpunish
- Deletes the chosen punishment from the list, see listpunish for the index numbers

Punishment options
kick
- Kicks the player from server
ban
- Ban the player for selected time in minutes (0=permanent)
censor
- Replaces the catch/watch part of the chat with provided text before displaying it
- only usable with caught messages (catch by first word)
say
- Makes the offending player say something else instead
- Using a category name will choose a text randomly from a text category (see cw addtext)
msg
- Makes a text be displayed in the chat area
- You can use #green, #lightgreen and #default in the text to switch colours
slay
- Kills the player
slap
- slaps the player with specified damage, includes sound and physics effect
0
- disables the rule (deletion of the rules is not practical due to ES limitations)

- uses the custom list of punishments to use

Example admin usage
This demonstrates the commands that should be entered into server console to build the sample rule file included inside the zip file.
// Adding say texts:
cw addtext f10 "I'm an idiot that deserves to be kicked"
cw addtext f10 "I am a loser"
 
// Adding most used starting words to be filtered completely and combining them with word f10 and punishing the players by using f10 say category
cw addcatch press
cw catch press f10 "say f10"
cw addcatch hit
cw catch hit f10 "say f10"
cw addcatch choose
cw catch choose f10 "say f10"
cw addcatch use
cw catch use f10 "say f10"
 
// In case the player bypasses those checks by using some other word at start, let's add general warning:
cw watch f10 "msg #green Note:#default F10 will exit your game by default."
 
// Save the changes so we don't have to redo all these commands again
cw save

Version Notes For 1.1t (Announce this update)

Updated on: 2007-07-12 06:43:07 EST
  • Added more punishment options (slay, slap)
  • Added punishment lists for multiple punishments for one violation
  • Fixed client side usage to be able to show multiple lines output

( Previous Versions )