Skip to content
View in the app

A better way to browse. Learn more.

Learn more

HLTV Auto Recording

Featured Replies

  • Administrator

Starts an HLTV recording when a map begins and stops it at map end, naming the file after the match map and time so each map has its own demo.

HLTV Auto Recording (olds.ro workshop card LIB-0835) Copyright (C) 2026 daemon (olds.ro). GPL-3.0-or-later.

Every map gets its own HLTV demo, named

    <olds_hltvrec_prefix>_<map>_<YYYYmmdd_HHMM>     e.g. match_de_dust2_20261205_2130
(the proxy adds .dem). Only letters, digits, - and _ are kept in the name.
  • olds_hltvrec_delay seconds after the first round of the map starts (RG_CSGameRules_RestartRound), the recording starts, if at least olds_hltvrec_minplayers players are on (the HLTV proxy is not counted) and an HLTV proxy is connected. If not, one log line says why, and the plugin tries again at the next round start, without logging again.
  • mp_restartgame / sv_restart while recording: the demo goes on.
  • At the end of the map's final round (intermission) or when the map changes (plugin_end, before the switch) the recording stops.

Two ways to reach the proxy:

  olds_hltvrec_rcon_addr ""   (default) the plugin runs the server commands
      olds_hltvrec_cmd_start <name> (tv_record) and olds_hltvrec_cmd_stop
      (tv_stoprecord): for servers where a proxy bridge adds those commands.
  olds_hltvrec_rcon_addr "127.0.0.1:27020" and olds_hltvrec_rcon_pass "..."
      rcon straight to the HLTV proxy (UDP, challenge first): "record <name>"
      and "stoprecording". Set the password in the proxy's hltv.cfg too
      (rcon_password). A failing rcon is logged once per map.
  Both rcon cvars are protected (not shown to clients).

Cvars (configs/plugins/olds_hltvrec.cfg): olds_hltvrec_delay 15.0, olds_hltvrec_prefix "match", olds_hltvrec_minplayers 4, olds_hltvrec_cmd_start "tv_record", olds_hltvrec_cmd_stop "tv_stoprecord", olds_hltvrec_rcon_addr "", olds_hltvrec_rcon_pass "". Admin: amx_hltvrec_status (ADMIN_RCON).

Install: compile scripting/olds_hltvrec.sma with amxxpc 1.10 and add olds_hltvrec.amxx to plugins.ini. Needs ReAPI and the sockets module (enable it in modules.ini). No downloads.

Install

Download the ZIP above and copy its folders into cstrike/. Compile the .sma in addons/amxmodx/scripting with the AMX Mod X 1.10 compiler, put the .amxx in addons/amxmodx/plugins, and add it to plugins.ini.

Files: addons/amxmodx/scripting/olds_hltvrec.sma, test/hltv_stub.sma

Idea: olds.ro workshop library · Plugin: daemon · Tested automatically (compiled on AMX Mod X 1.8.2, 1.9 and 1.10, played on a CS 1.6 test server)
License: GPL-3.0-or-later. Written for the olds.ro plugin workshop (LIB-0835).

HLTV Auto Recording
v1.0.0Counter-Strike 1.6PluginNot tested yet
AMX Mod X 1.10Server engine ReHLDSNeeds ReAPI YesMetamod Metamod-R0 downloads4.1 KBUpdated 6 hours ago
Sign in to download
Pawn (AMX Mod X) · 260 lines
/*
 * HLTV Auto Recording (olds.ro workshop card LIB-0835)
 * Copyright (C) 2026 daemon (olds.ro)
 *
 * This program is free software: you can redistribute it and/or modify it under the terms
 * of the GNU General Public License as published by the Free Software Foundation, either
 * version 3 of the License, or (at your option) any later version.
Show all 260 lines

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.