Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Featured Replies

  • Administrator

Give a jailed surfer a private estimate of the next door opening.

Jail Clock 1.0.0 (olds.ro)

Surf: on maps with a jail whose door opens on a fixed cycle, players inside the jail see a private estimate of the next opening: Jail door in 12 s (+/- 2)

Requirements

  • ReHLDS, ReGameDLL_CS, Metamod-r, ReAPI
  • AMX Mod X 1.10.0.5490 or newer (hamsandwich)

Install

  • Compile scripting/olds_jailclock.sma and copy olds_jailclock.amxx to addons/amxmodx/plugins/. The compiler needs ReAPI's include files.
  • Copy data/lang/olds_jailclock.txt to addons/amxmodx/data/lang/.
  • Copy configs/olds_jailclock/ to addons/amxmodx/configs/ and write a <mapname>.ini for each jail map from _example.ini.

Configuration: configs/olds_jailclock/<map>.ini

  door  "targetname"         the jail door (func_door or func_door_rotating)
  cycle 30                   seconds from one opening to the next (5-600)
  box   x1 y1 z1  x2 y2 z2   the jail; more box lines add areas (up to 8)
A map without the file, or with a missing or invalid line, stays idle and
logs one notice.

Settings (addons/amxmodx/configs/plugins/olds_jailclock.cfg, created on first run)

  olds_jailclock_slop 2      seconds the estimate is widened either way (0-10)

Command: olds_jailclock_status (ADMIN_CFG) shows the door, cycle and next opening.

Timing

  • The first opening is never guessed: Ham_Use on the door (the map firing it) starts or resyncs the cycle, and the next opening is expected cycle seconds later. Double doors firing together count as one opening.
  • When the door fires, the countdown starts over. If the door entity disappears, the clock stops until the door is used again. A round restart stops it too.
  • Only living players inside a jail box see the line; it updates every second and stops at 0.

No downloads: a DHUD line in the stock font.

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_jailclock.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 (AMX-048).

Jail Clock
v1.0.0Counter-Strike 1.6PluginNot tested yet
AMX Mod X 1.10Server engine ReHLDSNeeds ReAPI YesMetamod Metamod-R0 downloads4.7 KBUpdated 11 hours ago
Sign in to download
Pawn (AMX Mod X) · 267 lines
/*
 * Jail Clock (olds.ro workshop card AMX-048)
 *
 * Surf: on maps with a jail whose door opens on a fixed cycle, players inside
 * the jail see a private estimate of the next opening:
 *     Jail door in 12 s (+/- 2)
 * Nothing is shown outside the jail box, before the cycle has been seen once,
Show all 267 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.