Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #========================================================================================================#
- # LICENCJA #
- #========================================================================================================#
- # ZAKAZ: #
- # * Modyfikowania treści skryptu #
- # * Przywłaszczania sobie autorstwa skryptu #
- # * Zarabiania na skrypcie #
- # * Udostepniania skryptu w swoich paczkach serwerowych #
- # * Usuwania tresci zawierajacych informacje o autorze #
- # * Podszywania sie pod autora #
- # * Udostepniania skryptu w paczkach plikow serwerowch itp #
- # * Usuwania tresci zawierajacych autora #
- # * Dopisywania wszelkich dodatków typu strona www #
- #========================================================================================================#
- # POZWOLENIA: #
- # * Modyfikowanie wiadomości skryptu na wlasne potrzeby #
- # * Dopisywanie fragmentow na wlasne potrzeby #
- #========================================================================================================#
- # Mylnie odczytana licencja nie zwalnia z przestrzegania jej. #
- #========================================================================================================#
- #========================================================================================================#
- # Skrypt stworzony przez HugoZvPlayZ #
- # Nazwa: LocationZ #
- # Wersja: 0.1 #
- # Skript: 2.0.2 #
- #========================================================================================================#
- #--------------------------------------------------------------------------------------------------------#
- # WYMAGANIA #
- #--------------------------------------------------------------------------------------------------------#
- # Pluginy: #
- # ● Skript #
- #--------------------------------------------------------------------------------------------------------#
- #--------------------------------------------------------------------------------------------------------#
- # USTAWIENIA #
- #--------------------------------------------------------------------------------------------------------#
- options:
- # Tag Skryptu
- LocationZ.tag: &4&lLocation&0&lZ
- # Kordynaty:
- LocationZ.x.min: -1000
- LocationZ.x.max: +1000
- LocationZ.y: 70
- LocationZ.z.min: -1000
- LocationZ.z.max: +1000
- # Info | Brak uprawnien
- LocationZ.msg.permission: &4Nie masz uprawnien
- # Info | Reload skryptu
- LocationZ.msg.reload: &aSkrypt przeladowany pomyslnie
- #--------------------------------------------------------------------------------------------------------#
- # UPRAWNIEIA #
- #--------------------------------------------------------------------------------------------------------#
- # /LocationZ pomoc ● Pomoc ● LocationZ.gracz | LocationZ.admin #
- # /LocationZ tp [<player>] ● Teleport na losowe kordynaty ● LocationZ.gracz | LocationZ.admin #
- # /LocationZ info ● Informacje ● LocationZ.gracz | LocationZ.admin #
- # /LocationZ reload ● Reload ● LocationZ.admin #
- # [] - opcjonalnie | <> - wymagane #
- #--------------------------------------------------------------------------------------------------------#
- #--------------------------------------------------------------------------------------------------------#
- # KOD #
- #--------------------------------------------------------------------------------------------------------#
- on rightclick on sign:
- if line 1 is "&4&lLocation&0Z" or "&4&lL&0&lZ" or "&4&lLoc&0&lZ":
- if player has permission "LocationZ.gracz" or "LocationZ.admin":
- set {_LocationZ.x} to a random integer between {@LocationZ.x.min} and {@LocationZ.x.max}
- set {_LocationZ.z} to a random integer between {@LocationZ.z.min} and {@LocationZ.z.max}
- message "{@LocationZ.tag} &7&l| &7Teleportacja za 3 sekundy"
- wait 3 seconds
- execute console command "/tp %player% %{_LocationZ.x}% {@LocationZ.y} %{_LocationZ.z}%"
- message "{@LocationZ.tag} &7&l| &7Zostales przeteleportowany na kordynaty: %{_LocationZ.x}% {@LocationZ.y} %{_LocationZ.z}%"
- else:
- message "{@LocationZ.tag} &7&l| {@LocationZ.msg.permission}"
- command /LocationZ [<text>] [<player>]:
- aliases: lz, locz
- trigger:
- if argument 1 is not set:
- execute player command "LocationZ pomoc"
- if argument 1 is "pomoc":
- if player has permission "LocationZ.gracz" or "LocationZ.admin":
- message "&5&l<---------------{@LocationZ.tag}&5&l--------------->"
- message "&e&l* &2/LocationZ pomoc &f- &7Pomoc"
- message "&e&l* &2/LocationZ tp [<player>] &f- &7Teleport na losowe kordynaty"
- message "&e&l* &2/LocationZ info &f- &7Informacje"
- message "&e&l* &2/LocationZ reload &f- &7Reload"
- message "&5&l<---------------{@LocationZ.tag}&5&l--------------->"
- else:
- message "{@LocationZ.tag} &7&l| {@LocationZ.msg.permission}"
- if argument 1 is "tp":
- if player has permission "LocationZ.gracz" or "LocationZ.admin":
- if argument 2 is set:
- set {_LocationZ.x} to a random integer between {@LocationZ.x.min} and {@LocationZ.x.max}
- set {_LocationZ.z} to a random integer between {@LocationZ.z.min} and {@LocationZ.z.max}
- message "{@LocationZ.tag} &7&l| &7Teleportacja gracza &a%argument 2% &7za 3 sekundy"
- message "{@LocationZ.tag} &7&l| &7Teleportacja za 3 sekundy" to argument 2
- wait 3 seconds
- execute console command "/tp %argument 2% %{_LocationZ.x}% {@LocationZ.y} %{_LocationZ.z}%"
- message "{@LocationZ.tag} &7&l| &7Zostales przeteleportowany na kordynaty: %{_LocationZ.x}% {@LocationZ.y} %{_LocationZ.z}%" to argument 2
- message "{@LocationZ.tag} &7&l| &7Gracz &a%argument 2% &7zostal przeteleportowany na kordynaty: %{_LocationZ.x}% {@LocationZ.y} %{_LocationZ.z}%"
- else:
- set {_LocationZ.x} to a random integer between {@LocationZ.x.min} and {@LocationZ.x.max}
- set {_LocationZ.z} to a random integer between {@LocationZ.z.min} and {@LocationZ.z.max}
- message "{@LocationZ.tag} &7&l| &7Teleportacja za 3 sekundy"
- wait 3 seconds
- execute console command "/tp %player% %{_LocationZ.x}% {@LocationZ.y} %{_LocationZ.z}%"
- message "{@LocationZ.tag} &7&l| &7Zostales przeteleportowany na kordynaty: %{_LocationZ.x}% {@LocationZ.y} %{_LocationZ.z}%"
- else:
- message "{@LocationZ.tag} &7&l| {@LocationZ.msg.permission}"
- if argument 1 is "info":
- if player has permission "LocationZ.gracz" or "LocationZ.admin":
- message "&5&l<---------------{@LocationZ.tag}&5&l--------------->"
- message "&e&l* &2&lSkrypt: &4&Location&0&lZ"
- message "&e&l* &2&lWersja: &c&l0.1"
- message "&e&l* &2&lAutor: &c&lHugoZvPlayZ"
- message "&5&l<---------------{@LocationZ.tag}&5&l--------------->"
- else:
- message "{@LocationZ.tag} &7&l| {@LocationZ.msg.permission}"
- if argument 1 is "reload" or "rl":
- if player has permission "LocationZ.admin":
- execute console command "skript reload LocationZ"
- message "{@LocationZ.tag} &7&l| {@LocationZ.msg.reload}"
- else:
- message "{@LocationZ.tag} &7&l| {@LocationZ.msg.permission}"
- #-------------------------------------------- Koniec skryptu --------------------------------------------#
- #------------------------------- © by HugoZvPlayZ - Strona: www.HvZ.ugu.pl ------------------------------#
Advertisement
Add Comment
Please, Sign In to add comment