Rust-Kits

Moved

Total Downloads: 70,199 - First Release: Oct 21, 2014 - Last Update: Jun 7, 2018

4.96216/5, 185 likes
  1. maybe when u do
    Code:
    {
      "NPC - GUI Kits": {
        "2": {
          "description": "<color=green>Chat Kits</color>",
          "kits": [
    .....
    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 guess
     
  2. I understand what you are saying.. you want the global kits UI only for admins. I think I can do this. Ill look to do it in an update. Although, I could swear NPC only kits are only redeemable by NPCs not the global "0" menu.

    Any other requests?
     
  3. Thats right! I want the GUI kit only accesible by an admin, and normal user to input in chat "there are no kits".

    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
     
  4. Yes, I understand your purpose perfectly :)
     
  5. Cool, I just managed to make it work editing the script. what I did is:


    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
     
  6. Well mine would be a config option, but regardless glad you found your solution :)
     
  7. nevermind.
     
  8. 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
     
  9. hello,
    how can I add Steamgroup kit ?
     
  10. 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?
     
  11. Make sure you are adding the items to the kits... /kits items is the command while editing a kit.

    Grant user steamid kits.lightwarrior ...--> in console to add the permission.
     
  12. 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?
     
  13. some one tell me cleary please HOW DO I REMOVE UI when i'm type /kit ????
     
  14. Open the config file, remove the entry that has a 0..... READ THE OVERVIEW.
     
  15. Absolut updated Kits with a new update entry:

    3.2.5

     
  16. why that?
     
  17. @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
     
  18. 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..
     
  19. 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!!!
     
  20. you can set the GUI up in the Config File