Guest User

Untitled

a guest
Feb 22nd, 2015
276
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.29 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. clear {warpy.%player%}
  10. set {warpy.%player%} to 0
  11. send "&eReset sie udał"
  12.  
  13. on load:
  14. if folder "plugins/Skript/Config" doesn't exists:
  15. create folder "plugins/Skript/Config"
  16. if file "plugins/Skript/Config/config.yml" doesn't exists:
  17. create file "plugins/Skript/Config/config.yml"
  18. set "ranga1" to "mod" in yaml file "plugins/Skript/Config/config.yml"
  19. set "ranga2" to "smod" in yaml file "plugins/Skript/Config/config.yml"
  20. set "ranga3" to "sadmin" in yaml file "plugins/Skript/Config/config.yml"
  21. set "czas" to "5" in yaml file "plugins/Skript/Config/config.yml"
  22. set "warpy1" to "3" in yaml file "plugins/Skript/Config/config.yml"
  23. set "warpy2" to "6" in yaml file "plugins/Skript/Config/config.yml"
  24. else:
  25. set {warpy1} to single value "warpy1" get of "plugins/Skript/Config/config.yml"
  26. set {czas} to single value "czas" get of "plugins/Skript/Config/config.yml"
  27. set {warpy2} to single value "warpy2" get of "plugins/Skript/Config/config.yml"
  28. set {czas} to single value "czas" get of "plugins/Skript/Config/config.yml"
  29. set {ranga1} to single value "ranga1" get of "plugins/Skript/Config/config.yml"
  30. set {ranga2} to single value "ranga2" get of "plugins/Skript/Config/config.yml"
  31. set {ranga3} to single value "ranga3" get of "plugins/Skript/Config/config.yml"
  32. command /warpyreload:
  33. trigger:
  34. set {warpy1} to single value "warpy1" get of "plugins/Skript/Config/config.yml"
  35. set {warpy2} to single value "warpy2" get of "plugins/Skript/Config/config.yml"
  36. set {czas} to single value "czas" get of "plugins/Skript/Config/config.yml"
  37. set {ranga1} to single value "ranga1" get of "plugins/Skript/Config/config.yml"
  38. set {ranga2} to single value "ranga2" get of "plugins/Skript/Config/config.yml"
  39. set {ranga3} to single value "ranga3" get of "plugins/Skript/Config/config.yml"
  40. set {czas} to single value "czas" get of "plugins/Skript/Config/config.yml"
  41. send "&eReload udal sie"
  42. command /warpystatus:
  43. trigger:
  44. send "&eLiczba warpow: %{warpy1}%"
  45. send "&eCzas: %{czas}%"
  46. send "&eRanga1: %{ranga1}% Ranga2: %{ranga2}% Ranga3: %{ranga3}%"
  47. command /warpy [<text>] [<text>] [<text>]:
  48. trigger:
  49. if arg 1 is not set:
  50. send "&eKomendy:"
  51. send "&e/warpy stworz [nazwa]"
  52. send "&e/warpy usun [nazwa]"
  53. send "&e/warpy tp [nazwa]"
  54. if arg 1 is "stworz":
  55. if arg 2 is set:
  56. if player have permissions "{ranga1}" or "{ranga2}":
  57. if {warpy.%player%} is greater than {warpy1}:
  58. set {warp.%arg 2%} to location of player
  59. add 1 to {warpy.%player%}
  60. add arg 2 to {lwarpy::*}
  61. send "&eStworzono warp: %arg 2%"
  62. set {warps.%arg 2%} to true
  63. set {owner.%player%.%arg 2%} to true
  64. if player have permissions "{ranga3}":
  65. if {warpy.%player%} is greater than {warpy2}:
  66. set {warp.%arg 2%} to location of player
  67. add 1 to {warpy.%player%}
  68. add arg 2 to {lwarpy::*}
  69. send "&eStworzono warp: %arg 2%"
  70. set {warps.%arg 2%} to true
  71. set {owner.%player%.%arg 2%} to true
  72. else:
  73. send "&eStworzyles za duzo warpow"
  74. else:
  75. send "&eNie masz permissions"
  76. else:
  77. send "&ePoprawne uzycie: /warpy stworz [nazwa warpa]"
  78. if arg 1 is "usun":
  79. if arg 2 is set:
  80. if player have permissions "mod" or "smod" or "sadmin":
  81. if {owner.%player%.%arg 2%} is true:
  82. set {warps.%arg 2%} to false
  83. set {owner.%player%.%arg 2%} to false
  84. remove 1 from {warpy.%player%}
  85. clear {warp.%arg 2%}
  86. if arg 1 is "tp":
  87. if arg 2 is set:
  88. if {warps.%arg 2%} is true:
  89. set {teleport.%player%} to true
  90. wait {czas}
  91. if {teleport.%player%} is true:
  92. teleport player to {warp.%arg 2%}
  93. send "&eJestes na warpie %arg 2%}"
  94. else:
  95. send "&eNie ma takiego warpa"
  96. if arg 1 is "lista":
  97. if {lwarpy::*} is not empty:
  98. loop {lwarpy::*}:
  99. send "&e%loop-index%. %loop-value%"
  100. command /warpyadminreset:
  101. trigger:
  102. if player is op:
  103. clear {lwarpy::*}
  104. send "&eDZIALA"
  105. on any movement:
  106. if {teleport.%player%} is true:
  107. set {teleport.%player%} to false
  108. send "&eRuszyles sie! Teleportacja przerwana!"
  109. on join:
  110. if player's name is "_Daniel":
  111. send "&eNa tym serwerze jest twoj skrypt!"
Advertisement
Add Comment
Please, Sign In to add comment