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
1. Compile scripting/olds_crown.sma and copy olds_crown.amxx to
addons/amxmodx/plugins/.
2. Copy data/lang/olds_crown.txt to addons/amxmodx/data/lang/.
3. 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.