Skip to content
View in the app

A better way to browse. Learn more.

Learn more

rematch-envelope/README.txt

README.txt
41 lines · 1.8 KB · Text
Raw
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
  1. Compile scripting/olds_rematch.sma and copy olds_rematch.amxx to
     addons/amxmodx/plugins/, after the duel manager in plugins.ini.
  2. 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.

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.