Skip to content

Xelson/tsarapi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Language: EN | RU

image

TsarAPI

Plugin for AmxModX to interact and connect your Counter-Strike 1.6 game server with the service Tsarvar:

  • Displaying chat and events (kills, map changes) in real-time;
  • Displaying team scores and lineup;
  • Displaying player statistics based on CSstatsX SQL, CsStats MySQL and their modifications;
  • Displaying the ban list based on ban systems compatible with AmxBans (Fresh Bans, Lite Bans).

Requirements

Installation

  • Install AmxxEasyHttp;
  • Copy the configuration file /addons/amxmodx/configs/tsarapi.cfg to the corresponding folder;
  • Configure tsarapi_token cvar;
  • Compile the plugin and copy it to /addons/amxmodx/plugins, then enable it in plugins.ini.

Plugin Configuration

// Token for API usage
tsarapi_token ""

// Send CsStatsX SQL (0.7.2+) / CsStats MySQL player statistics (once a day)
tsarapi_send_csstats "1"

// Send ban list (once a day). Supported systems are AmxBans, Fresh Bans, and Lite Bans
tsarapi_send_amxbans "1"

// Send events for new chat messages
tsarapi_send_chat "1"

// Send events for new kill messages (killfeed)
tsarapi_send_killfeed "1"

// Send player state events: their scores, deaths, team
tsarapi_send_scoreboard "1"

// Send map change events
tsarapi_send_changelevel "1"