chat_command_permissions 1.0.1

Only enable permissions command if the permission system is enabled

Added help message for getpermission

Added aliases
This commit is contained in:
Resxt 2023-06-17 11:09:38 +02:00
parent a13533c855
commit 9b637ffa91

View File

@ -2,8 +2,11 @@
Init() Init()
{ {
CreateCommand(level.chat_commands["ports"], "getpermission", "function", ::GetPlayerPermissionCommand, 2); if (PermissionIsEnabled())
CreateCommand(level.chat_commands["ports"], "setpermission", "function", ::SetPlayerPermissionCommand, 4); {
CreateCommand(level.chat_commands["ports"], "getpermission", "function", ::GetPlayerPermissionCommand, 2, ["default_help_one_player"], ["gp"]);
CreateCommand(level.chat_commands["ports"], "setpermission", "function", ::SetPlayerPermissionCommand, 4, [], ["sp"]);
}
} }