#---------------------------------
#- version: 2.0 -
#-- nowy kod oraz optymalizacja -
#- autor: Crystal_PL -
#---------------------------------
#chat 2.0#
on load:
set {_version} to content of file "plugins/Skript/scripts/chat1.sk"
set {_v} to index of "##" in {_version}
set {_v2} to subtext of {_version} from character ({_v}+1) to character (length of {_version})
set {_v3} to index of "##" in {_v2}
set {version} to subtext of {_version} from character ({_v}+1) to character ({_v3})
set {_version} to result of connect to "http://pastebin.com/raw/hZaDST3x"
set {_v} to index of "##" in {_version}
set {_v2} to subtext of {_version} from character ({_v}+1) to character (length of {_version})
set {_v3} to index of "##" in {_v2}
set {version.new} to subtext of {_version} from character ({_v}+1) to character ({_v3})
{version} is not {version.new}:
send "&aJest dostepna nowa wersja skryptu! &6Pobierz ja /update pobierz" to console
command /update [<text>]:
trigger:
set {_version} to result of connect to "http://pastebin.com/raw/hZaDST3x"
set {_v} to index of "##" in {_version}
set {_v2} to subtext of {_version} from character ({_v}+1) to character (length of {_version})
set {_v3} to index of "##" in {_v2}
set {version.new} to subtext of {_version} from character ({_v}+1) to character ({_v3})
arg 1 is "sprawdz":
send "Twoja wersja to %{version}%"
send "Najnowsza wersja to %{version.new}%"
{version} is not {version.new}:
send "Jest dostepna nowa wersja"
arg 1 is "pobierz":
{version} is not {version.new}:
download "http://pastebin.com/raw/hZaDST3x" to "plugins/Skript/scripts/skrypt.sk"
send "Pobrano najnowsza wersje!"
else:
send "Masz juz najnowsza wersje skrypta!"
else:
send "/update sprawdz - sprawdza aktualizacje"
send "/update pobierz - pobiera aktualizacje"
stop
variables:
{chat} = true
options:
czas: 5
command /chat [<text>]:
trigger:
if arg 1 is not set:
send "&8&m----------&e&lVip&6&lCraft&8&m----------"
send "&3/chat on &7- wlacza chat"
send "&3/chat off &7- wylacza chat"
send "&3/chat clear &7- czysci chat"
send "&8&m----------&e&lVip&6&lCraft&8&m----------"
if arg 1 is "on":
if {chat} is false:
if player has permission "wario.chat.on" or "wario.chat.*":
set {chat} to true
broadcast "&8&m----------&e&lVip&6&lCraft&8&m----------"
send "" to all players
broadcast "&2» &cChat zostal wlaczony przez &6 %player%"
send "" to all players
broadcast "&8&m----------&e&lVip&6&lCraft&8&m----------"
else:
send "&cBrak uprawnien &7(&6wario.chat.on&7)"
else:
send "&7Chat jest juz &2wlaczony"
stop
Pytanie
Crystal_PL 93
Mógłby ktoś naprawić? Nie wywala błędów ale nie pokazuje wersji itp. http://screenshot.sh/m3j4tp9adoUcS
Odnośnik do komentarza
https://skript.pl/temat/15136-chat/Udostępnij na innych stronach
2 odpowiedzi na to pytanie
Rekomendowane odpowiedzi