/*
* Captain's Succession Card (olds_succession) API, for a captain mod or a bridge plugin.
* Copyright (C) 2026 daemon (olds.ro)
* SPDX-License-Identifier: GPL-3.0-or-later
*/
#if defined _olds_succession_included
#endinput
#endif
#define _olds_succession_included
#pragma reqlib olds_succession
#if !defined AMXMODX_NOAUTOLOAD
#pragma loadlib olds_succession
#endif
/**
* Reports a team's captain. Call it whenever the role is assigned, replaced or
* left vacant. Repeating the current captain changes nothing.
*
* @param team 1 = terrorists, 2 = counter-terrorists
* @param id the new captain, or 0 when the role is vacant
* @return 1 if recorded, 0 when no round is running
* @error invalid team or player
*/
native olds_succession_set(team, id);