Auto-Responder (chat) - v0.3, by
v3x
Description:
This plugin will allow you to store commands that trigger specified responses in a file. The responses will be displayed to the person that said the phrase and will be printed in
green with a beep sound.
Commands:
-
reload_responses
When this command is inputted into the client/server console it will reload the file containing the responses.
Editing the plugin:
Towards the top of the plugin you will see some defines like so:
Code:
#define MAX_RESPONSES 64
#define MAX_LEN_CMD 64
#define MAX_LEN_RESPONSE 201
#define FILE_NAME "auto_responder.ini"
#define SOUND_NAME "buttons/blip1.wav"
Those are the ONLY parts you should edit unless you know what you are doing!
Response format:
Format: "<word>" "<response>" "method"
Method explanation:
"c" - Stands for "contains". If the message contains the trigger word it'll print the response.
"e" - Stands for "equals". If the message is equal to the trigger word it'll print the response.
Quote:
Originally Posted by Examples for auto_responder.ini
"v3x" "v3x is your GOD" "c'
"admin" "To contact an admin say @ and then your message in team chat"
"hack" "Tell an admin if there's a hacker in the server" "c"
"cheat" "Tell an admin if there's a cheater in the server" "c"
"amxx" "This server uses AMX Mod X. Go to http://amxmodx.org for more info." "c"
"amx" "Psh, AMXx > AMX" "e"
"gaben" "Gaben ownz j00" "e"
|
auto_responder.ini goes in your AMX Mod X configs directory