Skip to content

Ayrton09/ConnectAnnounce

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 

Repository files navigation

Connect Announce

Simple CounterStrikeSharp plugin that replaces connect/disconnect messages and resolves city/country data with GeoLite2-City.mmdb.

Installation

Copy the complete ConnectAnnounce folder from the release zip to:

csgo/addons/counterstrikesharp/plugins/ConnectAnnounce/

Do not upload only ConnectAnnounce.dll. ConnectAnnounce.deps.json must stay next to the DLL or CounterStrikeSharp cannot resolve the plugin dependencies.

The release zip includes GeoLite2-City.mmdb, so it can be installed directly. To update the database later, download it from one of these links and replace the file in the plugin folder:

csgo/addons/counterstrikesharp/plugins/ConnectAnnounce/GeoLite2-City.mmdb

Files

  • ConnectAnnounce.dll
  • ConnectAnnounce.deps.json
  • MaxMind.GeoIP2 dependencies
  • data/cannounce_settings.txt
  • GeoLite2-City.mmdb

The options JSON is generated on load at:

csgo/addons/counterstrikesharp/configs/plugins/ConnectAnnounce/ConnectAnnounceConfig.json

Messages

Default messages live in:

ConnectAnnounce/data/cannounce_settings.txt

Available placeholders:

  • {PLAYERNAME}
  • {STEAMID}
  • {PLAYERCOUNTRY}
  • {PLAYERCOUNTRYSHORT}
  • {PLAYERCOUNTRYSHORT3}
  • {PLAYERCITY}
  • {PLAYERREGION}
  • {PLAYERIP}
  • {PLAYERTYPE}
  • {DISC_REASON_LABEL}
  • {DISC_REASON}

Colors

Configurable colors are stored in ConnectAnnounceConfig.json:

{
  "PlayerNameColor": "Purple",
  "SteamIdColor": "Default",
  "LocationColor": "Green",
  "PlayerIpColor": "Default",
  "PlayerTypeColor": "Default",
  "DisconnectReasonLabelColor": "Green",
  "DisconnectReasonColor": "Green"
}

Valid CSSSharp color names: Default, White, DarkRed, Green, LightYellow, LightBlue, Olive, Lime, Red, LightPurple, Purple, Grey, Yellow, Gold, Silver, Blue, DarkBlue, BlueGrey, Magenta, LightRed, Orange.

Commands

  • css_geolist <target>
  • css_ca_reload

About

CounterStrikeSharp plugin for CS2 connect/disconnect announcements with GeoLite2 city and country lookup.

Topics

Resources

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages