Advertisement
Guest User

Różdżka TP

a guest
Apr 18th, 2015
219
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 10.15 KB | None | 0 0
  1. on disconnect:
  2. set {lastloc.%player%} to location of player
  3. on join:
  4. wait 5 seconds
  5. teleport player to {lastloc.%player%}
  6. variables:
  7. {teleport.gildia.%player%} = false
  8. on script load:
  9. register new shaped recipe for stick named "&a&lTeleport na spawn" using none, gold block, none, none, gold block, none, none, gold block, none
  10. register new shaped recipe for blaze rod named "&a&lTeleport do gildi" using none, emerald block, none, none, emerald block, none, none, emerald block, none
  11. on rightclick using stick:
  12. if name of player's tool is "&a&lTeleport na spawn":
  13. set {_loc.%player%} to location of player
  14. send "&aTeleportacja na spawn nastapi za: 5 sekund.Nie ruszaj sie!"
  15. wait 1 second
  16. set {_loc1.%player%} to location of player
  17. if {_loc.%player%} is {_loc1.%player%}:
  18. if player has stick named "&a&lTeleport na spawn":
  19. set {_loc2.%player%} to location of player
  20. send "&aTeleportacja na spawn nastapi za: 4 sekundy."
  21. wait 1 second
  22. if {_loc2.%player%} is {_loc.%player%}:
  23. if player has stick named "&a&lTeleport na spawn":
  24. set {_loc3.%player%} to location of player
  25. send "&aTeleportacja na spawn nastapi za: 3 sekundy."
  26. wait 1 second
  27. if {_loc.%player%} is {_loc3.%player%}:
  28. if player has stick named "&a&lTeleport na spawn":
  29. set {_loc4.%player%} to location of player
  30. send "&aTeleportacja na spawn nastapi za: 2 sekundy."
  31. wait 1 second
  32. if {_loc4.%player%} is {_loc.%player%}:
  33. if player has stick named "&a&lTeleport na spawn":
  34. set {_loc5.%player%} to location of player
  35. send "&aTeleportacja na spawn nastapi za: 1 sekunde."
  36. wait 1 second
  37. if {_loc5.%player%} is {_loc.%player%}:
  38. if player has stick named "&a&lTeleport na spawn":
  39. send "&aTeleportuje na spawn..."
  40. teleport player to spawn
  41. remove stick named "&a&lTeleport na spawn" from player
  42. else:
  43. send "&cWyrzuciles przedmiot teleportujacy!"
  44. else:
  45. send "&cRuszyles sie! Teleportacja anulowana!"
  46. else:
  47. send "&cWyrzuciles przedmiot teleportujacy!"
  48. else:
  49. send "&cRuszyles sie! Teleportacja anulowana!"
  50. else:
  51. send "&cWyrzuciles przedmiot teleportujacy!"
  52. else:
  53. send "&cRuszyles sie! Teleportacja anulowana!"
  54. else:
  55. send "&cWyrzuciles przedmiot teleportujacy!"
  56. else:
  57. send "&cRuszyles sie! Teleportacja anulowana!"
  58. else:
  59. send "&cWyrzuciles przedmiot teleportujacy!"
  60. else:
  61. send "&cRuszyles sie! Teleportacja anulowana!"
  62.  
  63. on rightclick using blaze rod:
  64. if name of player's tool is "&a&lTeleport do gildi":
  65. set {_loc.%player%} to location of player
  66. send "&aTeleportacja do gildi nastapi za: 5 sekund.Nie ruszaj sie!"
  67. wait 1 second
  68. set {_loc1.%player%} to location of player
  69. if {_loc.%player%} is {_loc1.%player%}:
  70. if player has blaze rod named "&a&lTeleport do gildi":
  71. set {_loc2.%player%} to location of player
  72. send "&aTeleportacja do gildi nastapi za: 4 sekundy."
  73. wait 1 second
  74. if {_loc2.%player%} is {_loc.%player%}:
  75. if player has blaze rod named "&a&lTeleport do gildi":
  76. set {_loc3.%player%} to location of player
  77. send "&aTeleportacja do gildi nastapi za: 3 sekundy."
  78. wait 1 second
  79. if {_loc.%player%} is {_loc3.%player%}:
  80. if player has blaze rod named "&a&lTeleport do gildi":
  81. set {_loc4.%player%} to location of player
  82. send "&aTeleportacja do gildi nastapi za: 2 sekundy."
  83. wait 1 second
  84. if {_loc4.%player%} is {_loc.%player%}:
  85. if player has blaze rod named "&a&lTeleport do gildi":
  86. set {_loc5.%player%} to location of player
  87. send "&aTeleportacja do gildi nastapi za: 1 sekunde."
  88. wait 1 second
  89. if {_loc5.%player%} is {_loc.%player%}:
  90. if player has blaze rod named "&a&lTeleport do gildi":
  91. send "&aTeleportuje do gildi..."
  92. set {teleport.gildia.%player%} to true
  93. execute player command "/g dom"
  94. set {teleport.gildia.%player%} to false
  95. remove blaze rod named "&a&lTeleport do gildi" from player
  96. else:
  97. send "&cWyrzuciles przedmiot teleportujacy!"
  98. else:
  99. send "&cRuszyles sie! Teleportacja anulowana!"
  100. else:
  101. send "&cWyrzuciles przedmiot teleportujacy!"
  102. else:
  103. send "&cRuszyles sie! Teleportacja anulowana!"
  104. else:
  105. send "&cWyrzuciles przedmiot teleportujacy!"
  106. else:
  107. send "&cRuszyles sie! Teleportacja anulowana!"
  108. else:
  109. send "&cWyrzuciles przedmiot teleportujacy!"
  110. else:
  111. send "&cRuszyles sie! Teleportacja anulowana!"
  112. else:
  113. send "&cWyrzuciles przedmiot teleportujacy!"
  114. else:
  115. send "&cRuszyles sie! Teleportacja anulowana!"
  116.  
  117. on command "/g dom":
  118. if player doesn't have permission "teleport.gildia":
  119. if {teleport.gildia.%player%} is false:
  120. cancel event
  121. send "&3Aby tepnac sie na g dom uzyj rozgi.Crafting rozgi &c/rozga"
  122. on command "/spawn":
  123. if player doesn't have permission "teleport.spawn":
  124. cancel event
  125. send "&3Koordynaty spawnu to x&c0 &3z&c0 &3Na spawn mozesz tp sie rozga. Crafting rozgi &c/rozga"
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement