Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Crown Tenure

Featured Replies

  • Administrator

Report the three longest individual reigns at map end.

Crown Tenure 1.0.0 (olds.ro)

King of the Hill: times every reign (how long one player holds the crown

before losing it) and keeps the three longest of the map. /reigns shows them
at any time; they are posted to chat at map end (intermission) and written
to the AMXX log with the players' Steam IDs when the plugin ends.
    Longest reigns: 1. Alpha 90 s  2. Bravo 60 s  3. Charlie 45 s

Requirements

  • AMX Mod X 1.10.0.5490 or newer
  • A King of the Hill core that reports the crown through this plugin's two natives (directly, or through a small bridge plugin)

Install

  • Compile scripting/olds_crown.sma and copy olds_crown.amxx to addons/amxmodx/plugins/.
  • Copy data/lang/olds_crown.txt to addons/amxmodx/data/lang/.
  • Copy scripting/include/olds_crown.inc next to the core's sources.

Use

  say /reigns     the three longest reigns so far (the running one included)

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

  olds_crown_minsec 10   shortest reign in seconds that can be listed (0-600)

For the core (include/olds_crown.inc, library "olds_crown")

  olds_crown_assigned(id)   id now wears the crown; the previous reign
                            closes; a repeat for the current king does nothing
  olds_crown_reset()        nobody wears the crown; the reign closes
A reign also closes when the king leaves. Each reign closes exactly once and
is timed with the game clock, independent of kills.

No downloads: chat text.

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/include/olds_crown.inc, addons/amxmodx/scripting/olds_crown.sma, test/koth_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 (AMX-098).

Crown Tenure
v1.0.0Counter-Strike 1.6PluginNot tested yet
AMX Mod X 1.10Server engine HLDS, ReHLDSNeeds ReAPI NoMetamod Metamod-R0 downloads3.9 KBUpdated 11 hours ago
Sign in to download
Pawn (AMX Mod X) · 221 lines
/*
 * Crown Tenure (olds.ro workshop card AMX-098)
 *
 * King of the Hill: times every reign (how long one player holds the crown
 * before losing it) and keeps the three longest of the map. /reigns shows
 * them at any time; they are posted to chat when the map ends (intermission)
 * and written to the AMXX log when the plugin ends.
Show all 221 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.