Guest User

UNTILTED BAJ A GŁEST

a guest
Feb 9th, 2015
229
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C# 0.79 KB | None | 0 0
  1. command /setspawn:
  2.         trigger:
  3.                 if player has permission "setspawn":
  4.                         set spawn to location of player
  5.                         send "&8> &7Ustawiles lokalizacje spawna."
  6.                        
  7. command /spawn:
  8.     trigger:
  9.         if player has permission "spawn.teleport":
  10.             set {_x} to x-coordinate of player
  11.             set {_z} to z-coordinate of player
  12.             set {_y} to y-coordinate of player
  13.             send "&7Teleportacja nastapi za 5 sekund!"
  14.             loop 5 times:
  15.                 if {_x} is not x-coordinate of player:
  16.                     send "&cTeleportacja anulowana!"
  17.                     stop
  18.                 if {_y} is not y-coordinate of player:
  19.                     send "&cTeleportacja anulowana!"
  20.                     stop
  21.                 if {_z} is not z-coordinate of player:
  22.                     send "&cTeleportacja anulowana!"
  23.                     stop
  24.                 wait 1 second
  25.             teleport player to spawn
Advertisement
Add Comment
Please, Sign In to add comment