knugi

Dom skrypt

May 13th, 2014
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.78 KB | None | 0 0
  1. command /ustawdom:
  2. trigger:
  3. add location of player to {dom::%player%}
  4. options:
  5. czas: 5 #Czas po jakim ma nastapic teleportacja
  6. nopermission: send "&7Komenda zablokowana"
  7. variables:
  8. {dom.%player%} = false
  9. command /dom [<text> [<text>]:
  10. trigger:
  11. arg 1 is "info":
  12. player doesn't have permission "home.admin":
  13. send "&f/dom &7Teleportujesz sie do domu"
  14. send "&f/dom ustaw &7Ustawiasz dom"
  15. send "&f/dom przestaw &7Przestawiasz dom"
  16. send "&f/dom usun &7Usuwasz dom"
  17. stop
  18. send "&f/dom &7Teleportujesz sie do domu
  19. send "&f/dom ustaw &7Ustawiasz dom"
  20. send "&f/dom przestaw &7Przestawiasz dom"
  21. send "&f/dom usun &7Usuwasz dom"
  22. send "&f/dom ustaw player &7Ustawiasz dom dla danego gracza"
  23. send "&f/dom przesun player &7Przestawiasz dom dla danego gracza"
  24. send "&f/dom player &7Teleportujesz gracza do jego domu"
  25. stop
  26. arg 1 is "ustaw":
  27. arg 2 is set:
  28. player has permission "dom.admin":
  29. add location of player to {dom::%arg 2%}
  30. set {dom.%arg 2%} to true
  31. send "&7Ustawiles dom dla gracza &f%arg 2%" to player
  32. send "&c%player% &7ustawil tobie dom" to arg 2
  33. stop
  34. {@nopermission}
  35. add location of player to {dom::%player%}
  36. set {dom.%player%} to true
  37. send "&7Ustawiles dom, aby sie do niego teleportowac wpisz &f/dom"
  38. stop
  39. arg 1 is "przestaw":
  40. arg 2 is set:
  41. player has permission "dom.admin":
  42. {dom.%arg 2%} is true:
  43. set {dom::%arg 2%} to location of player
  44. send "&7Przestawiles dom dla gracza &f%arg 2%"
  45. send "&c%player% &7przestawil ci dom"
  46. stop
  47. add location of player to {dom::%arg 2}
  48. send "&7Ustawiles dom dla gracza &f%arg 2%" to player
  49. send "&c%player% &7ustawil tobie dom" to arg 2
  50. stop
  51. {@nopermission}
  52. stop
  53. {dom.%player%} is true:
  54. set {dom::%player%} to location of player
  55. send "&7Przestawiles dom"
  56. stop
  57. add location of player to {dom::%player%}
  58. send "&7Ustawiles dom, aby sie do niego teleportowac wpisz &f/dom"
  59. stop
  60. arg 1 is "usun":
  61. arg 2 is set:
  62. player has permission "dom.admin":
  63. {dom.%arg 2%} is true:
  64. set {dom.%arg 2} to false
  65. remove {dom::%arg 2%}
  66. send "&7Usunales dom dla gracza &f%arg 2%"
  67. send "&c%player% &7usunal tobie dom" to arg 2
  68. stop
  69. send "&7Dany gracz nie posiada domu"
  70. stop
  71. {@nopermission}
  72. stop
  73. {dom.%player%} is true:
  74. set {dom.%player%} to false
  75. remove {dom::%player%}
  76. send "&7Usunales dom"
  77. stop
  78. send "&7Nie posiadasz domu"
  79. stop
  80. arg 1 is not set:
  81. arg 2 is set:
  82. player has permission "dom.admin":
  83. {dom.%arg 2} it set:
  84. teleport arg 2 to {dom.%arg 2%}
  85. send "&c%player% &7przeteleportowal Cię do domu" to arg 2
  86. send "&7Przeteleportowales &7%arg 2% &7do jego domu"
  87. stop
  88. {@nopermission}
  89. stop
  90. {dom.%player%} is set:
  91. player doesn't have permission "dom.teleport":
  92. set {_posx} to x-location of player
  93. set {_posy} to y-location of player
  94. set {_posz} to z-location of player
  95. send "&7Teleportacja nastapic za &c{@czas} &7sekund. Nie ruszaj sie!"
  96. loop {@czas} times:
  97. wait 1 second
  98. difference between x-location of player and {_posx} is bigger than 0.5:
  99. send "{@logo}&7Teleportacja przerwana."
  100. stop
  101. difference between z-location of player and {_posz} is bigger than 0.5:
  102. send "{@logo}&7Teleportacja przerwana."
  103. stop
  104. difference between y-location of player and {_posy} is bigger than 0.5:
  105. send "{@logo}&7Teleportacja przerwana."
  106. stop
  107. teleport player to {dom::%player%}
  108. send "&7Witaj w domu!"
  109. stop
  110. teleport player to {dom::%player%}
  111. send "&7Witaj w domu!"
  112. stop
  113. send "&7Nie masz domu!"
  114. send "&7Nie poprawna komenda!"
Advertisement
Add Comment
Please, Sign In to add comment