Jump to content

Permission for use

Closed 1.4.1 1.4.2

DollyDeee

Posted

Is there a permission already set so only select players can use this?

I saw you linked a video about adding to skill tree - skill needs requires a permission to be able to activate it. Am I missing the permission command found somewhere?

Yac Vaguer

Posted

4 hours ago, DollyDeee said:

Is there a permission already set so only select players can use this?

I saw you linked a video about adding to skill tree - skill needs requires a permission to be able to activate it. Am I missing the permission command found somewhere?

For Skill Tree in general, you can extends functionalities of admin command during certain time, with cooldowns. This is happening using CustomChatCommand which works great, at least is what I use. 

https://umod.org/plugins/custom-chat-commands


Once you create the custom command with a proper cooldown you can add the skill in your config file. I have it like this 

 

        "Eyes Above": {
          "Permission required to show this node": null,
          "Minimum prestige required to unlock this node": 0,
          "Skill required to unlock node [Requires max level]": null,
          "Skill that if unlocked, will prevent this node from unlocking": null,
          "enabled": true,
          "max_level": 1,
          "tier": 3,
          "value_per_buff": 1.0,
          "buff_info": {
            "Key": "Permission",
            "Value": "Permission"
          },
          "icon_url": "https://www.dropbox.com/scl/fi/2141spvtijca1uctk7zho/nice_512x512.png?rlkey=urfs995d8ox2cvoc06uggqbuv&dl=1",
          "skin": 3234087711,
          "permissions": {
            "description": "This skill lets you call in a <color=#42f105>UAV Drone</color> that marks NPC's, Enemies and Teammates. <color=#ffef00>Command:</color> /drone. <color=#ffef00>Cooldown:</color> 60m.",
            "perms": {
              "1": {
                "perms_list": {
                  "customchatcommands.drone": "Type /drone"
                }
              }
            }
          }
        }
      }

 

 

 

  • Like 1
DollyDeee

Posted

I'll give it a try.

Thanks! (Hopefully I can work it out)

DollyDeee

Posted

I'm having 2 issues getting this to work, if you have any ideas

1. when the uav signal is thrown there are no icons on the screen showing npcs/players

2. the console command uav {steamid} is not giving the player a uav when used with command /drone which I setup through customchatcommands 

Any suggestions?

Yac Vaguer

Posted

3 hours ago, DollyDeee said:

I'm having 2 issues getting this to work, if you have any ideas

1. when the uav signal is thrown there are no icons on the screen showing npcs/players

2. the console command uav {steamid} is not giving the player a uav when used with command /drone which I setup through customchatcommands 

Any suggestions?

 

 

1. I just released an update with the fix 
2. It shouldn't be UAV it should be your new custom command, better to call it differently that the default one 

DollyDeee

Posted

On 11/6/2024 at 6:39 PM, Yac Vaguer said:

 

 

1. I just released an update with the fix 
2. It shouldn't be UAV it should be your new custom command, better to call it differently that the default one 

I will update and give it a try!

1.4m

Downloads

Total number of downloads.

6.9k

Customers

Total customers served.

103.5k

Files Sold

Total number of files sold.

2.1m

Payments Processed

Total payments processed.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.