kukubaczek

Untitled

Jul 20th, 2014
217
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Lua 1.10 KB | None | 0 0
  1. #Modul aktualizacji dla skryptu RereshMOTD
  2. options:
  3.     tag: &bRefreshMOTD &6>>
  4. on load:
  5.     if file "plugins/Skript/scripts/RefreshMOTD/skrypt.sk" doesn't exists:
  6.         send "{@tag} &4ERROR: &cNie znaleziono skryptu RefreshMOTD! &cZostanie on zaraz pobrany..." to console
  7.         wait 1 tick
  8.         send "{@tag} &aPobieranie..." to console
  9.         download from "http://pastebin.com/raw.php?i=FT0gJR1d" to "plugins/Skript/scripts/RefreshMOTD/skrypt.sk"
  10.     else:
  11.         set {_version} to the first 6 characters of content of file "plugins/Skript/scripts/RefreshMOTD/skrypt.sk"
  12.         replace all "##" with "" in {_version}
  13.         send "{@tag} Twoja wersja skryptu to %{_version}%" to console
  14.         set {_version.new} to result of connect to "http://pastebin.com/raw.php?i=j18KkJZe"
  15.         set {_version.new} to the first 6 characters of {_version.new}
  16.         replace all "##" with "" in {_version.new}
  17.         send "{@tag} Najnowsza wersja skryptu to %{_version.new}%" to console
  18.         {_version} is not {_version.new}:
  19.         send "{@tag} Jest dostepna nowa wersja skryptu!" to console
  20.         download "http://pastebin.com/raw.php?i=j18KkJZe" to "plugins/Skript/scripts/skrypt.sk"
  21.         stop
Advertisement
Add Comment
Please, Sign In to add comment