1. Hi all!, I'm new here and i hope you can help me.

    I'm trying to find/create a function that detectates:

    Is the player authorized in all CUPBOARDS in a radius of "X" mtrs? --> TRUE/FALSE

    Thank you! :)
     
  2. well .. that should be implemented in rust ... if it's not it just means it's a bug.
     
  3. no, no, its not because of building bugs, its because I want to create a teleport plugin that the /tpr command only works if there is NO cupboards near, to avoid the bug of teleportation inside others homes.

    So, the /tpr command should detect first of all if there are any cupboards in a radius of "X" mtrs and if YES, detect if the player is authorized in all of them. If the player is NOT authorized in some or all of them he won't be able to use /tpr.
    And if the player is authorized in all cupboards in radius of "X" he will be able to teleport because he is in his home.

    So i need to see if the player is authorized in all cupboards in a radius of "X" meters, for example, 50m, 75m...

    Thanks!
     
  4. i don't think the TP can be abused you know? people go to sleep when teleported and can't really wakeup before loading the building.
     
  5. If you do tpr and you are next to a wall, sometimes the teleported player appears on the other part of the wall. If it's a house he can appear inside the house...
    In my server we had desactivated the teleport system because of that bug... and I'm trying to solve it this way.
    Thanks!
     
  6. oh i see :x
    maybe @Mughisi will add this on his plugin ;)
     
  7. When I have some spare time I can do this yes :p

    Hmm, this should normally not happen, to prevent players from teleporting inside a wall I added a system that checks if they're close to it, and when they're close to it, it should move them only a bit away from the wall. There was a bug/glitch before when standing on the side of a ceiling which allowed them to use tpr/tpa and teleport in a building but that should be resolved.
     
  8. Hi Mugishi, but the problem maybe is that the player who uses /tpr can first use the command and after walk close to the wall because he has n secs until the other player comes. Thats the reason why I thought implementing a system that checks if there are cupboards 50 mtrs(for example) near. With that distance, player cannot use /tpr command and then walk near the wall. It all dependes anyway on the tpr delay... Do you understand me?

    Well... I'm going to try the updated version of TP and check if there are no more wall bugs. Thanks!.

    Anyway, in the previous version of TP if you are on a pilar (inside a house) you can also use /tpr, because the system understands that you are not in a ceilling.

    Thank you very much!
     
  9. The wall check is executed at the moment the player teleports so even if the /tpa was done 10meters away from the wall and he then moved towards it, it should detect it :)