Skip to content

Commit

Permalink
Minor fixes in function responsible for disabling mod.
Browse files Browse the repository at this point in the history
  • Loading branch information
d3m37r4 committed Dec 8, 2023
1 parent e300e83 commit c46e698
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion cstrike/addons/amxmodx/scripting/regg/functions.inl
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ bool:start(const ReGG_Mode:mode) {

Mode = mode;
set_member_game(m_bCompleteReset, true);
set_member_game(m_bGameStarted, true);

rg_round_end(
.tmDelay = 3.0,
Expand All @@ -47,7 +48,15 @@ bool:finish(const killer, const victim) {

Mode = ReGG_ModeNone;
set_member_game(m_bCompleteReset, true);
rg_restart_round();

rg_round_end(
.tmDelay = 3.0,
.st = WINSTATUS_DRAW,
.event = ROUND_END_DRAW,
.message = "Game over!",
.sentence = "",
.trigger = true
);
DebugMode && log_amx("GunGame Mod finished!");

return true;
Expand Down

0 comments on commit c46e698

Please sign in to comment.