1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.
  2. Latest Dev Blog: Development Blog #1 - A new GTA:N! [April 4th, 2017]

Teleports settable by admin

Discussion in 'Scripts' started by MissMelissa, Dec 29, 2016.

  1. MissMelissa

    MissMelissa Staff Member Global Moderator Wiki Moderator

    Messages:
    466
    Likes Received:
    213
    Joined:
    Dec 26, 2016
    Someone on Discord wanted a simple teleporting script which could teleport you to several places on the map, so here it is: https://github.com/MissyMelissa/freeroam-tp

    [​IMG]

    You can use the commands /tele as a regular user, and /tpset, /tprem, /tpload, /tpsave as an admin.

    On resource stop it automatically saves the locations xml file to the server folder, and on resource start it automatically loads them.

    Download: Zip on Github
     
    Last edited: Dec 30, 2016
  2. Kemula

    Kemula Well-Known Member Language Board Moderator

    Messages:
    100
    Likes Received:
    29
    Joined:
    Aug 6, 2016
    Thank you for uploading your scripts! They're very helpful to people in order to learn more about the API and C#.

    :=D
     
  3. Jorge Santamaria

    Jorge Santamaria Member

    Messages:
    37
    Likes Received:
    7
    Joined:
    Dec 8, 2016
  4. MissMelissa

    MissMelissa Staff Member Global Moderator Wiki Moderator

    Messages:
    466
    Likes Received:
    213
    Joined:
    Dec 26, 2016
    I'm glad you like them! :=D
     
  5. Corleone

    Corleone Member

    Messages:
    24
    Likes Received:
    1
    Joined:
    Jan 2, 2017
    Very useful, thank you!
     
  6. Corleone

    Corleone Member

    Messages:
    24
    Likes Received:
    1
    Joined:
    Jan 2, 2017
    Hey, thanks for the script - I really like it.
    But I got the problem that I cant see my new tps because theres no line break at /tplist.

    How to add a line break after 5 ~ tps in a foreach loop?

    Code:
    string ret = "";
    
    foreach (var tl in m_teleportLocations) {
                    ret += tl.Name + ", ";
                }
    
                sender.sendChatMessage("~g~Locations: ~s~" + ret.Trim(',', ' '));
     
  7. MissMelissa

    MissMelissa Staff Member Global Moderator Wiki Moderator

    Messages:
    466
    Likes Received:
    213
    Joined:
    Dec 26, 2016
    You're right, that's a problem. I'll fix it tomorrow :=)
     

Share This Page