From 88b21ea97eb2a5467ee0bd3e35fc98dc5cdfd337 Mon Sep 17 00:00:00 2001 From: WessTorn Date: Fri, 24 May 2024 18:26:30 +0300 Subject: [PATCH] fix native_set_mode --- scripting/HnsMatchSystem.sma | 24 +++++++++++++++++++++--- 1 file changed, 21 insertions(+), 3 deletions(-) diff --git a/scripting/HnsMatchSystem.sma b/scripting/HnsMatchSystem.sma index 3e06f88..19e9a2c 100644 --- a/scripting/HnsMatchSystem.sma +++ b/scripting/HnsMatchSystem.sma @@ -95,9 +95,27 @@ public native_get_mode(amxx, params) { } public native_set_mode(amxx, params) { - enum { argMode = 1 }; - g_iCurrentMode = get_param(argMode); - // taskPrepareMode(argMode); + enum { iSetMode = 1 }; + switch (iSetMode) { + case MODE_TRAINING: { + training_start() + } + case MODE_KNIFE: { + kniferound_start() + } + case MODE_PUB: { + pub_start() + } + case MODE_DM: { + dm_start() + } + case MODE_ZM: { + zm_start() + } + case MODE_MIX: { + mix_start() + } + } } public MATCH_STATUS:native_get_status(amxx, params) {