Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Spectator HP List

Featured Replies

  • Administrator

A spectator HUD list of living players per team with their health, so spectators can follow the state of the round at a glance.

Spectator HP List 1.0.0 (olds.ro)

Spectators and dead players see two lists on the sides of the screen: the living Terrorists on the left and the living Counter-Terrorists on the right, each with their health, lowest health first. The lists are refreshed every second.

Requirements

  • ReHLDS, ReGameDLL_CS, Metamod-R, ReAPI
  • AMX Mod X 1.10 or newer (written for 1.10.0.5490)

Install

  • Compile scripting/olds_hplist.sma and copy olds_hplist.amxx to addons/amxmodx/plugins/. The compiler needs ReAPI's include files (reapi.inc and the reapi_*.inc files from the ReAPI release) next to the stock AMX Mod X includes.
  • Copy data/lang/olds_hplist.txt to addons/amxmodx/data/lang/.
  • Copy configs/plugins/olds_hplist.cfg to addons/amxmodx/configs/plugins/ (if it is missing, the plugin writes it with the default values).
  • Add olds_hplist.amxx to addons/amxmodx/configs/plugins.ini.

Commands

  say /hplist   (also in team chat) Turns the lists off or on for you. The
                choice stays until you leave the server (also over new
                rounds and restarts).

How it works

  • Every second each spectator and dead player gets the Terrorists' list (HUD channel 1, x 0.01) and the Counter-Terrorists' list (channel 2, x 0.80). With olds_hplist_dead 0 living players get them too.
  • Each list starts with the number of living players in the team, then one row per player: health and name. At most olds_hplist_max rows are shown per team.
  • Names longer than 16 characters are cut (never in the middle of a letter), so no row wraps.
  • With olds_hplist_sort 1 the lowest health comes first; with 0 the players are listed in the order they joined.

Settings (addons/amxmodx/configs/plugins/olds_hplist.cfg)

  olds_hplist_max 8    rows per team (1 - 32)
  olds_hplist_sort 1   1 = lowest health first, 0 = join order
  olds_hplist_dead 1   1 = only spectators and dead players see the lists,
                       0 = living players too

No sounds, models or sprites are added.

Credits and licence Written from scratch by alexit (olds.ro workshop) for workshop card LIB-2072. Licence: GNU GPL version 3 or later (GPL-3.0-or-later).

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_hplist.sma

Idea: olds.ro workshop library · Plugin: alexit · 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-2072).

Spectator HP List
v1.0.0Counter-Strike 1.6PluginNot tested yet
AMX Mod X 1.10Server engine ReHLDSNeeds ReAPI YesMetamod Metamod-R0 downloads4.4 KBUpdated 10 hours ago
Sign in to download
Pawn (AMX Mod X) · 238 lines
/*
 * Spectator HP List (olds.ro workshop card LIB-2072)
 *
 * Spectators and dead players see two lists on the sides of the screen: the
 * living Terrorists on the left and the living Counter-Terrorists on the
 * right, each with their health, lowest health first. The lists are
 * refreshed every second.
Show all 238 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.