Skip to content
View in the app

A better way to browse. Learn more.

Learn more

Fast Spectator Transfer

Featured Replies

  • Administrator

Players move to spectators with a quick chat command and return to their former team, without losing their score on return.

Fast Spectator Transfer 1.0.0 (olds.ro)

Two chat commands for a quick break: /spec moves you to the spectators at once, also while you are alive, and /back puts you back in the team you left, unless that team is full or your return would unbalance the teams.

Requirements

  • ReHLDS, ReGameDLL_CS, Metamod-R, ReAPI
  • AMX Mod X 1.10 or newer (written for 1.10.0.5490)

Install

  • Compile scripting/olds_fastspec.sma and copy olds_fastspec.amxx to addons/amxmodx/plugins/. The compiler needs ReAPI's include files (reapi.inc and the reapi_*.inc files from the ReAPI release) next to the stock AMX Mod X includes.
  • Copy data/lang/olds_fastspec.txt to addons/amxmodx/data/lang/.
  • Copy configs/plugins/olds_fastspec.cfg to addons/amxmodx/configs/plugins/ (if it is missing, the plugin writes it with the default values).
  • Add olds_fastspec.amxx to addons/amxmodx/configs/plugins.ini.

Commands

  say /spec   (also in team chat) Go to the spectators; your team is
              remembered.
  say /back   (also in team chat) Return to the team you left with /spec.
              Without an earlier /spec it only prints a hint.

How it works

  • /spec moves the player with ReAPI's rg_join_team, the same way the game makes a player a spectator. A living player dies quietly (no kill feed line) and counts as dead for the round; a carried C4 is dropped.
  • /back puts the player back in his former team; he plays again from his next spawn (at once if the round still lets new players spawn).
  • /back is refused while that team has no free spawn point (the game's own "team full" rule), and when the team would then have more than olds_fspec_maxdiff players over the other team. The player is told why.
  • Both commands share a cooldown of olds_fspec_cd seconds, and they do not work during freeze time unless olds_fspec_freeze is 1.
  • With the game's allow_spectators 0, /spec is refused.

Settings (addons/amxmodx/configs/plugins/olds_fastspec.cfg)

  olds_fspec_cd 5        seconds between two uses of /spec or /back (0 - 60)
  olds_fspec_keep 1      1 = going to the spectators costs nothing on the
                         scoreboard; 0 = a living player gets one death, as
                         when the game's team menu moves him
  olds_fspec_maxdiff 2   most players the returning player's team may have
                         over the other team after /back (0 = no check)
  olds_fspec_freeze 0    1 = the commands also work during freeze time

No sounds, models or sprites are added.

Credits and licence Written from scratch by alexit (olds.ro workshop) for workshop card LIB-2063. Licence: GNU GPL version 3 or later (GPL-3.0-or-later).

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

Idea: olds.ro workshop library · Plugin: alexit · 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 (LIB-2063).

Fast Spectator Transfer
v1.0.0Counter-Strike 1.6PluginNot tested yet
AMX Mod X 1.10Server engine ReHLDSNeeds ReAPI YesMetamod Metamod-R0 downloads5.3 KBUpdated 10 hours ago
Sign in to download
Pawn (AMX Mod X) · 278 lines
/*
 * Fast Spectator Transfer (olds.ro workshop card LIB-2063)
 *
 * say /spec moves a player to the spectators at once, also while alive, and
 * remembers his team; say /back puts him back in that team, unless the team
 * is full or the return would unbalance the teams.
 *
Show all 278 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.