View Single Post
Author Message
Antithasys
Moderator
Join Date: Apr 2008
Old 09-20-2011 , 13:41   Simple Chat Responses
Reply With Quote #1

Simple Chat Responses

Description:
Provides automatic respones based on a players chat message.
Console Variables:
scr_debug - Turn On/Off debug logging
Commands:
sm_reloadscr - Reloads the config file
Installation:
Place the simple-responses.smx in the /sourcemod/plugins dir.
Place the simple-chatresponses.cfg file in the /sourcemod/configs dir.
Changelog:

Quote:
1.0.0
Release
Notes:

This plugin uses the Simple Chat Processor to respond to chat. It uses the SMLIB colors include file as well. A big thanks goes out to DJ Tsunami for some code from his advertisements plugin to deal with tags. The tags allowed is best described by him. I will just quote his thread.

Quote:
Originally Posted by DJ Tsunami View Post
This [config file] supports the following variables: {CURRENTMAP}, {DATE}, {TIME}, {TIME24} and {TIMELEFT}. Next to that you can print the value of a cvar by enclosing the name with {}. For example you can use {SM_NEXTMAP} to show the name of the next map. Last but not least, for a boolean cvar you might want to have it print OFF/ON instead of 0/1. For that you can use {BOOL:name}. For example {BOOL:MP_FRIENDLYFIRE} will print OFF if mp_friendlyfire is set to 0, and ON if it's set to 1. If you want it to print something other than OFF/ON, you will have to open the source code, change the defines at the top and recompile. Also supports \n for newlines...
SVN (or Beta Links)

If you want the latest version on the SVN you can use the links below. The release version of the plugin is attached.

Source | Plugin | Config | No Phrases

Enjoy!
Attached Files
File Type: zip Simple Chat Responses.zip (25.5 KB, 2894 views)
__________________
[my plugins]

When you think about asking a question... consider what have you tried?

Last edited by Antithasys; 09-20-2011 at 14:25.
Antithasys is offline