maybe when u do
I'm unsure if that will work and too lazy to test it but if 0 is the default player id and 8753201223 is Vip 2 could be admin id. just a guessCode:{ "NPC - GUI Kits": { "2": { "description": "<color=green>Chat Kits</color>", "kits": [ .....
Rust-Kits
Moved
Total Downloads: 70,199 - First Release: Oct 21, 2014 - Last Update: Jun 7, 2018
- 4.96216/5, 185 likes
-
Any other requests? -
To be clear: Im suggesting this because my server is like a vanilla with 2 npcs and the only way to equip a npc is by creating a kit on this plugin but it lets all users the /kit cmd usage and therefore reach the GUI.
Am i explaining this right? Lol I hope my english isnt that good
Thanks -
-
Took the original command:
Code:[ChatCommand("kit")] void cmdChatKit(BasePlayer player, string command, string[] args) { if (args.Length == 0) { if (GUIKits.ContainsKey(0)) NewKitPanel(player, 0); else { string reason = string.Empty; foreach (var pair in storedData.Kits) { var cansee = CanSeeKit(player, pair.Key, false, out reason); if (!cansee && string.IsNullOrEmpty(reason)) continue; SendReply(player, $"{pair.Value.name} - {pair.Value.description} {reason}"); } } return; }
And deleted:
Code:if (GUIKits.ContainsKey(0)) NewKitPanel(player, 0); else
And it looks like this with a print in chat warning
Code:if (args.Length == 0) { SendReply(player, "Vanilla servers don't use kits"); string reason = string.Empty; foreach (var pair in storedData.Kits) { var cansee = CanSeeKit(player, pair.Key, false, out reason); if (!cansee && string.IsNullOrEmpty(reason)) continue; SendReply(player, $"{pair.Value.name} - {pair.Value.description} {reason}"); } return; }
And everything just went perfect, just what I was needing. Hope it helps if you decide to add it on update!
Cheers -
-
-
For the description part of plugin how do you do it in lines? Normally I would enter /n but it's not working. I want it to look something like this...
-You need an empty inventory
-More kits available
-speak to admin
Thank you -
hello,
how can I add Steamgroup kit ? -
I made some kits with permissions, and when i redeeem them, i keep having empty inventory.
What code do i exactly have to execute to grnd a permission named kits.lightwarrior? Ad to give this permission to an user that just made a donation? -
Grant user steamid kits.lightwarrior ...--> in console to add the permission. -
i made tke /kit items command, but now i discovered that it gives the kit regardless of the permission, does it need some auth level for the permission to work?
-
some one tell me cleary please HOW DO I REMOVE UI when i'm type /kit ????
-
-
-
-
@Absolut can u update my custom Version to latest patches? and let me know for the fix on the GUIShop as wel Kind Regards Akeno
-
When I add a kit that uses any amount of water in a bottle or bota bag, then container is empty when the kit is redeemed..
-
Hi guys..just entered some sv and found /kit shows UI with squares, buttons and info...do i need to download any other plugin or can setup using just this? tks!!!
-