MikolajGra

Dom - Skript dla Ztrollowany

Apr 5th, 2014
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.37 KB | None | 0 0
  1. command /sethome [<text>]:
  2. trigger:
  3. if {home.%player%} is not set:
  4. if argument 1 is not set:
  5. if player has permission "dom.ustaw.1":
  6. if {home.%player%} is not set:
  7. set {home.%player%} to location of player
  8. send "&aUstawiono pierwszy dom"
  9. else:
  10. send "&4Blad: &cNie masz dostepu do ustawienia domu" to player
  11. else:
  12. if player has permission "dom.ustaw.kilka":
  13. send "&4Blad: &cMasz juz ustawiony dom! Zeby ustawic kolejny wpisz /sethome <nazwadomu>" to player
  14. else:
  15. send "&4Blad: &cMozesz ustawic tylko jeden dom!" to player
  16. if argument 1 is set:
  17. if player has permission "dom.ustaw.kilka":
  18. if {home.%player%} is set:
  19. set {home.%player%.%arg-1%} to location of the player
  20. send "&aUstawiono dom %arg-1%" to player
  21. else:
  22. send "&4Blad: &cZeby moc ustawic kolejny dom musisz miec ustawiony pierwszy" to player
  23. else:
  24. send "&4Blad &cNie masz dostepu do ustawienia kilku domow" to player
  25. command /home [<text>]:
  26. trigger:
  27. if argument 1 is not set:
  28. if {home.%player%} is set:
  29. if player has permission "dom.tpbc":
  30. send "&7Teleportacja..." to player
  31. teleport player to {home.%player%}
  32. else:
  33. if player has permission "dom.tp":
  34. send "&7Teleportacja nastapi sa &c3 sekundy. &7Prosze sie nie ruszac." to player
  35. set {pos.%player%} to location of player
  36. wait 3 seconds
  37. if {pos.%player%} is location of player:
  38. teleport player to {home.%player%}
  39. delete {pos.%player%}
  40. else:
  41. send "&7Teleportacja anulowana" to player
  42. delete {pos.%player%}
  43. else:
  44. send "&4Blad: &cNie masz ustawionego domu! Ustaw dom komenda /sethome" to player
  45. if argument 1 is set:
  46. if {home.%player%.%arg-1%} is set:
  47. if player has permission "dom.tpbc":
  48. send "&7Teleportacja..." to player
  49. teleport player to {home.%player%.%arg-1%}
  50. else:
  51. if player has permission "dom.tp":
  52. send "&7Teleportacja nastapi sa &c3 sekundy. &7Prosze sie nie ruszac." to player
  53. set {pos.%player%} to location of player
  54. wait 3 seconds
  55. if {pos.%player%} is location of player:
  56. teleport player to {home.%player%}
  57. delete {pos.%player%}
  58. else:
  59. send "&7Teleportacja anulowana" to player
  60. delete {pos.%player%}
  61. else:
  62. send "&4Blad: &cNie masz ustawionego takiego domu!" to player
Advertisement
Add Comment
Please, Sign In to add comment