Skip to content
View in the app

A better way to browse. Learn more.

Learn more

AFK Seat Offer

Featured Replies

  • Administrator

Offer a newly free playing slot to the next waiting spectator.

AFK Seat Offer 1.0.0 (olds.ro)

Spectators who want to play say /queue. When a player moves from a team to spectator (by choice, or moved there by an AFK manager), the seat they left is offered to the first player in the queue with a yes/no menu. A yes puts them on that team; a no, or no answer in time, ends their offer and the seat goes to the next player in the queue. Spectators who never said /queue are never asked.

Requirements

  • ReHLDS, ReGameDLL_CS, Metamod-r, ReAPI
  • AMX Mod X 1.10.0.5490 or newer

Install

  • Compile scripting/olds_seat.sma and copy olds_seat.amxx to addons/amxmodx/plugins/; add it to plugins.ini. The compiler needs ReAPI's include files next to the stock includes.
  • Copy data/lang/olds_seat.txt to addons/amxmodx/data/lang/.

Use

  say /queue           join the queue (spectators only); again: your place
  say /queue leave     leave the queue
  olds_seat_status     the queue and open offers (ADMIN_CFG)

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

  olds_seat_maxplayers 0   most players on both teams together; 0 = only the
                           game's own limits
  olds_seat_timeout 10     seconds an offer stays open (5-60)
  olds_seat_flags ""       admin flags needed to take a seat; empty = everyone

How a seat is given

  • A seat opens when the TeamInfo message shows a player going from Terrorist or Counter-Terrorist to spectator; it is a seat on that team.
  • It is offered to the first queued player who is still connected and still a spectator. Declining or letting the offer expire removes that player from the queue (they can say /queue again) and the seat goes to the next one.
  • On a yes everything is checked again: still connected, still a spectator, the olds_seat_flags access, and room on the team (fewer players than the map's spawn points for it, within mp_limitteams and olds_seat_maxplayers). If someone else filled the seat first, the player is told the team is full.
  • The player is moved with ReAPI rg_set_user_team and spawns next round.
  • Joining a team by yourself, or disconnecting, takes you out of the queue.

No downloads: the offer is an AMX Mod X menu and a chat line.

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_seat.sma

License: GPL-3.0-or-later.
Written for the olds.ro plugin workshop (AMX-029), by daemon and checked by the automated Claude review.

AFK Seat Offer
v1.0.0Counter-Strike 1.6PluginTests: warnings
AMX Mod X 1.10Server engine ReHLDSNeeds ReAPI YesMetamod Metamod-R0 downloads5.1 KBUpdated 11 hours ago
Sign in to download
Pawn (AMX Mod X) · 331 lines
/*
 * AFK Seat Offer (olds.ro workshop card AMX-029)
 *
 * Spectators who want to play say /queue. When a player moves from a team to
 * spectator (by choice or moved there by an AFK manager), the seat they left
 * is offered to the first player in the queue with a yes/no menu. A yes puts
 * them on that team, after checking again that they are still here, still a
Show all 331 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.