AdminStealth 0.3.14: a team pick closes the team screen for hidden admins

Telling only their client they joined spectators left the screen open, so the
admin had to unhide to get out. Move them to spectators and back to no team,
as css_hide does, with sv_disable_teamselect_menu on around it.
This commit is contained in:
Astra 2026-10-03 00:20:33 +01:00
parent 0446fe49e8
commit 7eba09905a
2 changed files with 36 additions and 12 deletions

View file

@ -20,8 +20,9 @@ admin off the scoreboard. This plugin makes it look like they left the server:
the team select screen doesn't open, until the restore hides them again.
- The team select screen: the server's "team" menu message (`CS_UM_VGUIMenu`) is never sent to
a hidden admin. M opens it on the client regardless, and a player with no team can't close it
without picking, so a pick is answered by telling only that client it joined spectators
(with `sv_disable_teamselect_menu` on around it); nobody else sees a team change.
without picking, so a pick moves them to spectators and straight back to no team, as `css_hide`
does (with `sv_disable_teamselect_menu` on around it), which closes it. The team events aren't
broadcast; for about 0.15 s they're on the spectator list of anyone looking at the scoreboard.
- Restoring runs `css_hide` at most once: it toggles, so a second run could unhide them.
Needs our SimpleAdmin fork (1.8.2b-zio2 or later), where moving to spectators doesn't unhide a