Promoveaza serverul
csb-session-stats / README.md
1 lines 1.2 KiB Markdown Source Rendered Raw Permalink History

CSB Session Stats is a lightweight, no-database session tracker. It holds everything in memory per player slot and clears it on disconnect, so there is nothing to install, no vault, no MySQL. say /session prints your kills, deaths, K/D, headshots, damage dealt, rounds won, best killstreak and minutes played; a short version can be shown to everyone at the end of each round.

How the numbers are measured

  • Kills, deaths, headshots and killstreak from the DeathMsg event.
  • Damage dealt attributed to the attacker via a Ham_TakeDamage hook (hamsandwich).
  • Rounds won detected from the round-win audio (SendAudio) and credited to the winning team's players.
  • Time played from the moment the player entered the server.

Installation

  1. Compile csb_session_stats.sma and copy it to addons/amxmodx/plugins/.
  2. Add it to plugins.ini and change the map.

Set csb_session_roundline 0 if you do not want the short per-round chat summary. On disconnect a one-line summary is written to the AMXX log.