Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Rematch Envelope

Featured Replies

  • Administrator

Let two duel finishers consent to a rematch for the next eligible duel phase.

Rematch Envelope 1.0.0 (olds.ro)

Knife Arena: when a duel ends, its two finishers get a private yes/no invitation to a rematch. Only if both accept within olds_rematch_secs seconds is the rematch handed to the duel manager for its next duel phase.

Requirements

  • AMX Mod X 1.10.0.5490 or newer
  • A duel manager with the API in scripting/include/olds_duel_manager.inc (library "duel_manager"), directly or through a small bridge plugin

Install

  • Compile scripting/olds_rematch.sma and copy olds_rematch.amxx to addons/amxmodx/plugins/, after the duel manager in plugins.ini.
  • Copy data/lang/olds_rematch.txt to addons/amxmodx/data/lang/.

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

  olds_rematch_secs 12   seconds both finishers have to accept (5-60)

Commands

  say /rematch           reopen your invitation menu, if you closed it
  say /rematch yes|no    answer without the menu
  olds_rematch_status (ADMIN_CFG)   open invitations and rematches queued

Rules

  • The invitation is a private AMXX menu to each finisher.
  • It lasts olds_rematch_secs seconds and never past the next duel phase.
  • Declining, or letting it run out, cancels it; a finisher who had accepted is told it was declined. A finisher leaving cancels it.
  • Just before enqueueing, both players are checked again: the same people (user ids), still connected, and eligible for the manager. One invitation gives at most one rematch entry.

For the manager (include/olds_duel_manager.inc, library "duel_manager") forward duel_end(playerA, playerB, winner) forward duel_phase_start(phase) native duel_is_eligible(id) native duel_enqueue_rematch(playerA, playerB)

No downloads: the invitation is an AMXX menu.

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/include/olds_duel_manager.inc, addons/amxmodx/scripting/olds_rematch.sma, test/duel_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-094).

Rematch Envelope
v1.0.0Counter-Strike 1.6PluginNot tested yet
AMX Mod X 1.10Server engine HLDS, ReHLDSNeeds ReAPI NoMetamod Metamod-R0 downloads5.4 KBUpdated 10 hours ago
Sign in to download
Pawn (AMX Mod X) · 332 lines
/*
 * Rematch Envelope (olds.ro workshop card AMX-094)
 *
 * Knife Arena: when a duel ends, its two finishers get a private yes/no
 * invitation to a rematch. Only if both accept within olds_rematch_secs
 * seconds is the rematch handed to the duel manager for its next duel phase.
 *
Show all 332 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.