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
This commit is contained in:
Resxt 2023-03-18 01:41:38 +01:00
parent 100c1441c5
commit 05b1c867ff

View File

@ -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"]);
}