View Single Post
babaika
New Member
Join Date: Nov 2023
Old 11-01-2023 , 20:39   Re: CS2 Server chat command's
Reply With Quote #2

I wrote a custom script for this, I'm running it on the same server as CS2 using Node.

High-level logic:
1. Connect to the server via Rcon and run these commands:
Code:
log on; logaddress_delall_http; logaddress_add_http "http://localhost:8000/log"
2. Listen to incoming log messages that will include the chat
3. Parse logs via a regex and get the chat messages
4. Use rcon to run the console commands based on message contents.
babaika is offline