Guest User

Skript TP na spawn by marek2303

a guest
Feb 15th, 2014
426
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.28 KB | None | 0 0
  1. #################################################
  2. # #
  3. # AUTOR: marek2303 #
  4. # Zapraszam na serwer,IP: McKoxer.cubehost.pl #
  5. # #
  6. #################################################
  7. #
  8. # Pamiętaj, aby ustawić spawn komendą /setspawn
  9. #
  10. on skript load:
  11. wait 2 seconds
  12. send "&9Wbij na serwer, IP: McKoxer.cubehost.pl" to the console
  13. on first join:
  14. wait 1 tick
  15. teleport player to {spawn}
  16. on death:
  17. wait 1 tick
  18. teleport player to {spawn}
  19. on death of player:
  20. wait 1 tick
  21. teleport player to {spawn}
  22. on respawn:
  23. wait 1 tick
  24. teleport player to {spawn}
  25. on first login:
  26. wait 1 tick
  27. teleport player to {spawn}
  28. command /setspawn:
  29. permission: spawn.ustaw
  30. description: Ustawiasz miejsce spawnu.
  31. trigger:
  32. set {spawn} to location of player
  33. send "&2Ustawiles miejsce spawnu!"
  34. options:
  35. time: 10 # czas w sekundach po jakim ma teleportowac
  36. cena: 1 diamond # ilosc i nazwa itemka po angielsku
  37. x: 0 # pozycja spawnu x
  38. z: 0 # pozycja spawnu z
  39.  
  40. command /spawn:
  41. trigger:
  42. player has {@cena}:
  43. remove {@cena} from player
  44. set {_posx} to x-location of player
  45. set {_posz} to z-location of player
  46. set {_posy} to y-location of player
  47. set {_time} to {@time}
  48. apply nausea to player for {@time} seconds
  49. send "&2Zostaniesz przeniesiony na spawn za &7%{_time}% sek&2. Nie ruszaj sie!"
  50. wait 1 second
  51. loop {@time} times:
  52. difference between x-location of player and {_posx} is bigger than 0.5:
  53. send "&2Teleportacja przerwana."
  54. give {@cena} to the player
  55. remove nausea from the player
  56. stop
  57. difference between z-location of player and {_posz} is bigger than 0.5:
  58. send "&2Teleportacja przerwana."
  59. give {@cena} to the player
  60. remove nausea from the player
  61. stop
  62. difference between y-location of player and {_posy} is bigger than 0.5:
  63. send "&2Teleportacja przerwana."
  64. give {@cena} to the player
  65. remove nausea from the player
  66. stop
  67. add -1 to {_time}
  68. {_time} is 0:
  69. teleport player to {spawn}
  70. remove nausea from the player
  71. send "&2Witaj na spawnie!"
  72. stop
  73. send "&2Teleportacja nastapi za &7%{_time}% sek&2."
  74. wait 1 second
  75. stop
  76. send "&2Koordynaty spawnu: &9x:{@x}, z:{@z}"
  77. send "&2Aby teleportowac sie musisz miec {@cena}."
Advertisement
Add Comment
Please, Sign In to add comment