Skip to content
View in the app

A better way to browse. Learn more.

Learn more

juggernaut-turn-queue/addons/amxmodx/scripting/include/olds_jugqueue.inc

olds_jugqueue.inc
32 lines · 0.9 KB · Pawn include
Raw
/*
 * Juggernaut Turn Queue (olds_jugqueue) API, for a Juggernaut core or a bridge plugin.
 * Copyright (C) 2026 daemon (olds.ro)
 * SPDX-License-Identifier: GPL-3.0-or-later
 */
#if defined _olds_jugqueue_included
    #endinput
#endif
#define _olds_jugqueue_included

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

/**
 * The first eligible volunteer in queue order (connected, alive, on a team).
 * Changes nothing.
 *
 * @return  player index, or 0 when nobody is eligible
 */
native olds_jugqueue_candidate();

/**
 * Call after the core has really made this player Juggernaut. The player leaves
 * the queue and everyone behind moves up. Do not call it if the assignment failed.
 *
 * @param id  player index
 * @return    1 if the player was queued, 0 otherwise
 * @error     invalid player index
 */
native olds_jugqueue_confirm(id);

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.