Skip to content

Commit

Permalink
解锁大厅
Browse files Browse the repository at this point in the history
  • Loading branch information
fantasylidong committed Mar 14, 2024
1 parent 492e316 commit 0ebe292
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
Binary file modified addons/sourcemod/plugins/optional/slots_vote.smx
Binary file not shown.
6 changes: 6 additions & 0 deletions addons/sourcemod/scripting/slots_vote.sp
Original file line number Diff line number Diff line change
Expand Up @@ -49,6 +49,12 @@ public Action SlotsRequest(int client, int args)
CPrintToChatAll("%t %t", "Tag", "LimitedSlotsTo", sName, Int);
SetConVarInt(FindConVar("sv_maxplayers"), Int);
SetConVarInt(FindConVar("sv_visiblemaxplayers"), Int);
if(Int > numSlots())
{
if(L4D_LobbyIsReserved())
L4D_LobbyUnreserve();
SetConVarInt(FindConVar("sv_allow_lobby_connect_only"), 0);
}
}
else{
if (Int > MaxSlots)
Expand Down

0 comments on commit 0ebe292

Please sign in to comment.