jan_kk

CommandCreator v1.0

Dec 3rd, 2014
408
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.14 KB | None | 0 0
  1. # -<>-<>-<>-<>-<>-<>-<>-<>-<>-<>- #
  2. # Command Creator #
  3. # -<>-<>-<>-<>-<>-<>-<>-<>-<>-<>- #
  4. # #
  5. # Skrypt napisany przez Jan kk (youtube.com/user/JankkPL) #
  6. # #
  7. # ------------------------------- #
  8. #
  9. # Zabraniam: #
  10. # - Modyfikowania kodu #
  11. # - Podszywania sie pod autora #
  12. # Zezwalam na: #
  13. # - Modyfikowanie komend poprzez komende /commandcreator #
  14. # - Wykorzystywanie skryptu na serwerach publicznych #
  15. #
  16. # ------------------------------- #
  17. command /commandcreator [<text>] [<text>] [<text>] [<text>]:
  18. aliases: ccc
  19. trigger:
  20. if player is an op:
  21. if arg 1 is "stworz" or "create":
  22. if arg 2 is not set:
  23. send "&cPodaj ID komendy"
  24. stop
  25. if arg 3 is not set:
  26. send "&cPodaj komende!"
  27. stop
  28. if arg 4 is not set:
  29. send "&cPodaj tresc komendy!"
  30. stop
  31. if {commandcreator::komenda::%arg 2%} is set:
  32. send "&cKomenda o takim ID zostala juz stworzona."
  33. stop
  34. set {commandcreator::komenda::%arg 2%} to arg 3
  35. set {commandcreator::tresc::%arg 2%} to arg 4
  36. send "&2Komenda zostala poprawnie stworzona!"
  37. stop
  38. if arg 1 is "usun" or "delete":
  39. if arg 2 is not set:
  40. send "&cPodaj ID komendy!"
  41. stop
  42. if {commandcreator::komenda::%arg 2%} is not set:
  43. send "&cTaka komenda nie istnieje!"
  44. stop
  45. clear {commandcreator::komenda::%arg 2%}
  46. clear {commandcreator::tresc::%arg 2%}
  47. send "&2Poprawnie usunieto komende!"
  48. stop
  49. if arg 1 is "reload":
  50. execute player command "sk reload %script%"
  51. stop
  52. send "&a-- &f<[]> &aCommandCreator &f<[]> &a--"
  53. send "&6/CommandCreator stworz <ID> <komenda> <tresc>"
  54. send "&7- tworzy nowa komende"
  55. send "&6/CommandCreator usun <ID>"
  56. send "&7- usuwa komende"
  57. send "&6/CommandCreator reload"
  58. send "&7- przeladowywuje skrypt"
  59. stop
  60. send "&cNie masz uprawnien!"
  61. on command:
  62. loop {commandcreator::komenda::*}:
  63. if command is "%loop-value%":
  64. cancel event
  65. send "%colored {commandcreator::tresc::%loop-value%}%"
  66. # ------------------------------- #
Advertisement
Add Comment
Please, Sign In to add comment