From a26a893fae0146e9a80fc56ce0481c8ea533771d Mon Sep 17 00:00:00 2001 From: Resxt <55228336+Resxt@users.noreply.github.com> Date: Sat, 18 Mar 2023 01:39:31 +0100 Subject: [PATCH] chat_command_give 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 --- chat_commands/chat_command_give.gsc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/chat_commands/chat_command_give.gsc b/chat_commands/chat_command_give.gsc index 696ea35..5f97074 100644 --- a/chat_commands/chat_command_give.gsc +++ b/chat_commands/chat_command_give.gsc @@ -2,9 +2,9 @@ Init() { - CreateCommand(level.commands_servers_ports, "giveweapon", "function", ::GiveWeaponCommand); - CreateCommand(level.commands_servers_ports, "givekillstreak", "function", ::GiveKillstreakCommand); - CreateCommand(level.commands_servers_ports, "givecamo", "function", ::GiveCamoCommand); + CreateCommand(level.chat_commands["ports"], "giveweapon", "function", ::GiveWeaponCommand, 2); + CreateCommand(level.chat_commands["ports"], "givekillstreak", "function", ::GiveKillstreakCommand, 3); + CreateCommand(level.chat_commands["ports"], "givecamo", "function", ::GiveCamoCommand, 2); }