HugoZvPlayZ

LocationZ

Nov 7th, 2013
324
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 9.12 KB | None | 0 0
  1. #========================================================================================================#
  2. # LICENCJA #
  3. #========================================================================================================#
  4. # ZAKAZ: #
  5. # * Modyfikowania treści skryptu #
  6. # * Przywłaszczania sobie autorstwa skryptu #
  7. # * Zarabiania na skrypcie #
  8. # * Udostepniania skryptu w swoich paczkach serwerowych #
  9. # * Usuwania tresci zawierajacych informacje o autorze #
  10. # * Podszywania sie pod autora #
  11. # * Udostepniania skryptu w paczkach plikow serwerowch itp #
  12. # * Usuwania tresci zawierajacych autora #
  13. # * Dopisywania wszelkich dodatków typu strona www #
  14. #========================================================================================================#
  15. # POZWOLENIA: #
  16. # * Modyfikowanie wiadomości skryptu na wlasne potrzeby #
  17. # * Dopisywanie fragmentow na wlasne potrzeby #
  18. #========================================================================================================#
  19. # Mylnie odczytana licencja nie zwalnia z przestrzegania jej. #
  20. #========================================================================================================#
  21.  
  22. #========================================================================================================#
  23. # Skrypt stworzony przez HugoZvPlayZ #
  24. # Nazwa: LocationZ #
  25. # Wersja: 0.1 #
  26. # Skript: 2.0.2 #
  27. #========================================================================================================#
  28.  
  29. #--------------------------------------------------------------------------------------------------------#
  30. # WYMAGANIA #
  31. #--------------------------------------------------------------------------------------------------------#
  32. # Pluginy: #
  33. # ● Skript #
  34. #--------------------------------------------------------------------------------------------------------#
  35. #--------------------------------------------------------------------------------------------------------#
  36. # USTAWIENIA #
  37. #--------------------------------------------------------------------------------------------------------#
  38. options:
  39. # Tag Skryptu
  40. LocationZ.tag: &4&lLocation&0&lZ
  41.  
  42. # Kordynaty:
  43. LocationZ.x.min: -1000
  44. LocationZ.x.max: +1000
  45. LocationZ.y: 70
  46. LocationZ.z.min: -1000
  47. LocationZ.z.max: +1000
  48.  
  49. # Info | Brak uprawnien
  50. LocationZ.msg.permission: &4Nie masz uprawnien
  51.  
  52. # Info | Reload skryptu
  53. LocationZ.msg.reload: &aSkrypt przeladowany pomyslnie
  54.  
  55. #--------------------------------------------------------------------------------------------------------#
  56. # UPRAWNIEIA #
  57. #--------------------------------------------------------------------------------------------------------#
  58. # /LocationZ pomoc ● Pomoc ● LocationZ.gracz | LocationZ.admin #
  59. # /LocationZ tp [<player>] ● Teleport na losowe kordynaty ● LocationZ.gracz | LocationZ.admin #
  60. # /LocationZ info ● Informacje ● LocationZ.gracz | LocationZ.admin #
  61. # /LocationZ reload ● Reload ● LocationZ.admin #
  62. # [] - opcjonalnie | <> - wymagane #
  63. #--------------------------------------------------------------------------------------------------------#
  64. #--------------------------------------------------------------------------------------------------------#
  65. # KOD #
  66. #--------------------------------------------------------------------------------------------------------#
  67. on rightclick on sign:
  68. if line 1 is "&4&lLocation&0Z" or "&4&lL&0&lZ" or "&4&lLoc&0&lZ":
  69. if player has permission "LocationZ.gracz" or "LocationZ.admin":
  70. set {_LocationZ.x} to a random integer between {@LocationZ.x.min} and {@LocationZ.x.max}
  71. set {_LocationZ.z} to a random integer between {@LocationZ.z.min} and {@LocationZ.z.max}
  72. message "{@LocationZ.tag} &7&l| &7Teleportacja za 3 sekundy"
  73. wait 3 seconds
  74. execute console command "/tp %player% %{_LocationZ.x}% {@LocationZ.y} %{_LocationZ.z}%"
  75. message "{@LocationZ.tag} &7&l| &7Zostales przeteleportowany na kordynaty: %{_LocationZ.x}% {@LocationZ.y} %{_LocationZ.z}%"
  76. else:
  77. message "{@LocationZ.tag} &7&l| {@LocationZ.msg.permission}"
  78.  
  79. command /LocationZ [<text>] [<player>]:
  80. aliases: lz, locz
  81. trigger:
  82. if argument 1 is not set:
  83. execute player command "LocationZ pomoc"
  84. if argument 1 is "pomoc":
  85. if player has permission "LocationZ.gracz" or "LocationZ.admin":
  86. message "&5&l<---------------{@LocationZ.tag}&5&l--------------->"
  87. message "&e&l* &2/LocationZ pomoc &f- &7Pomoc"
  88. message "&e&l* &2/LocationZ tp [<player>] &f- &7Teleport na losowe kordynaty"
  89. message "&e&l* &2/LocationZ info &f- &7Informacje"
  90. message "&e&l* &2/LocationZ reload &f- &7Reload"
  91. message "&5&l<---------------{@LocationZ.tag}&5&l--------------->"
  92. else:
  93. message "{@LocationZ.tag} &7&l| {@LocationZ.msg.permission}"
  94. if argument 1 is "tp":
  95. if player has permission "LocationZ.gracz" or "LocationZ.admin":
  96. if argument 2 is set:
  97. set {_LocationZ.x} to a random integer between {@LocationZ.x.min} and {@LocationZ.x.max}
  98. set {_LocationZ.z} to a random integer between {@LocationZ.z.min} and {@LocationZ.z.max}
  99. message "{@LocationZ.tag} &7&l| &7Teleportacja gracza &a%argument 2% &7za 3 sekundy"
  100. message "{@LocationZ.tag} &7&l| &7Teleportacja za 3 sekundy" to argument 2
  101. wait 3 seconds
  102. execute console command "/tp %argument 2% %{_LocationZ.x}% {@LocationZ.y} %{_LocationZ.z}%"
  103. message "{@LocationZ.tag} &7&l| &7Zostales przeteleportowany na kordynaty: %{_LocationZ.x}% {@LocationZ.y} %{_LocationZ.z}%" to argument 2
  104. message "{@LocationZ.tag} &7&l| &7Gracz &a%argument 2% &7zostal przeteleportowany na kordynaty: %{_LocationZ.x}% {@LocationZ.y} %{_LocationZ.z}%"
  105. else:
  106. set {_LocationZ.x} to a random integer between {@LocationZ.x.min} and {@LocationZ.x.max}
  107. set {_LocationZ.z} to a random integer between {@LocationZ.z.min} and {@LocationZ.z.max}
  108. message "{@LocationZ.tag} &7&l| &7Teleportacja za 3 sekundy"
  109. wait 3 seconds
  110. execute console command "/tp %player% %{_LocationZ.x}% {@LocationZ.y} %{_LocationZ.z}%"
  111. message "{@LocationZ.tag} &7&l| &7Zostales przeteleportowany na kordynaty: %{_LocationZ.x}% {@LocationZ.y} %{_LocationZ.z}%"
  112. else:
  113. message "{@LocationZ.tag} &7&l| {@LocationZ.msg.permission}"
  114. if argument 1 is "info":
  115. if player has permission "LocationZ.gracz" or "LocationZ.admin":
  116. message "&5&l<---------------{@LocationZ.tag}&5&l--------------->"
  117. message "&e&l* &2&lSkrypt: &4&Location&0&lZ"
  118. message "&e&l* &2&lWersja: &c&l0.1"
  119. message "&e&l* &2&lAutor: &c&lHugoZvPlayZ"
  120. message "&5&l<---------------{@LocationZ.tag}&5&l--------------->"
  121. else:
  122. message "{@LocationZ.tag} &7&l| {@LocationZ.msg.permission}"
  123. if argument 1 is "reload" or "rl":
  124. if player has permission "LocationZ.admin":
  125. execute console command "skript reload LocationZ"
  126. message "{@LocationZ.tag} &7&l| {@LocationZ.msg.reload}"
  127. else:
  128. message "{@LocationZ.tag} &7&l| {@LocationZ.msg.permission}"
  129. #-------------------------------------------- Koniec skryptu --------------------------------------------#
  130. #------------------------------- © by HugoZvPlayZ - Strona: www.HvZ.ugu.pl ------------------------------#
Advertisement
Add Comment
Please, Sign In to add comment