Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- command /tpa [<offlineplayer>]:
- trigger:
- if arg-offlineplayer is set:
- if arg-offlineplayer is online:
- set {tpa::victim::%player%} to arg-offlineplayer
- set {tpa::attacker::%arg-offlineplayer%} to player
- send "&aWyslales prosbe o teleportacje."
- send "&e%player% &awyslal tobie prosbe o teleportacje!"
- send "&aWpisz &e/tpaccept &aby akceptowac." to arg-offlineplayer
- send "&aWpisz &e/tpdeny &aby anulowac." to arg-offlineplayer
- wait 120 seconds
- if {tpa::victim::%player%} is arg-offlineplayer
- clear {tpa::victim::%player%}
- if {tpa::attacker::%arg-offlineplayer%} is player:
- clear {tpa::attacker::%arg-offlineplayer%}
- else:
- send "&cTego gracza nie ma na serwerze!"
- else:
- send "&a/tpa <gracz>"
- command /tpaccept:
- trigger:
- if {tpa::attacker::%player%} is set:
- if {tpa::victim::%{tpa::attacker::%player%}%} is player:
- send "&aGracz &ezaakacpetowal twoja prosbe. Teleportacja nastapi za 5 sekund." to {tpa::attacker::%player%}
- set {_x} to y-coordinate of {tpa::attacker::%player%}
- set {tpa::tepaSie::%{tpa::attacker::%player%}%} to true
- loop 5 times:
- wait 1 seconds
- if {_x} is not y-coordinate of {tpa::attacker::%player%}:
- set {tpa::tepaSie::%{tpa::attacker::%player%}%} to false
- send "&aPoruszyles sie, teleportacja anulowana." to {tpa::tepaSie::%{tpa::attacker::%player%}%}
- if {tpa::tepaSie::%{tpa::attacker::%player%}%} is true:
- teleport {tpa::tepaSie::%{tpa::attacker::%player%}%} to player
- else:
- send "&cProsba o teleportacje wygasla."
- else:
- send "&cNie otrzymales prosby o teleportacje."
- command /tpdeny:
- trigger:
- if {tpa::attacker::%player%} is set:
- if {tpa::victim::%{tpa::attacker::%player%}%} is player:
- clear {tpa::victim::%{tpa::attacker::%player%}%}
- clear {tpa::attacker::%player%}
- send "&aGracz &e%player% &aanulowal twoja prosbe o teleportacje." to {tpa::victim::%{tpa::attacker::%player%}%}
- send "&aAnulowano teleportacje."
- else:
- send "&cProsba o teleportacje wygasla."
- else:
- send "&cNie otrzymales prosby o teleportacje."
- on quit:
- if {tpa::victim::%player%} is set:
- clear {tpa::victim::%{tpa::attacker::%{tpa::victim::%player%}%}%}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement