Rust-Kits
Moved
Total Downloads: 70,153 - First Release: Oct 21, 2014 - Last Update: Jun 7, 2018
- 4.96216/5, 185 likes
-
Reneb, any chance you can add functionality to your plugin so we can add/remove kits using plugins? Interface.CallHook etc
For example, in my plugin, I'd like to reference yours to create a kit for a player, and then restore & remove it later.
I'm pretty noob at this whole coding thing but I've attempted to do this already:
Code:void SavePlayerItemsAsKit(BasePlayer player) { if (player == null) return; string kitName = player.userID.ToString(); Interface.CallHook("cmdChatKit", player, "kit", new string[] = { "add", kitName }); Interface.CallHook("cmdChatKit", player, "kit", new string[] = { "edit", kitName }); Interface.CallHook("cmdChatKit", player, "kit", new string[] = { "hide", "true" }); Interface.CallHook("cmdChatKit", player, "kit", new string[] = { "max", "0" }); Interface.CallHook("cmdChatKit", player, "kit", new string[] = { "items" }); SendReply(player, "The items were copied from your inventory"); //player.inventory.Strip(); } void RestorePlayerKitAsItems(BasePlayer player) { if (player == null) return; string kitName = player.userID.ToString(); //player.inventory.Strip(); object success = GiveKit(player, kitName); Interface.CallHook("cmdChatKit", player, "kit", new string[] = { "remove", kitName }); SendReply(player, "Items have been restored to your player."); }
-
I've noticed that when trying to use custom skins for weapons, semi-auto pistol, shotgun, etc. They only show the icon, but do not render the skin in game. It shows the default gun model. I've set the kit with the actual skin'd weapons and it shows the different identification code for the colored weapon skins and did it manually, but it never works. I'm not sure of the limitation there.
-
How to give kit through the console?
-
I cant seem to load kits. It says no source found, but its in there.
-
Need Help. I Installed this Plugin but i can't create a kit. /kit add ... -> Have no Permission... What for a Permission i need? I don't find in the Distribution. grml. Sorry for my bad English... im from Germany.
-
-
-
Line 426 is using "Overlay" instead of "HUD/Overlay"
-
How do I wipe kits?
-
-
Code:
[Oxide] 8:57 AM [Error] Failed to initialize plugin 'Kits v3.1.1' (FormatException: Input string was not in the correct format) [Oxide] 8:57 AM [Debug] at System.UInt64.Parse (System.String s, NumberStyles style, IFormatProvider provider) [0x00000] in <filename unknown>:0 at System.UInt64.Parse (System.String s, IFormatProvider provider) [0x00000] in <filename unknown>:0 at System.Convert.ToUInt64 (System.String value, IFormatProvider provider) [0x00000] in <filename unknown>:0 at System.String.System.IConvertible.ToUInt64 (IFormatProvider provider) [0x00000] in <filename unknown>:0 at System.Convert.ToType (System.Object value, System.Type conversionType, IFormatProvider provider, Boolean try_target_to_type) [0x00000] in <filename unknown>:0 at System.Convert.ChangeType (System.Object value, System.Type conversionType, IFormatProvider provider) [0x00000] in <filename unknown>:0 at Newtonsoft.Json.Serialization.JsonSerializerInternalReader.EnsureType (Newtonsoft.Json.JsonReader reader, System.Object value, System.Globalization.CultureInfo c ulture, Newtonsoft.Json.Serialization.JsonContract contract, System.Type targetType) [0x00000] in <filename unknown>:0 [Oxide] 8:57 AM [Info] Unloaded plugin Kits v3.1.1 by Reneb [Oxide] 8:57 AM [Info] No previous version to rollback plugin: Kits
-
reset your configs
-
oh. ty sorry xd
-
Is it possible to set a global cooldown limit for when there are multiple kits available? I have 4 different kits, but would like to prevent players from redeeming all 4 at once. It would be cool if you could redeem only one kit at a time and then at least have the cooldown parameter for the kit that you chose countdown before you could redeem any of the other kits. For example, if cooldown on kit 1 is 300, then it should prevent the player from redeeming any other kit until 300 has been reached. Otherwise, it would be a loot fest!
-
(13:04:18) | [Oxide] 12:04 PM [Debug] Preparing compilation
(13:04:18) | [Oxide] 12:04 PM [Warning] Waiting for another application to stop using script: Kits
(13:04:18) | [Oxide] 12:04 PM [Debug] Adding plugin to compilation: Kits
(13:04:18) | [Oxide] 12:04 PM [Debug] Probably done preparing compilation: Kits
(13:04:18) | [Oxide] 12:04 PM [Debug] Done preparing compilation: Kits
(13:04:19) | [Oxide] 12:04 PM [Error] Kits plugin failed to compile!
(13:04:19) | [Oxide] 12:04 PM [Error] Kits.cs(855,187): error CS1503: Argument `#4' cannot convert `string' expression to type `Facepunch.ObjectList?' -
I just restarted my server and now all my kits are gone
[DOUBLEPOST=1445113721][/DOUBLEPOST]I cant get a kit list at all now even after adding a new one -
No kits after restart, please fix soon!