/*
* Crown Tenure (olds_crown) API, for a King of the Hill core or a bridge plugin.
* Copyright (C) 2026 daemon (olds.ro)
* SPDX-License-Identifier: GPL-3.0-or-later
*/
#if defined _olds_crown_included
#endinput
#endif
#define _olds_crown_included
#pragma reqlib olds_crown
#if !defined AMXMODX_NOAUTOLOAD
#pragma loadlib olds_crown
#endif
/**
* The player now wears the crown. The previous king's reign closes. Calling it
* again for the current king changes nothing.
*
* @param id player index
* @return 1 on success
* @error invalid or disconnected player
*/
native olds_crown_assigned(id);
/**
* Nobody wears the crown any more (the running reign closes).
*/
native olds_crown_reset();