Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Swap Preview

Featured Replies

  • Administrator

Show both teams their next starting side before halftime.

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.

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/include/olds_match.inc, addons/amxmodx/scripting/olds_swapview.sma, test/mtest_stub.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 (AMX-025).

Swap Preview
v1.0.0Counter-Strike 1.6PluginNot tested yet
AMX Mod X 1.10Server engine ReHLDSNeeds ReAPI YesMetamod Metamod-R0 downloads3.6 KBUpdated 5 hours ago
Sign in to download
Pawn (AMX Mod X) · 179 lines
/*
 * Swap Preview (olds.ro workshop card AMX-025)
 * Copyright (C) 2026 daemon (olds.ro)
 *
 * This program is free software: you can redistribute it and/or modify it under the terms
 * of the GNU General Public License as published by the Free Software Foundation, either
 * version 3 of the License, or (at your option) any later version.
Show all 179 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.