Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- on script load:
- if folder "plugins/Skript/Danekont" doesn't exists:
- # tworzymy folder #
- send "Nie odnaleziono folderu ""Danekont""!" to console
- send "Tworzenie..." to console
- create folder "plugins/Skript/Danekont"
- send "Folder ""Danekont"" zostal pomyslnie utworzony!" to console
- # teraz tworzymy sam plik .yml #
- if file "plugins/Skript/Danekont/dane.yml" doesn't exists:
- send "Nie znaleziono pliku ""dane.yml""!" to console
- send "Tworzenie..." to console
- create file "plugins/Skript/Danekont/dane.yml"
- if file "plugins/Skript/Danekont/logi_wejsc.yml" doesn't exists:
- send "Nie znaleziono pliku ""logi_wejsc""!" to console
- send "Tworzenie..." to console
- create file "plugins/Skript/Danekont/logi_wejsc.yml"
- if file "plugins/Skript/Danekont/logi_wyjsc.yml" doesn't exists:
- send "Nie znaleziono pliku ""logi_wyjsc""!" to console
- send "Tworzenie..." to console
- create file "plugins/Skript/Danekont/logi_wyjsc.yml"
- on first join:
- wf "%player% dolaczyl pierwszy raz do gry" to "plugins/Skript/Danekont/logi_wejsc.yml"
- set "wejscia.%player%" to "1" in yaml file "plugins/Skript/Danekont/dane.yml"
- stop
- on join:
- set {_wejscia.%player%} to single value "wejscia.%player%" get of "plugins/Skript/Danekont/dane.yml"
- wf "%player% dolaczyl do gry" to "plugins/Skript/Danekont/logi_wejsc.yml"
- set {_wejscia} to {_wejscia.%player%} parsed as integer
- add 1 to {_wejscia}
- set "wejscia.%player%" to "%{_wejscia}%" in yaml file "plugins/Skript/Danekont/dane.yml"
- stop
- on quit:
- wf "%player% Wyszedl z gry" to "plugins/Skript/Danekont/logi_wyjsc.yml"
- stop
Advertisement
Add Comment
Please, Sign In to add comment