From 23c0b2a42cccc7a3e6ec45c7d99b0ebb92de04d8 Mon Sep 17 00:00:00 2001 From: Nord1cWarr1or <47604048+Nord1cWarr1or@users.noreply.github.com> Date: Thu, 7 Sep 2023 19:29:35 +0000 Subject: [PATCH] scheduler: use engine_changelevel() (#45) --- cstrike/addons/amxmodx/scripting/map_manager_scheduler.sma | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/cstrike/addons/amxmodx/scripting/map_manager_scheduler.sma b/cstrike/addons/amxmodx/scripting/map_manager_scheduler.sma index 9959a2e..366e348 100644 --- a/cstrike/addons/amxmodx/scripting/map_manager_scheduler.sma +++ b/cstrike/addons/amxmodx/scripting/map_manager_scheduler.sma @@ -9,7 +9,7 @@ #endif #define PLUGIN "Map Manager: Scheduler" -#define VERSION "0.2.1" +#define VERSION "0.2.2" #define AUTHOR "Mistrick" #pragma semicolon 1 @@ -425,7 +425,7 @@ public delayed_change() { new nextmap[MAPNAME_LENGTH]; get_string(NEXTMAP, nextmap, charsmax(nextmap)); set_float(CHATTIME, get_float(CHATTIME) - 1.0); - server_cmd("changelevel %s", nextmap); + engine_changelevel(nextmap); } planning_vote(type) {