Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #Modul aktualizacji dla skryptu RereshMOTD
- options:
- tag: &bRefreshMOTD &6>>
- on load:
- if file "plugins/Skript/scripts/RefreshMOTD/skrypt.sk" doesn't exists:
- send "{@tag} &4ERROR: &cNie znaleziono skryptu RefreshMOTD! &cZostanie on zaraz pobrany..." to console
- wait 1 tick
- send "{@tag} &aPobieranie..." to console
- download from "http://pastebin.com/raw.php?i=FT0gJR1d" to "plugins/Skript/scripts/RefreshMOTD/skrypt.sk"
- else:
- set {_version} to the first 6 characters of content of file "plugins/Skript/scripts/RefreshMOTD/skrypt.sk"
- replace all "##" with "" in {_version}
- send "{@tag} Twoja wersja skryptu to %{_version}%" to console
- set {_version.new} to result of connect to "http://pastebin.com/raw.php?i=j18KkJZe"
- set {_version.new} to the first 6 characters of {_version.new}
- replace all "##" with "" in {_version.new}
- send "{@tag} Najnowsza wersja skryptu to %{_version.new}%" to console
- {_version} is not {_version.new}:
- send "{@tag} Jest dostepna nowa wersja skryptu!" to console
- download "http://pastebin.com/raw.php?i=j18KkJZe" to "plugins/Skript/scripts/skrypt.sk"
- stop
Advertisement
Add Comment
Please, Sign In to add comment