Merge pull request #1 from rpkaul/patch-1

replaced map to changelevel
This commit is contained in:
shobhit-pathak 2023-10-01 07:57:01 +05:30 committed by GitHub
commit deddeaab4d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -24,7 +24,7 @@ router.post('/api/setup-game', is_authenticated, async (req, res) => {
execute_cfg_on_server(server_id, './cfg/live_wingman.cfg'); execute_cfg_on_server(server_id, './cfg/live_wingman.cfg');
} }
rcon.rcons[server_id].execute(`mp_warmup_pausetimer 1`); rcon.rcons[server_id].execute(`mp_warmup_pausetimer 1`);
rcon.rcons[server_id].execute(`map ${selected_map}`); rcon.rcons[server_id].execute(`changelevel ${selected_map}`);
// Adding 1 second delay in executing warmup.cfg to make it effective after map has been changed. // Adding 1 second delay in executing warmup.cfg to make it effective after map has been changed.
setTimeout(() => { setTimeout(() => {