Guest User

Untitled

a guest
Feb 14th, 2015
52
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.63 KB | None | 0 0
  1. variables:
  2. {warpy::%player%} = 0
  3.  
  4. on join:
  5. if {warpy::%player%} is not set:
  6. set {warpy::%player%} to 0
  7. command /warpyreset:
  8. trigger:
  9. set {warpy::%player%} to 0
  10. send "&eReset sie udaƂ"
  11.  
  12. on load:
  13. if folder "plugins/Skript/Config" doesn't exists:
  14. create folder "plugins/Skript/Config"
  15. create file "plugins/Skript/Config/config.yml"
  16. wf "Nazwa Skryptu: SuperWarpy" to "plugins/Skript/Config/config.yml"
  17. wf "Autor: EndDragos" to "plugins/Skript/Config/config.yml"
  18. wf "Do warpu dodaj dodatkowo 1 aby poprawnie dzialalo!" to "plugins/Skript/Config/config.yml"
  19. wf "warpy dla moda: 3" to "plugins/Skript/Config/config.yml"
  20. wf "warpy dla admina: 6" to "plugins/Skript/Config/config.yml"
  21. wf "Ponizej ustaw czas teleportowania na warp. Domyslnie 5 sekund" to "plugins/Skript/Config/config.yml"
  22. wf "czas: 5 seconds" to "plugins/Skript/Config/config.yml"
  23. wf "Ustal jaka ranga bedzie mogla uzywac ustalone wyzej warpy [ilosc warpow]" to "plugins/Skript/Config/config.yml"
  24. wf "ranga1: mod" to "plugins/Skript/Config/config.yml"
  25. wf "ranga2: smod" to "plugins/Skript/Config/config.yml"
  26. wf "ranga3: sadmin" to "plugins/Skript/Config/config.yml"
  27. set {ilosc.warpow.mod} to "warpy dla moda" get of "plugins/Skript/Config/config.yml"
  28. set {ilosc.warpow.admin} to "warpy dla admina" get of file "plugins/Skript/Config/config.yml"
  29. set {czas} to single value "czas" get of "plugins/Skript/Config/config.yml"
  30. set {ranga1} to single value "ranga1" get of "plugins/Skript/Config/config.yml"
  31. set {ranga2} to single value "ranga2" get of "plugins/Skript/Config/config.yml"
  32. set {ranga3} to single value "ranga3" get of "plugins/Skript/Config/config.yml"
  33. command /warpystatus:
  34. trigger:
  35. send "&eLiczba warpow: %{ilosc.warpow.mod}%"
  36. send "&eCzas: %{czas}%"
  37. send "&eRanga1: %{ranga1}% Ranga2: %{ranga2}% Ranga3: %{ragna3}%"
  38. command /warpy [<text>] [<text>] [<text>]:
  39. trigger:
  40. if arg 1 is not set:
  41. send "&eKomendy:"
  42. send "&e/warpy stworz [nazwa]"
  43. send "&e/warpy usun [nazwa]"
  44. send "&e/warpy tp [nazwa]"
  45. if arg 1 is "stworz":
  46. if arg 2 is set:
  47. if player have permissions "{ranga1}" or "{ranga2}":
  48. if {warpy::%player%} is greater than {ilosc.warpow.mod}:
  49. set {warp.%arg 2%} to location of player
  50. add 1 to {warpy::%player%}
  51. add arg 2 to {lwarpy::*}
  52. send "&eStworzono warp: %arg 2%"
  53. set {warps.%arg 2%} to true
  54. set {owner.%player%.%arg 2%} to true
  55. if player have permissions "{ranga3}":
  56. if {warpy::%player%} is greater than {ilosc.warpow.admin}:
  57. set {warp.%arg 2%} to location of player
  58. add 1 to {warpy::%player%}
  59. add arg 2 to {warpy::*}
  60. send "&eStworzono warp: %arg 2%"
  61. set {warps.%arg 2%} to true
  62. set {owner.%player%.%arg 2%} to true
  63. else:
  64. send "&eStworzyles za duzo warpow"
  65. else:
  66. send "&eNie masz permissions"
  67. else:
  68. send "&ePoprawne uzycie: /warpy stworz [nazwa warpa]"
  69. if arg 1 is "usun":
  70. if arg 2 is set:
  71. if player have permissions "mod" or "smod" or "sadmin":
  72. if {owner.%player%.%arg 2%} is true:
  73. set {warps.%arg 2%} to false
  74. set {owner.%player%.%arg 2%} to false
  75. remove 1 from {warpy::%player%}
  76. clear {warp.%arg 2%}
  77. if arg 1 is "tp":
  78. if arg 2 is set:
  79. if {warps.%arg 2%} is true:
  80. set {teleport.%player%} to true
  81. wait {czas}
  82. if {teleport.%player%} is true:
  83. teleport player to {warp.%arg 2%}
  84. send "&eJestes na warpie %arg 2%}"
  85. else:
  86. send "&eNie ma takiego warpa"
  87. on any movement:
  88. if {teleport.%player%} is true:
  89. set {teleport.%player%} to false
  90. send "&eRuszyles sie! Teleportacja przerwana!"
Advertisement
Add Comment
Please, Sign In to add comment