Guest User

Untitled

a guest
Jun 22nd, 2017
129
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.56 KB | None | 0 0
  1. on script load:
  2. if folder "plugins/Skript/scripts/clan" doesn't exists:
  3. create folder "plugins/Skript/scripts/clan"
  4. if folder "plugins/Skript/scripts/clan/info" doesn't exists:
  5. create folder "plugins/Skript/scripts/clan/info"
  6. command /clan [<text>] [<text>] [<text>]:
  7. trigger:
  8. if arg 1 is not set:
  9. send "&7==========&eCLAN==========" to player
  10. send "&e/clan zaloz (tag) (nazwa) &f- &ezaklada clan" to player
  11. send "&e/clan zapros (nick) &f- &ezaprasza gracza do clanu" to player
  12. send "&e/clan usun &f- &eusuwa clan" to player
  13. send "&e/clan wyrzuc (nick) &f- &ewyrzuca gracza z clanu" to player
  14. send "&7==========&eCLAN==========" to player
  15. if arg 1 is "zaloz":
  16. if arg 2 is not set:
  17. send "&eNie wpisales tagu clanu"
  18. if arg 3 is not set:
  19. send "&eNie wpisales nazwy clanu"
  20. if arg 2 is set:
  21. if arg 3 is set:
  22. if file "plugins/Skript/scripts/clan/info/%arg 2%.yml" doesn't exists:
  23. create file "plugins/Skript/scripts/clan/info/%arg 2%.yml"
  24. set yaml value "c.tag" from file "plugins/Skript/scripts/clan/info/%arg 2%.yml" to "%arg 2%"
  25. set yaml value "c.nazwa" from file "plugins/Skript/scripts/clan/info/%arg 2%.yml" to "%arg 3%"
  26. set yaml value "c.zalozyciel" from file "plugins/Skript/scripts/clan/info/%arg 2%.yml" to "%player%"
  27. add "%player%" to yaml list "c.czlonkowie" from "plugins/Skript/scripts/clan/info/%arg 2%.yml"
  28. send "&eZalozyles clan o tagu &f%arg 2% &ea o nazwie &f%arg 3%"
  29. else:
  30. send "&eTaki clan o takiej nazwie i o takim tagu juz istnieje!"
  31. stop
Advertisement
Add Comment
Please, Sign In to add comment