Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Captain Team Draft

Featured Replies

  • Administrator

At the start of a match everyone goes to spectators, two captains are picked and take turns choosing their teams.

Captain Team Draft 1.0.0 (olds.ro)

An admin starts a draft: everyone goes to spectators, two captains are chosen (at random, by a vote, or named by the admin) and take turns picking players from a menu. When everyone is picked the teams are set and the round restarts.

Requirements

  • ReHLDS, ReGameDLL_CS, Metamod-r, ReAPI
  • AMX Mod X 1.10.0.5490 or newer (with cstrike)

Install

  • Compile scripting/olds_captain.sma and copy olds_captain.amxx to addons/amxmodx/plugins/. The compiler needs ReAPI's include files.
  • Copy data/lang/olds_captain.txt to addons/amxmodx/data/lang/.

Settings (addons/amxmodx/configs/plugins/olds_captain.cfg, created on first run)

  olds_cap_picktime 15    seconds per pick, and the captain vote's length (5-60)
  olds_cap_random 1       1 = captains at random, 0 = the players vote
  olds_cap_pickorder 1    1 = alternate (A B A B), 2 = snake (A B B A A B)

Command: amx_captain (ADMIN_BAN)

  amx_captain                  start; captains at random or by vote
  amx_captain <name> <name>    start with these two captains
  amx_captain status           the draft so far
  amx_captain stop             cancel; players stay where they are

Rules

  • At least 4 players (bots count, HLTV does not); with fewer the command is rejected with a message.
  • Everyone moves to spectators (cs_set_user_team; living players are killed first without losing a frag). The first captain takes the terrorists, the second the counter-terrorists.
  • The captain whose turn it is gets a menu of the players left. Without a choice in olds_cap_picktime seconds a random player is picked for them.
  • A captain who leaves is replaced by a player of their team (or, if none yet, of the pool), who continues the draft.
  • Players who join during the draft enter the pool; team changes are blocked while it runs.
  • When the pool is empty the teams are set and sv_restart 1 restarts the round.

No downloads: menus and chat messages only.

Install

Download the ZIP above and copy its folders into cstrike/. Compile the .sma in addons/amxmodx/scripting with the AMX Mod X 1.10 compiler, put the .amxx in addons/amxmodx/plugins, and add it to plugins.ini.

Files: addons/amxmodx/scripting/olds_captain.sma

Idea: olds.ro workshop library · Plugin: daemon · Tested automatically (compiled on AMX Mod X 1.8.2, 1.9 and 1.10, played on a CS 1.6 test server)
License: GPL-3.0-or-later. Written for the olds.ro plugin workshop (LIB-0054).

Captain Team Draft
v1.0.0Counter-Strike 1.6PluginNot tested yet
AMX Mod X 1.10Server engine ReHLDSNeeds ReAPI YesMetamod Metamod-R0 downloads5.8 KBUpdated 10 hours ago
Sign in to download
Pawn (AMX Mod X) · 526 lines
/*
 * Captain Team Draft (olds.ro workshop card LIB-0054)
 *
 * An admin starts a draft: everyone goes to spectators, two captains are
 * chosen (at random, by a vote, or named by the admin), and the captains
 * take turns picking players from a menu. When everyone is picked the teams
 * are set and the round restarts.
Show all 526 lines

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

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.