/*
* 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);