CS Chat Logger Discord
A Counter-Strike 1.6 AMX Mod X plugin that logs all in-game chat messages, team chat, and player join/disconnect events to a Discord channel in real-time via webhooks.
Features
💬 All Chat Logging - Logs all public chat messages
👥 Team Chat Logging - Logs team-specific messages (Terrorists, Counter-Terrorists, Spectators)
📥 Join Messages - Logs when players connect to the server
📤 Disconnect Messages - Logs when players leave the server
⚙️ Configurable - CVars to enable/disable specific features
🎨 Formatted Messages - Uses Discord markdown (bold, code blocks) and emojis for better readability
🚫 Bot Filtering - Automatically ignores bot messages
Message Format
All Chat
💬 **PlayerName**: message content
Team Chat
🔴 **PlayerName** `[T]`: message content (Terrorists)
🔵 **PlayerName** `[CT]`: message content (Counter-Terrorists)
👁️ **PlayerName** `[SPEC]`: message content (Spectators)
Join/Disconnect
📥 **PlayerName** joined the server
📤 **PlayerName** left the server
Installation
Download Dependencies
Make sure you have easy_http.inc in your AMX Mod X include folder
Required includes: amxmodx, amxmisc, cstrike, easy_http
Configure Webhook
Create a Discord webhook in your desired channel
Open ChatLogger.sma and replace the webhook URL on line 15:
new const g_szWebhookURL[] = "YOUR_DISCORD_WEBHOOK_URL_HERE"
Compile
Compile the plugin using AMX Mod X compiler
Place the compiled ChatLogger.amxx in addons/amxmodx/plugins/
Enable Plugin
Add ChatLogger.amxx to addons/amxmodx/configs/plugins.ini
Restart Server
Restart your server or change map to load the plugin
Configuration (CVars)
Add these CVars to your amxx.cfg or set them via console/RCON:
chatlog_show_teamchat
Description: Controls whether team chat messages are logged to Discord
Values:
1 = Show team chat (default)
0 = Hide team chat
Example: chatlog_show_teamchat 1
chatlog_show_joinleave
Description: Controls whether player join/disconnect messages are logged to Discord
Values:
1 = Show join/leave messages (default)
0 = Hide join/leave messages
Example: chatlog_show_joinleave 0
Usage Examples
Show everything (default)
chatlog_show_teamchat 1
chatlog_show_joinleave 1
Only show public chat
chatlog_show_teamchat 0
chatlog_show_joinleave 0
Show chat but hide join/leave spam
chatlog_show_teamchat 1
chatlog_show_joinleave 0
Discord Webhook Setup
Open your Discord server
Go to Server Settings → Integrations → Webhooks
Click "New Webhook"
Choose the channel where you want chat logs
Copy the webhook URL
Paste it in the plugin source code (line 15)
Recompile the plugin
Technical Details
Plugin Version: 1.0
Author: illusion
Dependencies: AMX Mod X 1.8.2+, easy_http module
HTTP Method: POST requests to Discord webhook API
Timeout: 5 seconds per request
Content Type: application/json
Troubleshooting
Messages not appearing in Discord
Verify the webhook URL is correct
Check AMX Mod X logs for errors: addons/amxmodx/logs/
Ensure easy_http module is loaded
Test the webhook URL manually using curl or Postman
Compilation errors
Make sure all include files are present in addons/amxmodx/scripting/include/
Verify you're using AMX Mod X 1.8.2 or newer
Check that easy_http.inc is properly installed
Bot messages appearing
The plugin automatically filters bots using is_user_bot()
If bots still appear, they might not be properly detected by the game
Privacy Notice
This plugin logs all chat messages and player information to an external Discord channel. Make sure to:
Inform your players that chat is being logged
Comply with your local privacy laws and regulations
Secure your Discord webhook URL (don't share it publicly)
License
Free to use and modify. Credit appreciated but not required.
Support
For issues, suggestions, or contributions, please contact the plugin author.
Note: This plugin sends data to Discord's servers. Make sure your server has internet connectivity and can reach Discord's API endpoints.
#cs16
#amxx
#cs1.6