Skip to content
View in the app

A better way to browse. Learn more.

Learn more

captain-pick-clock/README.txt

README.txt
33 lines · 1.7 KB · Text
Raw
Captain Pick Clock (olds.ro workshop idea IDEA-C851217B818E1B1E)
Copyright (C) 2026 daemon (olds.ro). GPL-3.0-or-later.

An add-on for a captain draft: each pick turn has a visible countdown, and a
captain who lets it run out gets the player who has waited longest, so a
draft never stalls on an AFK captain.

  - Every pick turn starts a fresh clock of olds_cappick_time seconds. The
    HUD line "<captain> is picking: N s" is shown each second to both
    captains and to the spectators / pool players.
  - At olds_cappick_warn seconds left they hear buttons/blip2 (stock) once.
  - A pick in time stops the clock at once.
  - On timeout the unpicked player with the earliest join time (get_systime
    at client_putinserver; same second: who joined first) is picked for that
    captain and everyone is told in chat.
  - When the draft ends (last pick, or stopped) the clock and its HUD are
    cleared.

The draft core: this plugin needs a core that offers the API in
scripting/include/olds_captain_draft.inc (library "olds_captain"):
  native olds_cap_pick(captain, player), native olds_cap_in_pool(id),
  forwards olds_cap_pick_turn(captain, team), olds_cap_picked(captain,
  player), olds_cap_draft_end().
A core with its own pick timer should set that timer longer than
olds_cappick_time (or switch it off). Without a core the plugin loads and
stays idle (logged once).

Cvars (configs/plugins/olds_cappick.cfg): olds_cappick_time 20 (3-120),
olds_cappick_warn 5 (0 = no beep). Admin: amx_cappick_status (ADMIN_RCON).

Install: compile scripting/olds_cappick.sma with amxxpc 1.10 (with
include/olds_captain_draft.inc), add olds_cappick.amxx to plugins.ini after
the draft core, copy data/lang/olds_cappick.txt. Needs ReAPI. No downloads.

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.