TheU5erPL

Log

Jan 19th, 2015
222
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.58 KB | None | 0 0
  1. on script load:
  2. if folder "plugins/Skript/Danekont" doesn't exists:
  3. # tworzymy folder #
  4. send "Nie odnaleziono folderu ""Danekont""!" to console
  5. send "Tworzenie..." to console
  6. create folder "plugins/Skript/Danekont"
  7. send "Folder ""Danekont"" zostal pomyslnie utworzony!" to console
  8. # teraz tworzymy sam plik .yml #
  9. if file "plugins/Skript/Danekont/dane.yml" doesn't exists:
  10. send "Nie znaleziono pliku ""dane.yml""!" to console
  11. send "Tworzenie..." to console
  12. create file "plugins/Skript/Danekont/dane.yml"
  13. if file "plugins/Skript/Danekont/logi_wejsc.yml" doesn't exists:
  14. send "Nie znaleziono pliku ""logi_wejsc""!" to console
  15. send "Tworzenie..." to console
  16. create file "plugins/Skript/Danekont/logi_wejsc.yml"
  17. if file "plugins/Skript/Danekont/logi_wyjsc.yml" doesn't exists:
  18. send "Nie znaleziono pliku ""logi_wyjsc""!" to console
  19. send "Tworzenie..." to console
  20. create file "plugins/Skript/Danekont/logi_wyjsc.yml"
  21.  
  22. on first join:
  23. wf "%player% dolaczyl pierwszy raz do gry" to "plugins/Skript/Danekont/logi_wejsc.yml"
  24. set "wejscia.%player%" to "1" in yaml file "plugins/Skript/Danekont/dane.yml"
  25. stop
  26.  
  27. on join:
  28. set {_wejscia.%player%} to single value "wejscia.%player%" get of "plugins/Skript/Danekont/dane.yml"
  29. wf "%player% dolaczyl do gry" to "plugins/Skript/Danekont/logi_wejsc.yml"
  30. set {_wejscia} to {_wejscia.%player%} parsed as integer
  31. add 1 to {_wejscia}
  32. set "wejscia.%player%" to "%{_wejscia}%" in yaml file "plugins/Skript/Danekont/dane.yml"
  33. stop
  34.  
  35. on quit:
  36. wf "%player% Wyszedl z gry" to "plugins/Skript/Danekont/logi_wyjsc.yml"
  37. stop
Advertisement
Add Comment
Please, Sign In to add comment