Guest User

TPR.sk

a guest
Mar 17th, 2014
235
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.72 KB | None | 0 0
  1. #Author: MrxJoint
  2. #Version: 0.1
  3.  
  4. #===============================================#
  5. # Licencja LosowejTeleportacji by MrxJoint #
  6. # + Nie zezwalam na: #
  7. # - Usuwanie tresci o autorze! #
  8. # - Udostepnaniu skryptu innym! #
  9. # - Podszywanie sie pod autora! #
  10. # - Uzywanie kodu skryptu w swoich skryptach! #
  11. # - Zarabianie na skrypcie! #
  12. # + Zezwalam na: #
  13. # - Dodawanie/edytowanie kodu na swoja potrzebe!#
  14. # - Modyfikowanie wiadomosci! #
  15. #===============================================#
  16. options:
  17. x_min: 1000 #Min kordy x
  18. x_max: 4000 #Max kordy x
  19. z_min: 1000 #Min kordy z
  20. z_max: 4000 #Max kordy z
  21.  
  22. tag1: &6&l[TPR] #Wiadomosc na tabliczce LINIA PIERWSZA!
  23. tag2: &5Teleport #Wiadomosc na tabliczce LINIA DRUGA!
  24. tag3: &5Losowy #Wiadomosc na tabliczce LINIA TRZECIA!
  25. tag4: &6&l[&TPR] #Wiadomosc na tabliczce LINIA CZWARTA!
  26. variables:
  27. {pvp.%player%} = false
  28. {god.%player%} = false
  29. command /tpr:
  30. trigger:
  31. if {pvp.%player%} is false:
  32. if player has permissions "loswy.tpr":
  33. send "&6&nZostales teleportowany w losowe miejsce na mapie!"
  34. set {_x} to random integer between {@x_min} and {@x_max}
  35. set {_y} to 500
  36. set {_z} to random integer between {@z_min} and {@z_max}
  37. set {god.%player%} to true
  38. execute console command "/tppos %player% %{_x}% %{_y}% %{_z}%"
  39. apply speed 4 to player for 20 seconds
  40. wait 10 seconds
  41. set {god.%player%} to false
  42. stop trigger
  43. else:
  44. send "&cBrak permissi" to player
  45. stop trigger
  46. else if {pvp.%player%} is true:
  47. send "&cJestes w trakcie walki, nie mozesz sie teleportowac" to player
  48. stop trigger
  49.  
  50. on rightclick on sign:
  51. if line 1 is "{@tag1}":
  52. if line 2 is "{@tag2}":
  53. if line 3 is "{@tag3}":
  54. if line 4 is "{@tag4}":
  55. if player has permissions "loswy.tpr":
  56. send "&6&nZostales teleportowany w losowe miejsce na mapie!"
  57. set {_x} to random integer between {@x_min} and {@x_max}
  58. set {_y} to 64
  59. set {_z} to random integer between {@z_min} and {@z_max}
  60. set {spadanie.%player%} to true
  61. set {god.%player%} to false
  62. execute console command "/tppos %player% %{_x}% %{_y}% %{_z}%"
  63. apply speed 4 to player for 20 seconds
  64. wait 10 seconds
  65. set {god.%player%} to false
  66.  
  67. on damage of player:
  68. if {god.%victim%} is true:
  69. cancel event
  70. if {god.%attacker%} is true:
  71. cancel event
  72. on damage:
  73. attacker is player
  74. victim is player
  75. set {pvp.%attacker%} to true
  76. set {pvp.%victim%} to true
  77. wait 10 seconds
  78. set {pvp.%attacker%} to false
  79. set {pvp.%victim%} to false
  80. stop trigger
  81.  
  82. on quit:
  83. set {god.%player%} to false
  84. set {pvp.%player%} to false
Advertisement
Add Comment
Please, Sign In to add comment