Skip to content
View in the app

A better way to browse. Learn more.

Learn more

rematch-envelope/addons/amxmodx/scripting/include/olds_duel_manager.inc

olds_duel_manager.inc
45 lines · 1.2 KB · Pawn include
Raw
/*
 * The duel manager API that Rematch Envelope (olds_rematch) uses. A Knife
 * Arena duel manager, or a bridge plugin in front of one, provides these
 * under the library name "duel_manager".
 * Copyright (C) 2026 daemon (olds.ro)
 * SPDX-License-Identifier: GPL-3.0-or-later
 */
#if defined _olds_duel_manager_included
    #endinput
#endif
#define _olds_duel_manager_included

#pragma reqlib duel_manager
#if !defined AMXMODX_NOAUTOLOAD
    #pragma loadlib duel_manager
#endif

/**
 * A duel ended (call with ExecuteForward on a CreateMultiForward("duel_end",
 * ET_IGNORE, FP_CELL, FP_CELL, FP_CELL)).
 *
 * @param playerA   one finisher
 * @param playerB   the other finisher
 * @param winner    playerA, playerB, or 0 for a draw
 */
forward duel_end(playerA, playerB, winner);

/**
 * A duel phase starts (CreateMultiForward("duel_phase_start", ET_IGNORE, FP_CELL)).
 *
 * @param phase     the phase's number
 */
forward duel_phase_start(phase);

/**
 * @return  1 if the player may be put in a duel now
 */
native duel_is_eligible(id);

/**
 * Queues a rematch between the two players for the next duel phase.
 *
 * @return  1 if queued
 */
native duel_enqueue_rematch(playerA, playerB);

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.