Raised This Month: $51 Target: $400
 12% 

CS2 Server chat command's


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Griffg6
New Member
Join Date: Nov 2023
Old 11-01-2023 , 07:57   CS2 Server chat command's
Reply With Quote #1

Hey, I've recently set up my own CS2 dedicated server to use with my friends. I have been wanting to add something for them to be able to use the chat to activate certain commands like changing maps or re throwing nades. If anyone knows of something that works I would love to know.

Thanks
Griffg6 is offline
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
Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:30.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode