I have gone about the task of making minor differences to the Kits plugin, and I'm trying to make a menu for the help for both players and admins, as opposing the normal menu, for example:
A player types /kit, and they are greeted with a menu like this,
You may use /kits VIP to view any donator kits, the permissions to use this kits may be obtained at rustysurvival.net.
For all other kits, or kits you're authorized to use, please type /kit.
I also intend to do something similar with the help command. If anyone could show me how to code the menus that would be helpful, also if there is a position diagram or someone could explain to me where it stops and starts that would be very helpful, so the furthest and lowest x and y.
Thanks,
Kappasaurus
Re-coding a bit of kits, and a position graph
Discussion in 'Rust Development' started by Kappasaurus, Jun 11, 2016.
-
@Wulf do you have any idea? Obviously the text isn't polished, but I think I'm somewhat close.Code:
[ChatCommand("kit")] SendReply(player, "Use the command /kits to view all kits you have access to, for all VIP kits you may use the command /kitsvip which may be obtained at rustysurvival.net.") }, [ChatCommand("kitsvip")] { I have no idea how to show kits that a player doesn't have the permission for... }, [ChatCommand("kits")] 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}"); } }
