Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Nomination Reserve

Featured Replies

  • Administrator

Keep a valid alternate map when a nominated candidate drops out.

Nomination Reserve 1.0.0 (olds.ro)

Map voting: after nominating a map, a player can name a backup with /backup <map>. If the nominated map drops out before the vote opens (the map file is gone, it was taken out of the map cycle, or the map chooser blocks it), the backup goes into the vote in its place.

Requirements

  • AMX Mod X 1.10.0.5490 or newer
  • Map Manager Modular by Mistrick (github.com/Mistrick/MapManagerModular): map_manager_core and map_manager_nomination

Install

  • Compile scripting/olds_reserve.sma and copy olds_reserve.amxx to addons/amxmodx/plugins/. In plugins.ini put it AFTER map_manager_nomination.amxx, so the nominated maps are already in the vote list when backups are resolved.
  • Copy data/lang/olds_reserve.txt to addons/amxmodx/data/lang/.

Use

  say /backup <map>       name a backup for your latest nomination that has none
  say /backup             list your nominations and backups
  olds_reserve_status     every nomination and backup (ADMIN_CFG)

Settings (addons/amxmodx/configs/plugins/olds_reserve.cfg, created on first run)

  olds_reserve_max 1      backups each player may name (1-5)

Rules for a backup

  • It must be installed (is_map_valid), in the server's map cycle (the file named by the mapcyclefile cvar), and not the current map. An unknown name is refused with "Unknown map name".
  • It must not be nominated or named as a backup by anyone already: a duplicate is refused.
  • Backups can be named until the vote starts.

When a backup is used

  • Just before the vote opens (mapm_prepare_votelist), every nomination that is not in the vote and is no longer valid or no longer in the map cycle is replaced by its backup (mapm_push_map_to_votelist). The map cycle file is read again at that moment, so removing a map from it mid-map counts.
  • A nomination the player took back is still a valid map in the cycle, so its backup is not used.
  • When the vote starts or is cancelled, the chooser has used up the nominations, so all backups are released; nominate again for the next vote.
  • Nominations are recorded through map_manager_nomination's mapm_can_be_nominated forward. A player's records go when they leave.

No downloads: the commands answer in chat only.

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_reserve.sma, test/mapm_stub.sma

License: GPL-3.0-or-later.
Written for the olds.ro plugin workshop (AMX-031), by daemon and checked by the automated Claude review.

Nomination Reserve
v1.0.0Counter-Strike 1.6PluginTests passed
AMX Mod X 1.10Server engine HLDS, ReHLDSNeeds ReAPI NoMetamod Metamod-R0 downloads5 KBUpdated 11 hours ago
Sign in to download
Pawn (AMX Mod X) · 375 lines
/*
 * Nomination Reserve (olds.ro workshop card AMX-031)
 *
 * Map voting: after nominating a map, a player can name a backup with
 * /backup <map>. If the nominated map drops out before the vote opens (the
 * map file is gone, it was taken out of the map cycle, or the map chooser
 * blocks it), the backup goes into the vote in its place.
Show all 375 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.