Auto Restart After X Rounds 1.0.0 (olds.ro)
===========================================
Ends a match by itself: when olds_ar_rounds rounds have been played, or a team
reaches olds_ar_score round wins, everyone is told and the game restarts after
olds_ar_delay seconds (sv_restart 1), so scores and money start fresh for the
next match. Admins can restart the match at once with amx_restartmatch.
Match over: 30 rounds played. The game restarts in 5 s.
Match over: the Terrorists reached 16 wins. The game restarts in 5 s.
The counts are the game's own (rounds played and team wins), so they start
from 0 on every map and after every restart. Draw rounds count as played.
Requirements
- ReHLDS, ReGameDLL_CS, Metamod-r, ReAPI
- AMX Mod X 1.10 or newer
- Tested on AMX Mod X 1.10.0.5490, ReAPI 5.29.0.358, ReGameDLL_CS 5.30.0.814,
ReHLDS 3.15.0.896
Install
1. Compile scripting/olds_autorestart.sma with amxxpc 1.10 and copy
olds_autorestart.amxx to addons/amxmodx/plugins/. The compiler needs
ReAPI's include files (reapi.inc and reapi_*.inc) in
addons/amxmodx/scripting/include/.
2. Copy data/lang/olds_autorestart.txt to addons/amxmodx/data/lang/.
3. Copy configs/plugins/olds_autorestart.cfg to addons/amxmodx/configs/plugins/.
4. Add olds_autorestart.amxx to addons/amxmodx/configs/plugins.ini.
Commands
amx_restartmatch restarts the match now (ADMIN_MAP, and the server console)
Settings (addons/amxmodx/configs/plugins/olds_autorestart.cfg)
olds_ar_rounds 30 rounds per match (0 = no round limit, up to 500)
olds_ar_score 16 round wins that end the match (0 = no score limit, up to 500)
olds_ar_delay 5 seconds between the announcement and the restart (0 - 60)
olds_ar_announce 1 1 = tell everyone in chat why and when the game restarts
No sounds, models or sprites are added. Texts are in
data/lang/olds_autorestart.txt (English).
Credits and licence
Written from scratch by alexit (olds.ro workshop) for workshop card LIB-1414.
Licence: GPL-3.0-or-later.