Skip to content

About

Automatic chat messages for CS2 servers (CounterStrikeSharp plugin)

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Latest commit

 

History

12 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 

Repository files navigation

AutoMessageChat

A Counter-Strike 2 server plugin that posts chat messages automatically: rotating announcements, a welcome message for each player, and join and leave notices. Built on CounterStrikeSharp.

Release CS2 CounterStrikeSharp

Download AutoMessageChat.dll

Features

  • Rotating chat messages, sent one after another at a set interval
  • Private welcome message for each player who joins
  • Public join and leave notices with the player's name
  • Custom message prefix, colors included
  • Full support for CounterStrikeSharp chat colors, e.g. {Green}, {Red}, {LightBlue}
  • Config file is created automatically on first start

Requirements

Installation

  1. Download AutoMessageChat.dll (latest version; all versions are in Releases).
  2. Upload it to this folder on your server:
    addons/counterstrikesharp/plugins/AutoMessageChat/
    
  3. Restart the server or load the plugin with:
    css_plugins load "AutoMessageChat"
    

Configuration

On first start the plugin creates:

addons/counterstrikesharp/configs/plugins/AutoMessageChat/AutoMessageChat.json

Example:

{
  "Prefix": "{Green}● {DarkRed}[{White}FG :: INFO{DarkRed}]{Default}",
  "WelcomeMessage": "{Green}Follow us on social media, type {LightRed}!socials{Default}",
  "PlayerJoinMessage": "{LightBlue}{PLAYER} {White}just joined the server!",
  "PlayerDisconnectMessage": "{LightBlue}{PLAYER} {White}left the server.",
  "MessageIntervalSeconds": 120.0,
  "Messages": [
    "Check out our shop with {Green}!shop{Default}.",
    "{Red}Admin recruitment{Default} is open! Apply on our forum.",
    "Please keep it {LightBlue}friendly{Default} on the server."
  ],
  "ConfigVersion": 1
}
Option Description
Prefix Text shown before every message. Can include colors.
WelcomeMessage Private message sent to a player after they join.
PlayerJoinMessage Public message when a player joins. {PLAYER} is replaced with their name.
PlayerDisconnectMessage Public message when a player leaves. Supports {PLAYER}.
MessageIntervalSeconds Seconds between messages from the Messages list.
Messages Messages shown one after another, on a loop.

After changing the config, reload the plugin or restart the server.

Author

tomSoNN (tomsoniik), co-creator of FragHub. Questions and bug reports: Issues or Discord tomsoncs.

About

Automatic chat messages for CS2 servers (CounterStrikeSharp plugin)

Topics

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors