• All purchases on website support automatic buying and shipment! Juct click "buy" button!
Teleport Menu

Paid Teleport Menu 1.0.91

Requires
https://umod.org/plugins/image-library

---
Works with
Any teleport plugins
Any friend plugins

---
Information
Open me

Open NTeleportation.cs (plugin file) and scroll down to file end

Then select that part (from //FIXME)

and then paste this code
C#:
        // FIXME
        [HookMethod("SendHelpText")]
        private void SendHelpText(BasePlayer player)
        {
            PrintMsgL(player, "<size=14>NTeleportation</size> by <color=#ce422b>RFC1920</color>\n<color=#ffd479>/sethome NAME</color> - Set home on current foundation\n<color=#ffd479>/home NAME</color> - Go to one of your homes\n<color=#ffd479>/home list</color> - List your homes\n<color=#ffd479>/town</color> - Go to town, if set\n/tpb - Go back to previous location\n/tpr PLAYER - Request teleport to PLAYER\n/tpa - Accept teleport request");
        }

        #region Teleport Menu by Orange

        private bool API_HavePendingRequest(BasePlayer player)
        {
            return PendingRequests.ContainsKey(player.userID) || PlayersRequests.ContainsKey(player.userID) || TeleportTimers.ContainsKey(player.userID);
        }
  
        private bool API_HaveAvailableHomes(BasePlayer player)
        {
            HomeData homeData;
            if (Home.TryGetValue(player.userID, out homeData) == false)
            {
                Home[player.userID] = homeData = new HomeData();
            }
      
            var limit = GetHigher(player, configData.Home.VIPHomesLimits, configData.Home.HomesLimit);
            return homeData.Locations.Count < limit;
        }

        private List<string> API_GetHomes(BasePlayer player)
        {
            HomeData homeData;
            if (Home.TryGetValue(player.userID, out homeData) == false)
            {
                Home[player.userID] = homeData = new HomeData();
            }

            return homeData.Locations.Keys.ToList();
        }

        [ConsoleCommand("tpr")]
        private void cmdTprConsole(ConsoleSystem.Arg arg)
        {
            cmdChatTeleportRequest(arg.Player(), string.Empty, arg.Args);
        }
  
        [ConsoleCommand("home")]
        private void cmdHomeConsole(ConsoleSystem.Arg arg)
        {
            cmdChatHome(arg.Player(), string.Empty, arg.Args);
        }
  
        [ConsoleCommand("tpa")]
        private void cmdTpaConsole(ConsoleSystem.Arg arg)
        {
            cmdChatTeleportAccept(arg.Player(), string.Empty, new string[]{});
        }
  
        [ConsoleCommand("tpc")]
        private void cmdTpcConsole(ConsoleSystem.Arg arg)
        {
            cmdChatTeleportCancel(arg.Player(), string.Empty, new string[]{});
        }
  
        [ConsoleCommand("sethome")]
        private void cmdSethomeConsole(ConsoleSystem.Arg arg)
        {
            cmdChatSetHome(arg.Player(), string.Empty, arg.Args);
        }
  
        [ConsoleCommand("removehome")]
        private void cmdRemovehomeConsole(ConsoleSystem.Arg arg)
        {
            cmdChatRemoveHome(arg.Player(), string.Empty, arg.Args);
        }

        #endregion
    }
}
It will look like that

---
Configuration
Open me

JSON:
{
  "Command": "tp.menu",
  "Text color": "1 1 1 1",
  "Text size": 14,
  "Friends cache time": 500,
  "Button radius": 75,
  "Button size": 35,
  "Teleport icon url": "https://i.imgur.com/WMHRamO.png",
  "Accept icon url": "https://i.imgur.com/vGTqWKV.png",
  "Cancel icon url": "https://i.imgur.com/wAF3A5K.png",
  "Sethome icon url": "https://i.imgur.com/YWaEHW7.png",
  "Home icon url": "https://i.imgur.com/0iEyYyP.png",
  "Home remove icon url": "https://i.imgur.com/wAF3A5K.png"
}

---
Easy to use menu for controlling teleportations

Author
Orange
Views
1,161
First release
Last update

More resources from Orange

Latest updates

  1. Update 1.0.4

    Added ability to close menu on same command Added one new field for home remove button Added...
  2. Update 1.0.3

    Bugfix Removed button image on center Changed default button sizes
Top