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 10:28:26 +02:00
parent a65440b8af
commit cd7ce9d35d

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, array("default_help_one_player"), array("gp"));
CreateCommand(level.chat_commands["ports"], "setpermission", "function", ::SetPlayerPermissionCommand, 4, [], array("sp"));
}
} }