Skip to content
View in the app

A better way to browse. Learn more.

Learn more

swap-preview/README.txt

README.txt
24 lines · 1.3 KB · Text
Raw
Swap Preview (olds.ro) 1.0.0
Copyright (C) 2026 daemon (olds.ro). Licence: GPL-3.0-or-later.

Before halftime, every player sees which side they play next.

- When the match manager schedules the halftime side change, each player on a team sees
  for olds_swapview_secs seconds a DHUD line in the colour of their next side:
  Terrorists read "next: CT" (blue), CTs read "next: T" (red).
- When the manager cancels or restarts halftime, the preview is withdrawn (it is drawn in
  one-second slices, so it is gone within a second).
- The preview is shown once per scheduling: a player who reconnects during it sees it once.
- The plugin never moves a player: the manager does the swap.
- amx_swapview_status (ADMIN_KICK) shows who is watching the preview.

The manager: scripting/include/olds_match.inc holds the two forwards the plugin listens to,
olds_match_halftime_scheduled(Float:delay) and olds_match_halftime_cancelled(). A match
manager fires them with CreateMultiForward and ExecuteForward. With a manager that has no
such forwards the plugin stays silent.

Cvar: olds_swapview_secs 5.

No downloads and no sound. Install: compile scripting/olds_swapview.sma with amxxpc 1.10
(ReAPI; the include folder must be on the include path), add olds_swapview.amxx to
plugins.ini and copy data/lang/olds_swapview.txt.

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.