Skip to content

Commit 64c91e5

Browse files
committed
effects: fix disable effects after stop vote by cmd
1 parent afbfc94 commit 64c91e5

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

addons/amxmodx/scripting/map_manager_effects.sma

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
#include <map_manager>
55

66
#define PLUGIN "Map Manager: Effects"
7-
#define VERSION "0.0.7"
7+
#define VERSION "0.0.8"
88
#define AUTHOR "Mistrick"
99

1010
#pragma semicolon 1
@@ -149,6 +149,14 @@ public mapm_vote_started(type)
149149
send_audio(0, "sound/Gman/Gman_Choose2.wav", PITCH_NORM);
150150
}
151151
public mapm_vote_finished(const map[], type, total_votes)
152+
{
153+
disable_effects(map);
154+
}
155+
public mapm_vote_canceled(type)
156+
{
157+
disable_effects("");
158+
}
159+
disable_effects(const map[])
152160
{
153161
if(get_num(BLACK_SCREEN)) {
154162
remove_task(TASK_FULLBLACK);

0 commit comments

Comments
 (0)