Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Author: MrxJoint
- #Version: 0.1
- #===============================================#
- # Licencja LosowejTeleportacji by MrxJoint #
- # + Nie zezwalam na: #
- # - Usuwanie tresci o autorze! #
- # - Udostepnaniu skryptu innym! #
- # - Podszywanie sie pod autora! #
- # - Uzywanie kodu skryptu w swoich skryptach! #
- # - Zarabianie na skrypcie! #
- # + Zezwalam na: #
- # - Dodawanie/edytowanie kodu na swoja potrzebe!#
- # - Modyfikowanie wiadomosci! #
- #===============================================#
- options:
- x_min: 1000 #Min kordy x
- x_max: 4000 #Max kordy x
- z_min: 1000 #Min kordy z
- z_max: 4000 #Max kordy z
- tag1: &6&l[TPR] #Wiadomosc na tabliczce LINIA PIERWSZA!
- tag2: &5Teleport #Wiadomosc na tabliczce LINIA DRUGA!
- tag3: &5Losowy #Wiadomosc na tabliczce LINIA TRZECIA!
- tag4: &6&l[&TPR] #Wiadomosc na tabliczce LINIA CZWARTA!
- variables:
- {pvp.%player%} = false
- {god.%player%} = false
- command /tpr:
- trigger:
- if {pvp.%player%} is false:
- if player has permissions "loswy.tpr":
- send "&6&nZostales teleportowany w losowe miejsce na mapie!"
- set {_x} to random integer between {@x_min} and {@x_max}
- set {_y} to 500
- set {_z} to random integer between {@z_min} and {@z_max}
- set {god.%player%} to true
- execute console command "/tppos %player% %{_x}% %{_y}% %{_z}%"
- apply speed 4 to player for 20 seconds
- wait 10 seconds
- set {god.%player%} to false
- stop trigger
- else:
- send "&cBrak permissi" to player
- stop trigger
- else if {pvp.%player%} is true:
- send "&cJestes w trakcie walki, nie mozesz sie teleportowac" to player
- stop trigger
- on rightclick on sign:
- if line 1 is "{@tag1}":
- if line 2 is "{@tag2}":
- if line 3 is "{@tag3}":
- if line 4 is "{@tag4}":
- if player has permissions "loswy.tpr":
- send "&6&nZostales teleportowany w losowe miejsce na mapie!"
- set {_x} to random integer between {@x_min} and {@x_max}
- set {_y} to 64
- set {_z} to random integer between {@z_min} and {@z_max}
- set {spadanie.%player%} to true
- set {god.%player%} to false
- execute console command "/tppos %player% %{_x}% %{_y}% %{_z}%"
- apply speed 4 to player for 20 seconds
- wait 10 seconds
- set {god.%player%} to false
- on damage of player:
- if {god.%victim%} is true:
- cancel event
- if {god.%attacker%} is true:
- cancel event
- on damage:
- attacker is player
- victim is player
- set {pvp.%attacker%} to true
- set {pvp.%victim%} to true
- wait 10 seconds
- set {pvp.%attacker%} to false
- set {pvp.%victim%} to false
- stop trigger
- on quit:
- set {god.%player%} to false
- set {pvp.%player%} to false
Advertisement
Add Comment
Please, Sign In to add comment