Skip to content

Commit

Permalink
Fixed players not part of the match not being displayed as spectators…
Browse files Browse the repository at this point in the history
… when server is paused
  • Loading branch information
rtxa committed Aug 8, 2024
1 parent 08dc026 commit 5c5f852
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions valve/addons/amxmodx/scripting/agmodx.sma
Original file line number Diff line number Diff line change
Expand Up @@ -447,6 +447,8 @@ public plugin_init() {

register_concmd("help", "CmdHelp", ADMIN_ALL, "AGCMD_HELP", _, true);

register_concmd("test", "CmdTest", ADMIN_ALL);

register_clcmd("spectate", "CmdSpectate"); // block spectate
register_clcmd("drop", "CmdDrop"); // block drop
register_clcmd("jointeam", "CmdJoinTeam"); // this will make work the vgui
Expand Down Expand Up @@ -559,8 +561,11 @@ public client_putinserver(id) {
if (gSendConnectingToSpec) {
// warning: authid checking can fail because client_authorized() can be called after this...
if (!gVersusStarted || !RestoreScore_FindPlayer(id)) {
set_pev(id, pev_iuser1, 1); // This will make it show up in the scoreboard in spectator list
set_task(0.1, "SendToSpec", id + TASK_SENDTOSPEC); // delay to avoid some scoreboard glitchs
}


}

set_task(3.0, "ShowSettings", id);
Expand Down

0 comments on commit 5c5f852

Please sign in to comment.