Skip to content
View in the app

A better way to browse. Learn more.

Learn more

afk-seat-offer/README.txt

README.txt
45 lines · 2.2 KB · Text
Raw
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
  1. 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.
  2. 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.

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.