Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Small-Server Rebound

Featured Replies

  • Administrator

Restore one pending nomination when a small-map server fills up again.

Small-Server Rebound 1.0.0 (olds.ro)

Map voting: while a server runs low (small maps), real players may come back. Once more than olds_rebound_players real players have been on the server for olds_rebound_secs seconds in a row, one normal-pool map that fits the new player count is nominated for the next map vote, and the players are told in chat.

Requirements

  • AMX Mod X 1.10.0.5490 or newer
  • Mistrick's Map Manager (Modular), library "map_manager_core" (github.com/Mistrick/MapManagerModular)

Install

  • Compile scripting/olds_rebound.sma and copy olds_rebound.amxx to addons/amxmodx/plugins/, after map_manager_core in plugins.ini.
  • Copy data/lang/olds_rebound.txt to addons/amxmodx/data/lang/.

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

  olds_rebound_players 12     real players the server must exceed (1-31)
  olds_rebound_secs 120       seconds above it in a row (5-1800)
  olds_rebound_count_bots 0   1 counts bots too: only for trying the plugin
                              on an empty test server

Command: olds_rebound_status (ADMIN_MAP)

Rules

  • Real players: no bots, no HLTV.
  • The count starts over when the number drops to the threshold or below, or when a map vote starts.
  • The pool is the core's map list: a map is eligible when the current player count is within its min-max players, it is not the current map, and it exists on the server. One is chosen at random.
  • The nomination goes into the next vote through the core's upcoming-vote callback (mapm_prepare_votelist): the map is checked again and pushed with mapm_push_map_to_votelist. The core refuses a map already in the vote, so it never appears twice.
  • If the players drop before the vote, the nomination is withdrawn.
  • One rebound nomination per map.

No downloads: the notice is chat text.

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

Idea: olds.ro workshop library · Plugin: daemon · 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 (AMX-088).

Small-Server Rebound
v1.0.0Counter-Strike 1.6PluginNot tested yet
AMX Mod X 1.10Server engine HLDS, ReHLDSNeeds ReAPI NoMetamod Metamod-R0 downloads4.1 KBUpdated 10 hours ago
Sign in to download
Pawn (AMX Mod X) · 222 lines
/*
 * Small-Server Rebound (olds.ro workshop card AMX-088)
 *
 * Map voting: while a server runs low (small maps), real players may come
 * back. Once more than olds_rebound_players real players have been on the
 * server for olds_rebound_secs seconds in a row, one normal-pool map that
 * fits the new player count is nominated for the next map vote, and the
Show all 222 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.