Skip to content
View in the app

A better way to browse. Learn more.

Learn more

[Plugin] Round Restart Command v1.0.0 (amx_restartround, amx_restartgame)

Featured Replies

[Plugin] Round Restart Command v1.0.0 (amx_restartround, amx_restartgame)v1.0.0Counter-Strike 1.6Plugin
0 downloads · 3.1 KB · Updated 3 hours ago
AMX Mod X: 1.9, 1.10Server engine: ReHLDSNeeds ReAPI: No
Sign in to download
Alexitv1.0.0 First release. · 1 file
Pawn (AMX Mod X) · 269 lines
/*
 * Round Restart Command (olds.ro workshop card LIB-1885)
 *
 * Admins restart the current round, or the whole game, from the console:
 * at once, or after a countdown that every player sees in the centre of the
 * screen and hears as a spoken count (the stock fvox voice of the game, so
 * nothing is downloaded).
 *
 * Console commands (admins with the ADMIN_MAP flag, and the server console):
 *   amx_restartround [seconds]   When the countdown reaches 0 the round ends
 *                                as a draw and the next one starts after
 *                                mp_round_restart_delay. Money, scores and
 *                                weapons are kept.
 *   amx_restartgame [seconds]    When the countdown reaches 0 the game
 *                                restarts (sv_restart 1): scores and money
 *                                go back to the start values.
 * Without seconds, or with 0, the restart happens at once. Running either
 * command while a countdown is running cancels that countdown. A round
 * restart that is still counting when the round ends by itself is dropped,
 * because that round is already over.
 *
 * Cvars (saved with their descriptions in configs/plugins/olds_restart.cfg
 * the first time the plugin starts):
 *   olds_rr_maxdelay 10   Longest countdown in seconds (1 - 60). A longer
 *                         request is cut to this and the admin is told.
View olds_restart.sma →
Install into: cstrike/
1.0.0 12/4/2026
First release.
v1.0.012/4/2026 · 3.1 KB · 0 downloads
  • Administrator

Name: Round Restart Command

Version: 1.0.0

Author: alexit (olds.ro)

License: GPL-3.0-or-later (the .sma source is attached below)

Description: Admins restart the current round, or the whole game, from the console. The restart happens at once, or after a countdown that every player sees in the centre of the screen and hears as a spoken count (the game's own fvox voice, so nothing is downloaded).

Screenshots: -

Download: olds_restart.sma (attached below)

Admin commands (console, ADMIN_MAP flag, and the server console):

amx_restartround [seconds] - when the countdown reaches 0, the round ends as a draw and the next one starts after mp_round_restart_delay. Money, scores and weapons are kept. Needs ReGameDLL_CS.

amx_restartgame [seconds] - when the countdown reaches 0, the game restarts (sv_restart 1), and scores and money go back to their start values.

Without seconds, or with 0, the restart happens at once. Running either command while a countdown is running cancels it. A round restart that is still counting when the round ends by itself is dropped.

Installation:

1) Put olds_restart.sma in addons/amxmodx/scripting and compile it with the AMX Mod X 1.10 compiler (0 errors, 0 warnings)

2) Put olds_restart.amxx in addons/amxmodx/plugins

3) Open addons/amxmodx/configs/plugins.ini and add at the end: olds_restart.amxx

Cvars (created automatically, with descriptions, in addons/amxmodx/configs/plugins/olds_restart.cfg on the first start):

olds_rr_maxdelay 10 - the longest countdown in seconds (1 to 60); a longer request is cut to this value and the admin is told

olds_rr_log 1 - 1 = write who restarted or cancelled to the AMX Mod X log

Required modules: none beyond the AMX Mod X core.

Tested on: ReHLDS 3.15.0.896, ReGameDLL_CS 5.30.0.814, Metamod-R 1.3.0.149, AMX Mod X 1.10.0-git5490. ReAPI is not needed.

Credits: written from scratch for the olds.ro workshop (card LIB-1885), checked by two reviewers (alexit and daemon).

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

Navigation

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.