addonsVersion 1.0.0: First release.
README.txtVersion 1.0.0: First release.
README.txt2.4 KB
No file matches.
Dynamic Server Name Status 1.0.0 (olds.ro)
==========================================
Puts the map, the minutes left and the round number in the server name, so
players browsing the server list see how far the map is:
olds.ro | de_dust2 | 17 min | R6
Requirements
- AMX Mod X 1.10 or newer
- ReAPI (ReGameDLL_CS) for the round count
- Written for AMX Mod X 1.10.0.5490, ReAPI 5.29.0.358, ReHLDS 3.15.0.896,
ReGameDLL_CS 5.30.0.814
Install
1. Compile scripting/olds_hoststatus.sma with amxxpc 1.10 (with the ReAPI
include files) and copy olds_hoststatus.amxx to addons/amxmodx/plugins/.
2. Copy data/lang/olds_hoststatus.txt to addons/amxmodx/data/lang/.
3. Copy configs/plugins/olds_hoststatus.cfg to
addons/amxmodx/configs/plugins/ (if you skip this, the plugin writes the
same file with the defaults on its first start).
4. Add olds_hoststatus.amxx to addons/amxmodx/configs/plugins.ini.
The format (olds_hs_format)
Any text; these words are replaced:
%map% the map name
%left% whole minutes left on the map, rounded up (so 0 shows only
when the time is over); -- without a time limit
%round% the round number on this map: 1, 2, 3 ...
An empty format turns the plugin off: the hostname is left alone.
How it works
- The name is updated every olds_hs_interval seconds and at once at every
round start. It is set only when the text changed.
- The server list shows at most 63 bytes: a longer name is cut there,
never inside a letter.
- Rounds are counted from the game's round starts. "Game Commencing" and
sv_restart start again at round 1, and so does every new map.
- The minutes come from AMX Mod X's own time left, the same as the
timeleft chat command, so both agree within one update.
- A hostname line in server.cfg is replaced as soon as the map has
started.
Server command
olds_hs_status prints the format, the round, the time left and the
hostname now
Settings (addons/amxmodx/configs/plugins/olds_hoststatus.cfg)
olds_hs_format "olds.ro | %map% | %left% min | R%round%"
olds_hs_interval 10 seconds between updates (1 - 300)
Texts are in data/lang/olds_hoststatus.txt (English). No sounds, models or
sprites are used.
Credits and licence
Written from scratch by alexit (olds.ro workshop) for workshop card LIB-1571.
Licence: GNU GPL version 3 or later (GPL-3.0-or-later).