Skocz do zawartości
  • 0

CHAT


tenoktorymsnisz_
 Udostępnij

Pytanie

Witam napisałem skrypt na chat i nie działa pisanie jak chat jest off w sensie cancel event nie działa znaczy mi pokazuje ze wysłano a u innych nie widać help!

on chat:
	if {chat} is true:
		stop trigger
	else if "false":
		cancel event

 

Edytowane przez Taq
Taq

Poprawiam estetykę oraz błąd ortograficzny.

Notatka dodana przez Taq

Odnośnik do komentarza
Udostępnij na innych stronach

Rekomendowane odpowiedzi

  • 0
Teraz, neexipl napisał:

Daj cały kod.
Jak zapisujesz {chat}? Bo "false" a false to różnica.

command /chat [<text>]:
	trigger:
		if player has permission "chat.zarzadzanie":
			if arg 1 is "cc":
				loop 300 times:
					send "" to all players 
				send "&7Chat zostal wyczyszczony przez &a%player%" to all players 
				stop trigger
			if arg 1 is "on":
				set {chat} to true
				send "&7Chat zostal &awlaczony" to all players
				stop trigger
			if arg 1 is "off":
				set {chat} to false
				send "&7Chat zostal &cwylaczony" to all players

 

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
Spoiler
command /chat [<text>]:
	aliases: c, czat
	trigger:
		if player has permission "chat.zarzadzanie":
			if text-argument is not set:
				message "LUL"
			else if text-argument is not "on" or "wlacz" or "enable" or "off" or "wylacz" or "disable" or "c" or "cc" or "clear":
				message "LUL"
			else:
				if text-argument is "on" or "wlacz" or "enable":
					if {chat} is set:
						message "Wlaczyles chat"
						delete {chat}
					else:
						message "Chat juz jest wlaczony"
				if text-argument is "off" or "wylacz" or "disable":
					if {chat} is not set:
						set {chat} to false
						message "Wylaczyles chat!"
					else:
						message "Chat juz jest wylaczony!"
				if text-argument is "c" or "cc" or "clear":
					loop 100 times:
						message "" to all players
					message "Chat zostal wyczyszczony" to all players
		else:
			message "brak uprawnien!"

on chat:
	if {chat} is not set:
		stop
	else:
		cancel event

 

On chat:
	if {chat} is true:
		stop
	else:
		cancel event

 

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
15 godzin temu, _Of3k napisał:
Zarejestruj się lub zaloguj, aby zobaczyć ukrytą treść! Pokaż ukrytą zawartość

command /chat [<text>]:
	aliases: c, czat
	trigger:
		if player has permission "chat.zarzadzanie":
			if text-argument is not set:
				message "LUL"
			else if text-argument is not "on" or "wlacz" or "enable" or "off" or "wylacz" or "disable" or "c" or "cc" or "clear":
				message "LUL"
			else:
				if text-argument is "on" or "wlacz" or "enable":
					if {chat} is set:
						message "Wlaczyles chat"
						delete {chat}
					else:
						message "Chat juz jest wlaczony"
				if text-argument is "off" or "wylacz" or "disable":
					if {chat} is not set:
						set {chat} to false
						message "Wylaczyles chat!"
					else:
						message "Chat juz jest wylaczony!"
				if text-argument is "c" or "cc" or "clear":
					loop 100 times:
						message "" to all players
					message "Chat zostal wyczyszczony" to all players
		else:
			message "brak uprawnien!"

on chat:
	if {chat} is not set:
		stop
	else:
		cancel event

 

On chat:
	if {chat} is true:
		stop
	else:
		cancel event

 

mialem tak...

 

7 godzin temu, HotAngel2K17 napisał:

W twoim skrypcie jest blad i tyle.

niee

 

7 godzin temu, HotAngel2K17 napisał:

Czy dodales to?

Variables: 

  {chat} = true

tak dawno

Odnośnik do komentarza
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

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