Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Auto Restart After X Rounds

Featured Replies

  • Administrator

Restarts the game after a set number of rounds or when the score reaches a limit, resetting scores and money for a fresh match.

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

  • 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/.
  • Copy data/lang/olds_autorestart.txt to addons/amxmodx/data/lang/.
  • Copy configs/plugins/olds_autorestart.cfg to addons/amxmodx/configs/plugins/.
  • 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.

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_autorestart.sma

Idea: olds.ro workshop library · Plugin: alexit · 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 (LIB-1414).

Auto Restart After X Rounds
v1.0.0Counter-Strike 1.6PluginNot tested yet
AMX Mod X 1.10Server engine ReHLDSNeeds ReAPI YesMetamod Metamod-R0 downloads4.3 KBUpdated 10 hours ago
Sign in to download
Pawn (AMX Mod X) · 195 lines
/*
 * Auto Restart After X Rounds (olds.ro workshop card LIB-1414)
 *
 * 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
Show all 195 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.