Skip to content

Commit 14d88d4

Browse files
committed
informer: show info about changelevel instead no timelimit
1 parent afbb56a commit 14d88d4

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

addons/amxmodx/scripting/map_manager_informer.sma

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
#endif
88

99
#define PLUGIN "Map Manager: Informer"
10-
#define VERSION "0.0.4"
10+
#define VERSION "0.0.5"
1111
#define AUTHOR "Mistrick"
1212

1313
#pragma semicolon 1
@@ -58,16 +58,16 @@ public event_teamscore()
5858
}
5959
public clcmd_timeleft(id)
6060
{
61+
if(is_vote_finished()) {
62+
client_print_color(0, print_team_default, "%s^1 %L", g_sPrefix, LANG_PLAYER, "MAPM_CHANGELEVEL_NEXTROUND");
63+
return;
64+
}
65+
6166
new win_limit = get_num(WINLIMIT);
6267
new max_rounds = get_num(MAXROUNDS);
6368

6469
// TODO: need subtract left_wins/left_rounds if mapm_change_type 0 or 1
6570
if((win_limit || max_rounds) && get_num(EXTENDED_TYPE) == EXTEND_ROUNDS) {
66-
if(is_vote_finished()) {
67-
client_print_color(0, print_team_default, "%s^1 %L", g_sPrefix, LANG_PLAYER, "MAPM_CHANGELEVEL_NEXTROUND");
68-
return;
69-
}
70-
7171
new text[128], len;
7272
len = formatex(text, charsmax(text), "%L ", LANG_PLAYER, "MAPM_TIME_TO_END");
7373
if(win_limit) {

0 commit comments

Comments
 (0)