Skip to content

Commit

Permalink
scheduler: use engine_changelevel() (#45)
Browse files Browse the repository at this point in the history
  • Loading branch information
Nord1cWarr1or authored Sep 7, 2023
1 parent 50b4733 commit 23c0b2a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cstrike/addons/amxmodx/scripting/map_manager_scheduler.sma
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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)
{
Expand Down

1 comment on commit 23c0b2a

@fred0r
Copy link

@fred0r fred0r commented on 23c0b2a Sep 9, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

since switching to mapmanagermodular i had amx_nextmap "[not yet voted on]" in the config.
under this condition the server fails to change a map with changelevel failed: '[not' not found on server.

Please sign in to comment.