Creeper9207

radar

Feb 22nd, 2015
243
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.34 KB | None | 0 0
  1. xcoord = -22
  2. ycoord = 70
  3. zcoord = -69
  4. player = "Creeper9207"
  5. p1 = "Creeper9207"
  6. p2 = "nil"
  7. p3 = "supercreeper9854"
  8. p4 = "Nerdfreak22"
  9. p5 = "nil"
  10. p6 = "MrKaboommm1"
  11. function data(r)
  12. y = peripheral.call("top", "getPlayerData", r)
  13. return y.position.x + xcoord, y.position.y + ycoord, y.position.z + zcoord
  14. end
  15. while true do
  16. sleep(1)
  17. function one()
  18. peripheral.call("right", "clear")
  19. x, y, z = data(player)
  20. x2, y2, z2 = data(p1)
  21. x = 200 - x + x2
  22. z = 100 - z + z2
  23. peripheral.call("right", "addText", x, z, p1)
  24. end
  25. function two()
  26. x, y, z = data(player)
  27. x2, y2, z2 = data(p2)
  28. x = 200 - x + x2
  29. z = 100 - z + z2
  30. peripheral.call("right", "addText", x, z, p2)
  31. end
  32. function three()
  33. x, y, z = data(player)
  34. x2, y2, z2 = data(p3)
  35. x = 200 - x + x2
  36. z = 100 - z + z2
  37. peripheral.call("right", "addText", x, z, p3)
  38. end
  39. function four()
  40. x, y, z = data(player)
  41. x2, y2, z2 = data(p4)
  42. x = 200 - x + x2
  43. z = 100 - z + z2
  44. peripheral.call("right", "addText", x, z, p4)
  45. end
  46. function five()
  47. x, y, z = data(player)
  48. x2, y2, z2 = data(p5)
  49. x = 200 - x + x2
  50. z = 100 - z + z2
  51. peripheral.call("right", "addText", x, z, p5)
  52. end
  53. function six()
  54. x, y, z = data(player)
  55. x2, y2, z2 = data(p6)
  56. x = 200 - x + x2
  57. z = 100 - z + z2
  58. peripheral.call("right", "addText", x, z, p6)
  59. end
  60. pcall(one)
  61. pcall(two)
  62. pcall(three)
  63. pcall(four)
  64. pcall(five)
  65. pcall(six)
  66. end
Advertisement
Add Comment
Please, Sign In to add comment