Promote server
Black Friday Ends in 50% off a Master Server place and the Client list, which comes with LIFETIME PREMIUM
02 Days 06 Hrs 06 Min 23 Sec
See the deals

CSB Swap Teams flips both sides in one command. amx_swapteams moves every player between Terrorist and Counter-Terrorist with cs_set_user_team and respawns the ones who were alive through Ham_CS_RoundRespawn, so they appear at the correct spawn points. The plugin also mirrors the team scoreboard totals (counted from the round-win audio) and swaps them, re-sending the TeamScore message — so the score follows the players to their new side instead of staying stuck to the colour.

Inspired by the Swap Teams plugin from AMX Mod X. Independent GPL re-implementation.

Features

  • amx_swapteams swaps all assigned players in one call.
  • Alive players are respawned at valid spawn points via hamsandwich.
  • Team scores are mirrored from the win audio and swapped with the players.
  • Announced in chat and logged with the admin's name.

Installation

  1. Compile csb_swap_teams.sma and copy it to addons/amxmodx/plugins/.
  2. Add it to plugins.ini and change the map.

amx_swapteams needs the ADMIN_LEVEL_A flag (m) by default. Score mirroring starts counting from the moment the plugin loads.