Skocz do zawartości
  • 0

[PILNE!!] Wiadomość która nie powinna zostać wysłana na chat


Pytanie

Witam, mam problem z jednym ze skriptów. Jak wpisuje [item] to wiadomość nie powinna zostać wysłana na czat ale jest wysyłana. Dopisywałem już cancel event etc, ale to nie pomaga.

Proszę o szybką pomoc :) 

 

Kodzik:

on chat:
	message contains "[exp]" or "[bao]" or "[eq]" or "[krytyk]" or "[kasa]" or "[czas]" or "[item]":
		cancel event
		open chest with 1 row named "&7Czym chcesz sie pochwalic?" to player
		format slot 0 of player with {czas.%player%} of clock named "&aCzas Gry" with lore "&eKliknij aby pokazac na chacie" to close then run [execute player command "czasgry"]
		format slot 1 of player with {stan.%player%} of light green dye named "&aStan Konta" with lore "&eKliknij aby pokazac na chacie" to close then run [execute player command "stankonta"]
		format slot 2 of player with {przedmiot.%player%} of chest named "&aTwoj Przedmiot" with lore "&eKliknij aby pokazac na chacie" to close then run [execute player command "twojprzedmiot"]
		format slot 3 of player with {totem.%player%} of dandelion yellow named "&aTwoje Bao" with lore "&eKliknij aby pokazac na chacie" to close then run [execute player command "bao"]
		format slot 4 of player with {zbroja.%player%} of iron chestplate named "&aTwoje Uzbrojenie" with lore "&eKliknij aby pokazac na chacie" to close then run [execute player command "eq"]
		format slot 5 of player with {najkryt.%player%} of gold sword named "&aNajwiekszy Krytyk" with lore "&eKliknij aby pokazac na chacie" to close then run [execute player command "krytyk"]
		format slot 6 of player with {exp.%player%} of 384 named "&aTwoje Doswiadczenie" with lore "&eKliknij aby pokazac na chacie" to close then run [execute player command "mojexp"]
		format slot 8 of player with {wiadomosc.%player%} of paper named "&aTwoja Wiadomosc:" with lore "&e%message%" to close
	else:
		stop

Dziękuje :) 

Odnośnik do komentarza
https://skript.pl/temat/31222-pilne-wiadomo%C5%9B%C4%87-kt%C3%B3ra-nie-powinna-zosta%C4%87-wys%C5%82ana-na-chat/
Udostępnij na innych stronach

6 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

Dlaczego wszyscy piszą bez if'ów?? Dlaczego dyskryminujecie if'y, co wam zrobiły? :(  

@Topic ogólnie skrypt wygląda ok, spróbuj dodać tego if'a

  • 0
W dniu 8.01.2019 o 23:01, Ixidi napisał:

Dlaczego wszyscy piszą bez if'ów?? Dlaczego dyskryminujecie if'y, co wam zrobiły? :(  

@Topic ogólnie skrypt wygląda ok, spróbuj dodać tego if'a

nie działa

  • 0
W dniu 8.01.2019 o 21:03, Mroczekk napisał:

Witam, mam problem z jednym ze skriptów. Jak wpisuje [item] to wiadomość nie powinna zostać wysłana na czat ale jest wysyłana. Dopisywałem już cancel event etc, ale to nie pomaga.

Proszę o szybką pomoc :) 

 

Kodzik:


on chat:
	message contains "[exp]" or "[bao]" or "[eq]" or "[krytyk]" or "[kasa]" or "[czas]" or "[item]":
		cancel event
		open chest with 1 row named "&7Czym chcesz sie pochwalic?" to player
		format slot 0 of player with {czas.%player%} of clock named "&aCzas Gry" with lore "&eKliknij aby pokazac na chacie" to close then run [execute player command "czasgry"]
		format slot 1 of player with {stan.%player%} of light green dye named "&aStan Konta" with lore "&eKliknij aby pokazac na chacie" to close then run [execute player command "stankonta"]
		format slot 2 of player with {przedmiot.%player%} of chest named "&aTwoj Przedmiot" with lore "&eKliknij aby pokazac na chacie" to close then run [execute player command "twojprzedmiot"]
		format slot 3 of player with {totem.%player%} of dandelion yellow named "&aTwoje Bao" with lore "&eKliknij aby pokazac na chacie" to close then run [execute player command "bao"]
		format slot 4 of player with {zbroja.%player%} of iron chestplate named "&aTwoje Uzbrojenie" with lore "&eKliknij aby pokazac na chacie" to close then run [execute player command "eq"]
		format slot 5 of player with {najkryt.%player%} of gold sword named "&aNajwiekszy Krytyk" with lore "&eKliknij aby pokazac na chacie" to close then run [execute player command "krytyk"]
		format slot 6 of player with {exp.%player%} of 384 named "&aTwoje Doswiadczenie" with lore "&eKliknij aby pokazac na chacie" to close then run [execute player command "mojexp"]
		format slot 8 of player with {wiadomosc.%player%} of paper named "&aTwoja Wiadomosc:" with lore "&e%message%" to close
	else:
		stop

Dziękuje :) 

on chat:
	if message contains " ":
		set {_mess::*} to message split at " "
		loop {_mess::*}:
			if loop-value is "[exp]" or "[bao]" or "[eq]" or "[krytyk]" or "[kasa]" or "[czas]" or "[item]":
				cancel event
				open chest with 1 row named "&7Czym chcesz sie pochwalic?" to player
				format slot 0 of player with {czas.%player%} of clock named "&aCzas Gry" with lore "&eKliknij aby pokazac na chacie" to close then run [execute player command "czasgry"]
				format slot 1 of player with {stan.%player%} of light green dye named "&aStan Konta" with lore "&eKliknij aby pokazac na chacie" to close then run [execute player command "stankonta"]
				format slot 2 of player with {przedmiot.%player%} of chest named "&aTwoj Przedmiot" with lore "&eKliknij aby pokazac na chacie" to close then run [execute player command "twojprzedmiot"]
				format slot 3 of player with {totem.%player%} of dandelion yellow named "&aTwoje Bao" with lore "&eKliknij aby pokazac na chacie" to close then run [execute player command "bao"]
				format slot 4 of player with {zbroja.%player%} of iron chestplate named "&aTwoje Uzbrojenie" with lore "&eKliknij aby pokazac na chacie" to close then run [execute player command "eq"]
				format slot 5 of player with {najkryt.%player%} of gold sword named "&aNajwiekszy Krytyk" with lore "&eKliknij aby pokazac na chacie" to close then run [execute player command "krytyk"]
				format slot 6 of player with {exp.%player%} of 384 named "&aTwoje Doswiadczenie" with lore "&eKliknij aby pokazac na chacie" to close then run [execute player command "mojexp"]
				format slot 8 of player with {wiadomosc.%player%} of paper named "&aTwoja Wiadomosc:" with lore "&e%message%" to close
				exit loop
	else:
		if message contains "[exp]" or "[bao]" or "[eq]" or "[krytyk]" or "[kasa]" or "[czas]" or "[item]":
			cancel event
			open chest with 1 row named "&7Czym chcesz sie pochwalic?" to player
			format slot 0 of player with {czas.%player%} of clock named "&aCzas Gry" with lore "&eKliknij aby pokazac na chacie" to close then run [execute player command "czasgry"]
			format slot 1 of player with {stan.%player%} of light green dye named "&aStan Konta" with lore "&eKliknij aby pokazac na chacie" to close then run [execute player command "stankonta"]
			format slot 2 of player with {przedmiot.%player%} of chest named "&aTwoj Przedmiot" with lore "&eKliknij aby pokazac na chacie" to close then run [execute player command "twojprzedmiot"]
			format slot 3 of player with {totem.%player%} of dandelion yellow named "&aTwoje Bao" with lore "&eKliknij aby pokazac na chacie" to close then run [execute player command "bao"]
			format slot 4 of player with {zbroja.%player%} of iron chestplate named "&aTwoje Uzbrojenie" with lore "&eKliknij aby pokazac na chacie" to close then run [execute player command "eq"]
			format slot 5 of player with {najkryt.%player%} of gold sword named "&aNajwiekszy Krytyk" with lore "&eKliknij aby pokazac na chacie" to close then run [execute player command "krytyk"]
			format slot 6 of player with {exp.%player%} of 384 named "&aTwoje Doswiadczenie" with lore "&eKliknij aby pokazac na chacie" to close then run [execute player command "mojexp"]
			format slot 8 of player with {wiadomosc.%player%} of paper named "&aTwoja Wiadomosc:" with lore "&e%message%" to close

 

  • 0
Godzinę temu, KrejzolekPRO napisał:

on chat:
	if message contains " ":
		set {_mess::*} to message split at " "
		loop {_mess::*}:
			if loop-value is "[exp]" or "[bao]" or "[eq]" or "[krytyk]" or "[kasa]" or "[czas]" or "[item]":
				cancel event
				open chest with 1 row named "&7Czym chcesz sie pochwalic?" to player
				format slot 0 of player with {czas.%player%} of clock named "&aCzas Gry" with lore "&eKliknij aby pokazac na chacie" to close then run [execute player command "czasgry"]
				format slot 1 of player with {stan.%player%} of light green dye named "&aStan Konta" with lore "&eKliknij aby pokazac na chacie" to close then run [execute player command "stankonta"]
				format slot 2 of player with {przedmiot.%player%} of chest named "&aTwoj Przedmiot" with lore "&eKliknij aby pokazac na chacie" to close then run [execute player command "twojprzedmiot"]
				format slot 3 of player with {totem.%player%} of dandelion yellow named "&aTwoje Bao" with lore "&eKliknij aby pokazac na chacie" to close then run [execute player command "bao"]
				format slot 4 of player with {zbroja.%player%} of iron chestplate named "&aTwoje Uzbrojenie" with lore "&eKliknij aby pokazac na chacie" to close then run [execute player command "eq"]
				format slot 5 of player with {najkryt.%player%} of gold sword named "&aNajwiekszy Krytyk" with lore "&eKliknij aby pokazac na chacie" to close then run [execute player command "krytyk"]
				format slot 6 of player with {exp.%player%} of 384 named "&aTwoje Doswiadczenie" with lore "&eKliknij aby pokazac na chacie" to close then run [execute player command "mojexp"]
				format slot 8 of player with {wiadomosc.%player%} of paper named "&aTwoja Wiadomosc:" with lore "&e%message%" to close
				exit loop
	else:
		if message contains "[exp]" or "[bao]" or "[eq]" or "[krytyk]" or "[kasa]" or "[czas]" or "[item]":
			cancel event
			open chest with 1 row named "&7Czym chcesz sie pochwalic?" to player
			format slot 0 of player with {czas.%player%} of clock named "&aCzas Gry" with lore "&eKliknij aby pokazac na chacie" to close then run [execute player command "czasgry"]
			format slot 1 of player with {stan.%player%} of light green dye named "&aStan Konta" with lore "&eKliknij aby pokazac na chacie" to close then run [execute player command "stankonta"]
			format slot 2 of player with {przedmiot.%player%} of chest named "&aTwoj Przedmiot" with lore "&eKliknij aby pokazac na chacie" to close then run [execute player command "twojprzedmiot"]
			format slot 3 of player with {totem.%player%} of dandelion yellow named "&aTwoje Bao" with lore "&eKliknij aby pokazac na chacie" to close then run [execute player command "bao"]
			format slot 4 of player with {zbroja.%player%} of iron chestplate named "&aTwoje Uzbrojenie" with lore "&eKliknij aby pokazac na chacie" to close then run [execute player command "eq"]
			format slot 5 of player with {najkryt.%player%} of gold sword named "&aNajwiekszy Krytyk" with lore "&eKliknij aby pokazac na chacie" to close then run [execute player command "krytyk"]
			format slot 6 of player with {exp.%player%} of 384 named "&aTwoje Doswiadczenie" with lore "&eKliknij aby pokazac na chacie" to close then run [execute player command "mojexp"]
			format slot 8 of player with {wiadomosc.%player%} of paper named "&aTwoja Wiadomosc:" with lore "&e%message%" to close

 

dalej to samo :( 

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...