Guest User

xRaportSK

a guest
Feb 11th, 2016
211
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.07 KB | None | 0 0
  1. # xRaportSK #
  2. # Edycja dozwolona! #
  3. # Wystawianie na inne fora zabronione bez mojego autorstwa #
  4. # WERSJA Z FOLDEREM! #
  5. # Autor: ~ODEK_ - Oedeopol #
  6.  
  7. # USTAWIENIA:
  8. # TUTAJ MOŻESZ EDYTOWAĆ!
  9.  
  10.  
  11. options:
  12.  
  13. folder: Raporty # <-- Tutaj zmieniasz nazwe folderu
  14.  
  15. miejsce: {@folder}/{@nazwa} # <-- Tutaj zmienisz miejsce zapisania pliku, w którym będą zapisywane raporty.
  16.  
  17. nazwa: raporty.yml # <-- Tutaj zmienisz nazwe pliku, w którym będą zapisywane raporty.
  18.  
  19. #------------------------------------------#
  20.  
  21.  
  22.  
  23. # KOD SKRYPTU:
  24. # JEŻELI SIĘ NIE ZNASZ, NIC NIE DOTYKAJ!
  25.  
  26.  
  27. on script load:
  28. if folder "{@folder}" doesn't exists:
  29. send "Nie znaleziono folderu {@folder}" to console
  30. send "Tworzenie folderu {@folder}" to console
  31. create folder "{@folder}"
  32. if file "plugins/Skript/raporty.yml" doesn't exists:
  33. send "Nie znaleziono {@nazwa}" to console
  34. send "Tworzenie pliku {@nazwa} w {@miejsce}" to console
  35. create file "{@miejsce}"
  36. command /zglos [<text>] [<text>]:
  37. trigger:
  38. if argument-1 is set:
  39. if argument-1 is not "%player%":
  40. if argument-2 is set:
  41. if argument-2 contains "dupa" or "cycki" or "kutas" or "pizda" or "cipa" or "cipka" or "huj" or "chuj" or "dupe" or "spierdalaj" or "spierdalac" or "kurwa" or "pierdole" or "jebac" or "jebany":
  42. send "&7» &cNie uzywaj wulgaryzmow!"
  43. else:
  44. loop all players:
  45. if loop-player is "%argument-1%":
  46. set "[%day%/%month%/%year%] [%hour%:%minute%] " to "%argument-1% Powod: %argument-2%" in yaml file "{@miejsce}"
  47. send "&7» &aZgloszono gracza &7%argument-1%&a. Powod&8: &7%argument-2%"
  48. send "&7» &aZostales zgloszony! Powod&8: &7%argument-2%" to loop-player
  49. else:
  50. send "&7» &aGracz jest offline!"
  51. else:
  52. send "&7» &aPodaj powod zgloszenia gracza!"
  53. else:
  54. send "&7» &aNie mozesz zglosic siebie."
  55. else:
  56. send "&7» &aWpisz nazwe gracza, ktorego chcesz zglosic."
Advertisement
Add Comment
Please, Sign In to add comment