Skip to content

Commit

Permalink
Fix players who just joined when a match is on not being shown as spe…
Browse files Browse the repository at this point in the history
…ctators when the server is paused
  • Loading branch information
rtxa committed Aug 8, 2024
1 parent 08dc026 commit a515e7c
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 a515e7c

Please sign in to comment.