Skip to content

Commit 226ffc3

Browse files
committed
online_checker: move get_mapname to plugin_init
1 parent ba9a847 commit 226ffc3

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

cstrike/addons/amxmodx/scripting/map_manager_online_checker.sma

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
#include <map_manager_scheduler>
44

55
#define PLUGIN "Map Manager: Online checker"
6-
#define VERSION "1.0.0"
6+
#define VERSION "1.0.1"
77
#define AUTHOR "Sergey Shorokhov"
88

99
#pragma semicolon 1
@@ -33,11 +33,12 @@ public plugin_init() {
3333
g_pCvars[CHECK_INTERVAL] = register_cvar("mapm_online_check_interval", "30");
3434
g_pCvars[CHECKS_COUNT] = register_cvar("mapm_online_check_count", "3");
3535
g_pCvars[CHECK_TIMEOUT] = register_cvar("mapm_online_check_timeout", "120");
36+
37+
get_mapname(g_CurrentMap[Map], charsmax(g_CurrentMap[Map]));
3638
}
3739

3840
public plugin_cfg() {
3941
mapm_get_prefix(g_sPrefix, charsmax(g_sPrefix));
40-
get_mapname(g_CurrentMap[Map], charsmax(g_CurrentMap[Map]));
4142
}
4243

4344
public task_check_online() {

0 commit comments

Comments
 (0)