Skip to content

Commit

Permalink
Update G5WS.sp
Browse files Browse the repository at this point in the history
  • Loading branch information
rpkaul committed Aug 7, 2022
1 parent 02b10a5 commit 882c93b
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions scripting/G5WS.sp
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ public void OnPluginStart() {

g_EnableDemoUpload = CreateConVar("get5_upload_demos", "1", "Upload demo on post match.");

g_EnableSupportMessage = CreateConVar("get5_api_support_message", "0", "Enable a dono message every half time.");
g_EnableSupportMessage = CreateConVar("get5_api_support_message", "1", "Enable a dono message every half time.");

g_APIKeyCvar =
CreateConVar("get5_web_api_key", "", "Match API key, this is automatically set through rcon", FCVAR_DONTRECORD);
Expand Down Expand Up @@ -740,9 +740,9 @@ public void Get5_OnRoundEnd(const Get5RoundEndedEvent event) {

// Regulation halftime. (after round 15)
if (event.RoundNumber == roundsPerHalf) {
Get5_MessageToAll("This match has been brought to you by G5API!");
Get5_MessageToAll("");
if (g_EnableSupportMessage.BoolValue) {
Get5_MessageToAll("Consider supporting @ https://github.com/phlexplexico/G5API !");
Get5_MessageToAll("");
}
}

Expand All @@ -751,9 +751,9 @@ public void Get5_OnRoundEnd(const Get5RoundEndedEvent event) {
int otround = event.RoundNumber - 2 * roundsPerHalf; // round 33 -> round 3, etc.
// Do side swaps at OT halves (rounds 3, 9, ...)
if ((otround + roundsPerOTHalf) % (2 * roundsPerOTHalf) == 0) {
Get5_MessageToAll("This match has been brought to you by G5API!");
Get5_MessageToAll("");
if (g_EnableSupportMessage.BoolValue) {
Get5_MessageToAll("Consider supporting @ https://github.com/phlexplexico/G5API !");
Get5_MessageToAll("");
}
}
}
Expand Down

0 comments on commit 882c93b

Please sign in to comment.