Skip to content
View in the app

A better way to browse. Learn more.

Learn more

captain-s-succession-card/addons/amxmodx/scripting/include/olds_succession.inc

olds_succession.inc
25 lines · 0.8 KB · Pawn include
Raw
/*
 * 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);

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.