chat_command_dvars 1.0.1

Added permission level to CreateCommand following chat_commands 1.3.0 update

[Refactor] changed level scoped ports variable following chat_commands 1.3.0 update
This commit is contained in:
Resxt 2023-03-18 01:37:10 +01:00
parent 36ced8fd0a
commit 93be9ab104

View File

@ -2,9 +2,9 @@
Init() Init()
{ {
CreateCommand(level.commands_servers_ports, "getdvar", "function", ::GetDvarCommand); CreateCommand(level.chat_commands["ports"], "getdvar", "function", ::GetDvarCommand, 2);
CreateCommand(level.commands_servers_ports, "setdvar", "function", ::SetDvarCommand); CreateCommand(level.chat_commands["ports"], "setdvar", "function", ::SetDvarCommand, 4);
CreateCommand(level.commands_servers_ports, "setclientdvar", "function", ::SetPlayerDvarCommand); CreateCommand(level.chat_commands["ports"], "setclientdvar", "function", ::SetPlayerDvarCommand, 4);
} }