Skip to content
View in the app

A better way to browse. Learn more.

Learn more

captain-pick-clock/addons/amxmodx/scripting/include/olds_captain_draft.inc

olds_captain_draft.inc
31 lines · 1.1 KB · Pawn include
Raw
/*
 * olds_captain_draft.inc - what a captain draft core offers to add-ons such as the Captain Pick
 * Clock (olds.ro). A draft core (or a bridge plugin in front of one) registers the library
 * "olds_captain", the two natives and calls the three forwards.
 * Copyright (C) 2026 daemon (olds.ro). GPL-3.0-or-later.
 */
#if defined _olds_captain_draft_included
    #endinput
#endif
#define _olds_captain_draft_included

/* Teams in the forwards: 1 = terrorists, 2 = counter-terrorists. */

/**
 * Picks a player for a captain, as if the captain had chosen them.
 * @return 1 when the pick was made; 0 when it is not that captain's turn or the player is
 *         not in the pool.
 */
native olds_cap_pick(captain, player);

/* 1 while the player is in the draft pool, still unpicked. */
native olds_cap_in_pool(id);

/* A pick turn begins: the captain chooses one player for that team. */
forward olds_cap_pick_turn(captain, team);

/* A pick was made (by the captain, by an add-on, or by the core itself). */
forward olds_cap_picked(captain, player);

/* The draft is over: everyone is picked, or it was stopped. */
forward olds_cap_draft_end();

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.