Skip to content

Commit

Permalink
fix native_set_mode
Browse files Browse the repository at this point in the history
  • Loading branch information
WessTorn committed May 24, 2024
1 parent 7581908 commit 88b21ea
Showing 1 changed file with 21 additions and 3 deletions.
24 changes: 21 additions & 3 deletions scripting/HnsMatchSystem.sma
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 88b21ea

Please sign in to comment.