Slupik98

Dodać

Jun 20th, 2014
298
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.78 KB | None | 0 0
  1.  
  2. if arg 1 is "reload" or "r" or "relog":
  3. execute player command "skript reload %script%"
  4. if arg 1 is "skrypty" or "scripts":
  5. send "&8Skrypty w bazie danych:"
  6. send "&7%{SKD.list::*}%"
  7. if arg 1 is "list" or "lista":
  8. set {skrypty::*} to files in "plugins/Skript/scripts"
  9. loop {skrypty::*}:
  10. if loop-value contains ".sk":
  11. set {_znak} to the first 1 characters of the loop-value parsed as text
  12. if {_znak} is "-":
  13. add loop-value to {skrypty.no::*}
  14. else:
  15. add loop-value to {skrypty.yes::*}
  16. else:
  17. add loop-value to {skrypty.garbage::*}
  18. send "&2Skrypty działające(uruchomione):"
  19. send "&e%{skrypty.yes::*}%"
  20. send "&2Skrypty nie działające(wyłączone):"
  21. send "&c%{skrypty.no::*}%"
  22. send "&2Pliki śmieci(nie skrypty):"
  23. send "&4%{skrypty.garbage::*}%"
  24. clear {skrypty::*}
  25. clear {skrypty.no::*}
  26. clear {skrypty.garbage::*}
  27. if arg 1 is "cdownload" or "cd" or "customdownload" or "własnyDownload":
  28. if arg 2 is set:
  29. if arg 3 is set:
  30. send "Pobieranie..."
  31. set {_url} to arg 2 parsed as text
  32. set {_path} to arg 3 parsed as text
  33. set {_czy.zawiera} to false
  34. if {_url} contains "http://":
  35. set {_czy.zawiera} to true
  36. if {_czy.zawiera} is false:
  37. set {_url} to "http://%{_url}%"
  38. if {_path} contains ":" or "|" or "*" or "?" or "<" or ">":
  39. send "Ścieżka nie może zawierać znaków : | * ? < > "
  40. stop
  41. else:
  42. download from "%{_url}%" to file "%{_path}%"
  43. send "Pomyślnie pobrano plik!"
  44. else:
  45. send "Musisz podać ścieżkę do pliku, np:"
  46. send "plugins/Skript/scripts/test.sk"
  47. else:
  48. send "Musisz podać link!"
Advertisement
Add Comment
Please, Sign In to add comment