Guest User

Untitled

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