From 05b1c867ffd50f634cb2a92514cc06dacf8983e2 Mon Sep 17 00:00:00 2001 From: Resxt <55228336+Resxt@users.noreply.github.com> Date: Sat, 18 Mar 2023 01:41:38 +0100 Subject: [PATCH] chat_command_map_mode 1.0.1 Added permission level to CreateCommand following chat_commands 1.3.0 update [Refactor] changed level scoped ports variable and prefix variable following chat_commands 1.3.0 update --- chat_commands/chat_command_map_mode.gsc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chat_commands/chat_command_map_mode.gsc b/chat_commands/chat_command_map_mode.gsc index 397ed0d..71174fc 100644 --- a/chat_commands/chat_command_map_mode.gsc +++ b/chat_commands/chat_command_map_mode.gsc @@ -2,9 +2,9 @@ Init() { - CreateCommand(level.commands_servers_ports, "map", "function", ::ChangeMapCommand, ["Example: " + level.commands_prefix + "map mp_dome"]); - CreateCommand(level.commands_servers_ports, "mode", "function", ::ChangeModeCommand, ["Example: " + level.commands_prefix + "mode FFA_default"]); - CreateCommand(level.commands_servers_ports, "mapmode", "function", ::ChangeMapAndModeCommand, ["Example: " + level.commands_prefix + "mapmode mp_seatown TDM_default"]); + CreateCommand(level.chat_commands["ports"], "map", "function", ::ChangeMapCommand, 4, ["Example: " + level.chat_commands["prefix"] + "map mp_dome"]); + CreateCommand(level.chat_commands["ports"], "mode", "function", ::ChangeModeCommand, 4, ["Example: " + level.chat_commands["prefix"] + "mode FFA_default"]); + CreateCommand(level.chat_commands["ports"], "mapmode", "function", ::ChangeMapAndModeCommand, 4, ["Example: " + level.chat_commands["prefix"] + "mapmode mp_seatown TDM_default"]); }