Skip to content

Commit

Permalink
v 1.1.8.6 fix
Browse files Browse the repository at this point in the history
  • Loading branch information
WessTorn committed Jun 6, 2021
1 parent 48bc653 commit 416af3a
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
2 changes: 1 addition & 1 deletion scripting/HnsMatchSystem.sma
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ public plugin_precache() {
}

public plugin_init() {
register_plugin("Hide'n'Seek Match System", "1.1.8.5", "??"); // Спасибо: Cultura, Garey, Medusa, Ruffman, Conor
register_plugin("Hide'n'Seek Match System", "1.1.8.6", "??"); // Спасибо: Cultura, Garey, Medusa, Ruffman, Conor

get_mapname(g_eMatchInfo[e_mMapName], charsmax(g_eMatchInfo[e_mMapName]));

Expand Down
2 changes: 1 addition & 1 deletion scripting/include/hns-match/cmds.inc
Original file line number Diff line number Diff line change
Expand Up @@ -580,7 +580,7 @@ public cmdShowTimers(id) {
fnConvertTime(g_flSidesTime[1], timeToWin[1], 23);
if (!g_iCurrentSW) {
client_print_color(id, print_team_blue, "%L", 0, "SCORE_TIME_MR1",
timeToWin[1], TTsize, CTSize, timeToWin[0],
timeToWin[0], TTsize, CTSize, timeToWin[1],
(g_iRoundsPlayed[!g_iCurrentSW] + g_iRoundsPlayed[g_iCurrentSW]) + 1, get_pcvar_num(g_eCvars[e_cMaxRounds]) * 2);
} else {
client_print_color(id, print_team_blue, "%L", 0, "SCORE_TIME_MR2",
Expand Down
8 changes: 5 additions & 3 deletions scripting/include/hns-match/hook.inc
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,11 @@ public rgRoundEnd(WinStatus:status, ScenarioEventEndRound:event, Float:tmDelay)
rg_swap_all_players();
}
if (g_flSidesTime[!g_iCurrentSW] > g_flSidesTime[g_iCurrentSW]) {
fnConvertTime(g_flSidesTime[!g_iCurrentSW] - g_flSidesTime[g_iCurrentSW], szTime, charsmax(szTime));
setTaskHud(0, 3.0, 1, 255, 153, 0, 5.0, fmt("Last Round!^n TT Need %s Time to Win!", szTime));
g_bLastRound = true;
if (!g_bLastRound) {
fnConvertTime(g_flSidesTime[!g_iCurrentSW] - g_flSidesTime[g_iCurrentSW], szTime, charsmax(szTime));
setTaskHud(0, 3.0, 1, 255, 153, 0, 5.0, fmt("Last Round!^n TT Need %s Time to Win!", szTime));
g_bLastRound = true;
}
}
} else {
if (!g_bLastRound) {
Expand Down

0 comments on commit 416af3a

Please sign in to comment.