Is it possible to create plugin that allows to user a limited number/quantity of some permission?
Example:
I gave the player permission to call a helicopter or Airstrike on 1 time.
Universal Limited times use permissions
Discussion in 'Plugin Requests' started by sanchesster, Dec 7, 2016.
-
That would need to be incorporated into those plugins.
-
Timed Permissions | Oxide
You can add the user on a group that can call the heli for this time
or you can give the permission to the user for a time. -
-
For example: buy permission to call helicopter on enemy player but one time.
It must looks like:
/granttimesperm <player|steamid> <permission> <times to use>
It can be additional feature in Timed permissions plug-in.
Sorry my english...Last edited by a moderator: Dec 8, 2016 -
lol
Well, you have work now Laser, Add a counter for the permissions as he requested
Cmon You can !!!
----
indeed @sanchesster
I think you can use it with the Gui of ServerRewards, If you sell a command, it will executed one time. Right? -
Best would propably be if it was incoorporated inside the plugins he requests it for. -
you can enter a user to a group with permission, trigger the command, and left the group automaticaly. -
If another plugin could not determine when a permission from plugin A was used, as each plugin "uses" it differently.
Best you could do is some workaround and revoke a certain permission when a certain command was used. -
But... is bad this idea?
set this:
/grantpermuses <player|steamid> <permission> <USAGES> give a player a permission for a limited use that you allow
and the player will have this:
/use <COMMAND>
Then in code you can do this:
If Player have the permission for limited uses
then grant the use of /USE COMMAND for the uses that is allowed
I think can work -
-