Skip to content

Commit

Permalink
Tweak colors.
Browse files Browse the repository at this point in the history
  • Loading branch information
splewis committed May 31, 2014
1 parent 617012a commit 787ca4d
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
7 changes: 7 additions & 0 deletions csgo/addons/sourcemod/scripting/pugsetup.sp
Original file line number Diff line number Diff line change
Expand Up @@ -143,6 +143,13 @@ public OnClientConnected(client) {
public OnClientDisconnect(client) {
g_Teams[client] = CS_TEAM_SPECTATOR;
g_Ready[client] = false;
new numPlayers = 0;
for (new i = 1; i <= MaxClients; i++)
if (IsValidClient(i) && !IsFakeClient(i))
numPlayers++;

if (numPlayers == 0 && (g_MapType != MapType_Vote || !g_mapSet))
EndMatch();
}

public OnMapStart() {
Expand Down
12 changes: 6 additions & 6 deletions csgo/addons/sourcemod/scripting/pugsetup/playermenus.sp
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,10 @@ public InitialChoiceHandler(Handle:menu, MenuAction:action, param1, param2) {

new InitialPick:choice = InitialPick:GetMenuInt(menu, param2);
if (choice == InitialPick_Player) {
PrintToChatAll(" \x01\x0B\x07%N \x01has elected to get the \x03first player pick.", g_capt1);
PrintToChatAll(" \x01\x0B\x05%N \x01has elected to get the \x05first player pick.", g_capt1);
SideMenu(g_capt2);
} else if (choice == InitialPick_Side) {
PrintToChatAll(" \x01\x0B\x07%N \x01has elected to pick the \x03starting teams.", g_capt1);
PrintToChatAll(" \x01\x0B\x05%N \x01has elected to pick the \x05starting teams.", g_capt1);
SideMenu(g_capt1);
} else {
ERROR_FUNC("unknown intial choice: %d", choice);
Expand Down Expand Up @@ -62,10 +62,10 @@ public SideMenuHandler(Handle:menu, MenuAction:action, param1, param2) {

new teamPick = -1;
if (choice == SideChoice_CT) {
PrintToChatAll(" \x01\x0B\x07%N \x01has picked \x03CT \x01first.", g_capt2);
PrintToChatAll(" \x01\x0B\x09%N \x01has picked \x03CT \x01first.", g_capt2);
teamPick = CS_TEAM_CT;
} else if (choice == SideChoice_T) {
PrintToChatAll(" \x01\x0B\x07%N \x01has picked \x02T \x01first.", g_capt2);
PrintToChatAll(" \x01\x0B\x09%N \x01has picked \x07T \x01first.", g_capt2);
teamPick = CS_TEAM_T;
} else {
ERROR_FUNC("Unknown side pick: %d", choice);
Expand Down Expand Up @@ -110,9 +110,9 @@ public PlayerMenuHandler(Handle:menu, MenuAction:action, param1, param2) {
g_Teams[selected] = g_Teams[client];
SwitchPlayerTeam(selected, g_Teams[client]);
if (client == g_capt1)
PrintToChatAll(" \x01\x0B\x06%N \x01has picked \x05%N", client, selected);
PrintToChatAll(" \x01\x0B\x05%N \x01has picked \x06%N", client, selected);
else
PrintToChatAll(" \x01\x0B\x07%N \x01has picked \x02%N", client, selected);
PrintToChatAll(" \x01\x0B\x09%N \x01has picked \x07%N", client, selected);

if (!IsPickingFinished()) {
new nextCapt = OtherCaptain(client);
Expand Down

0 comments on commit 787ca4d

Please sign in to comment.