Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Spectator List

Featured Replies

  • Administrator

Shows each player the names of spectators currently watching them, or lists who watches whom for admins.

Spectator List 1.0.0 (olds.ro)

Shows every living player who is watching him: a small list in the top left corner of the screen with the names of the spectators and dead players whose camera follows him. It is refreshed every second, and at once when a spectator switches to another player or camera mode.

Requirements

  • ReHLDS, ReGameDLL_CS, Metamod-R, ReAPI
  • AMX Mod X 1.10 or newer (written for 1.10.0.5490), with the nvault module (part of every AMX Mod X install)

Install

  • Compile scripting/olds_speclist.sma and copy olds_speclist.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_speclist.txt to addons/amxmodx/data/lang/.
  • Copy configs/plugins/olds_speclist.cfg to addons/amxmodx/configs/plugins/ (if it is missing, the plugin writes it with the default values).
  • Add olds_speclist.amxx to addons/amxmodx/configs/plugins.ini.

Commands

  say /speclist   (also in team chat) Hides or shows your own list. The
                  choice is saved by SteamID (by name on servers without
                  unique SteamIDs), so it stays on the next maps.

How it works

  • A spectator watches a player when his camera follows that player (first person, chase cam, or the overview map following him). Free-look and free map cameras watch nobody.
  • The list reads "Watching you (N):" and then the names, at most olds_speclist_max of them; the rest is shown as +N on the last line.
  • Admins with immunity (flag a, ADMIN_IMMUNITY) are left out of the list with olds_speclist_hideadmin 1. With olds_speclist_admin 1, admins with the kick flag (c, ADMIN_KICK) still see them in their own list.
  • The list uses HUD channel 2 at x 0.02, y 0.15.
  • The saved choices are kept in the nVault "olds_speclist"; a choice not used for 60 days is removed at map end.

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

  olds_speclist_admin 1       1 = admins (flag c) also see hidden admins
  olds_speclist_hideadmin 1   1 = spectators with immunity (flag a) are not
                              listed
  olds_speclist_max 5         most names listed (1 - 32), then +N

No sounds, models or sprites are added.

Credits and licence Written from scratch by alexit (olds.ro workshop) for workshop card LIB-2075. 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_speclist.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-2075).

Spectator List
v1.0.0Counter-Strike 1.6PluginNot tested yet
AMX Mod X 1.10Server engine ReHLDSNeeds ReAPI YesMetamod Metamod-R0 downloads5.4 KBUpdated 10 hours ago
Sign in to download
Pawn (AMX Mod X) · 309 lines
/*
 * Spectator List (olds.ro workshop card LIB-2075)
 *
 * Shows every living player who is watching him: a small HUD list in the top
 * left corner with the names of the spectators (and dead players) whose
 * camera follows him, refreshed every second and at once when a spectator
 * switches to another player or camera mode.
Show all 309 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.