break out of loops after finding player

This commit is contained in:
rtldg 2021-11-22 05:26:04 +00:00
parent fb62419006
commit 86a19a559c

View File

@ -1299,6 +1299,7 @@ public Action Command_CCAdd(int client, int args)
{ {
gB_CCAccess[i] = true; gB_CCAccess[i] = true;
Shavit_PrintToChat(i, "%T", "CCAccessGranted", i, gS_ChatStrings.sVariable, gS_ChatStrings.sText); Shavit_PrintToChat(i, "%T", "CCAccessGranted", i, gS_ChatStrings.sVariable, gS_ChatStrings.sText);
break;
} }
} }
@ -1335,6 +1336,7 @@ public Action Command_CCDelete(int client, int args)
if (IsValidClient(i) && GetSteamAccountID(i) == iSteamID) if (IsValidClient(i) && GetSteamAccountID(i) == iSteamID)
{ {
gB_CCAccess[i] = false; gB_CCAccess[i] = false;
break;
} }
} }