Universal Teleport all to me or some

Discussion in 'Plugin Requests' started by Wyza, Dec 29, 2015.

  1. I know there is a teleportation and /home type plugin but what im looking for is for admins only...


    So in console i got type "teleport player1 player2..." But what i want is a way to add a certain group of players to a teleport list were i can do /teleport group 1 player1(me) I dont want the function to be useable for all players just me to host events on my server.
     
  2. Something like that could be added to the existing Teleportation plugin. Also the Teleportation plugin can be used for admin only suage, by either just disabling the Home & TPR features in the config, or just not granting the permissions to anybody.
     
  3. would be nice if they add a function to let me bring players too me
     
  4. I think I can add it in some way.
     
  5. <3 love ya long time!
     
  6. Yeah this is actually very simple. Just do a foreach on GetSessions();
    [DOUBLEPOST=1451440113][/DOUBLEPOST]Here's the code
    Code:
    Vector3 Location = GameManager.GetPlayerEntity(session.Player).transform.position;
    foreach (KeyValuePair<uLink.NetworkPlayer, PlayerSession> pair in (Dictionary<uLink.NetworkPlayer, PlayerSession>)GameManager.Instance.GetSessions())
    {
       var sessions = GameManager.GetPlayerEntity(pair.Value.Player) as UnityEngine.GameObject;
       sessions.transform.position = Location;}
    
    You could also define your own locations, or use another player as the location by using an argument.
    [DOUBLEPOST=1451448098,1451436589][/DOUBLEPOST]AdminTools | Oxide
    There ya go
     
  7. im sorry i got no clue when u say its simple haha i dont know any coding at all..