I said in above post but will put it here again
reload Kits
you do this in rcon
And if you want more kits see this post Kits | Page 107 | Oxide
Rust-Kits
Moved
Total Downloads: 70,199 - First Release: Oct 21, 2014 - Last Update: Jun 7, 2018
- 4.96216/5, 185 likes
-
-
-
I checked the moderator authLevel and that is 1 so it should work. Might there be another line or console command that I need to do to make it work ? -
HEY help me ? I create new /kit add vip1 "Only vip" -vip Iff player have vip /kit vip1 He dont use kit
(
-
the entire helptext looks like this, here is an example of the custom helptext (i think): Screenshot -
Please help me
-
please help to configure the helptext of the plugin, the helptext looks actually like this: Screenshot
i want it to look like this one (colors and status<ready or not>): Screenshot -
[DOUBLEPOST=1467143104][/DOUBLEPOST] -
i figured it out, my kits helptext is now colored and nice looking. for everyone who is interested i will post the edited code lines:
Line 284-336:
Code:bool CanSeeKit(BasePlayer player, string kitname, bool fromNPC, out string reason) { reason = string.Empty; if (string.IsNullOrEmpty(kitname)) return false; kitname = kitname.ToLower(); Kit kit; if (!storedData.Kits.TryGetValue(kitname, out kit)) return false; if (kit.hide) return false; if (kit.authlevel > 0) if (player.net.connection.authLevel < kit.authlevel) return false; if (!string.IsNullOrEmpty(kit.permission)) if (player.net.connection.authLevel < 2 && !permission.UserHasPermission(player.UserIDString, kit.permission)) return false; if (kit.npconly && !fromNPC) return false; if (kit.max > 0) { int left = GetKitData(player.userID, kitname).max; if (left >= kit.max) { reason += "- <color=orange>0</color> left"; return false; } reason += "<color=orange>" + $"{(kit.max - left)}" + "</color> left"; } if (kit.cooldown > 0) { double cd = GetKitData(player.userID, kitname).cooldown; double ct = CurrentTime(); if (cd > ct && cd != 0.0) { reason += "- " + "<color=red>" + $"{Math.Abs(Math.Ceiling(cd - ct))}" + "</color> seconds"; return false; } else { reason += "<color=green>Ready</color>"; } } return true; }
and Line 1084-1101:
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, "<color=green>/kit " + $"{pair.Value.name} " + "</color>" + "Cooldown: " + $"{reason}" + "<size=12>" + $"\n{pair.Value.description}" + "</size>"); } } return;
it will then look like this in game: ScreenshotAttached Files:
-
-
You worked this out yourself?
Have you ever done any coding before? -
-
-
but it would be much better if we could change those things in a config file, not everyone understands code
-
You could always add the config options and send the changes to the coder
-
Hello, i made a kit that give a smoke but when i do the kit (/kit supply) i receive nothing
plss halp
-
-
-
oh sorry xD so here it is:
Attached Files:
-