Skip to content
View in the app

A better way to browse. Learn more.

Learn more

crown-tenure/addons/amxmodx/scripting/include/olds_crown.inc

olds_crown.inc
29 lines · 0.7 KB · Pawn include
Raw
/*
 * 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();

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.