Hello from Turkey. I want to give mini to players with Kit. For example there is kit with name "My Mini". This kit's max usage is 40 and cd is 30 mins. How can i do that ? I added a image. Please help me.
How can i do that "Spawn mini by Kits"
I don't suggest trying to spawn vehicles via kits. The main reason is the lack of checks performed by Kits, such as checking for sufficient space and checking for building privilege.
If there is a way for Kits to run an arbitrary command with parameters such as steam ID, then you could probably use the existing spawnmini.give command provided by this plugin.
If you do not recommend such a method, how can I provide limited use? So what I mean is that the player will buy this authorization for money, but will use it every 30 minutes and a maximum of 40 times. How can I do that ?
I don't think kits is the right plugin for this. There are shop plugins that provide more in depth controls and allow running arbitrary commands.
A shop plugin would be able to use the give command, and should be able to do building privilege checks if you care about that. Should also support max purchases and cooldowns (I imagine).
Another approach, which you can do with a shop plugin, is to let the player purchase the permission, and set the permission to expire after a period of time. For instance, make the shop listing run a command from the Timed Permissions plugin that gives the spawnmini permission for X hours. You could control the cooldown in this plugin.
Thanks for everything. I made it. But now there is a problem. When you buy a mini from shop your balance is falling but it doesn't create a mini if you have a mini already. How can i fix this ?
That's why you probably just want to sell the perm, not sell the command.
WhiteThunder
That's why you probably just want to sell the perm, not sell the command.
What should i do ? Is it possible to run the "/nomini" command before running the spawn code? or something else ? I also want to ask, do you know the plugin's name in the first picture ? How could they do that ? In the "/kit" menu there are scrap heli, mini and rhib.
You could try running the nomini command. Or, you could enable auto fetch, repair on fetch, and remove fetch cooldown.
My guess would be that's a custom plugin, or maybe a paid Kits plugin.
I want to use Command Splitter but the plugin works only client commands. Is there any command to destroy mini like spawn command. You know "spawnmini.give" but i need a command to destroy mini.
Merged post
But also is there any plugin to determine max usage of a command ?