Skocz do zawartości
  • 0

Hej pomógłby ktoś ze skryptem?


Matthew10

Pytanie

Hej, mam mały problem ze skryptem na helpop i czy umiałby ktoś mi pomóc?

 

Command /helpop [<text>]:
	trigger:
		if arg 1 is set:
			send "&4[HelpOp] &cWiadomość została wysłana!" to player
			loop all players:
				if loop-player has permission "ekipa.helpop":
					send "&4[HelpOp] &7%player%: &f%arg 1%" to loop-player
					make embed:
						set color of embed to {@kolor}
						set the title of embed to tile with text "Gracz %player% napisał"
						set the description of embed to description with text "%arg 1%"
					send the last created embed to channel with id "XXXX" with "{@bot}"
					
		else:
			send "&9[!] &7Podaj treść wiadomości!" to player

Takie oto błędy wyskakują:

IbCobD6.png

Edytowane przez Matthew10
błędy
Odnośnik do komentarza
Udostępnij na innych stronach

11 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
Command /helpop [<text>]:
	trigger:
		if arg 1 is set:
			send "&4[HelpOp] &cWiadomość została wysłana!" to player
			loop all players:
				if loop-player has permission "ekipa.helpop":
					send "&4[HelpOp] &7%player%: &f%arg 1%" to loop-player
					make embed:
  						set {_title} to "Gracz %player% napisał" parsed as text
  						set {_desc} to "%arg 1%" parsed as text
						set color of embed to {@kolor}
						set the title of embed to tile with text "%{_title}%"
						set the description of embed to description with text "%{_desc}%"
					send the last created embed to channel with id "XXXX" with "{@bot}"
					
		else:
			send "&9[!] &7Podaj treść wiadomości!" to player

powinno działać

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
9 minut temu, lie_pan1 napisał:
Command /helpop [<text>]:
	trigger:
		if arg 1 is set:
			send "&4[HelpOp] &cWiadomość została wysłana!" to player
			loop all players:
				if loop-player has permission "ekipa.helpop":
					send "&4[HelpOp] &7%player%: &f%arg 1%" to loop-player
					make embed:
  						set {_title} to "Gracz %player% napisał" parsed as text
  						set {_desc} to "%arg 1%" parsed as text
						set color of embed to {@kolor}
						set the title of embed to tile with text "%{_title}%"
						set the description of embed to description with text "%{_desc}%"
					send the last created embed to channel with id "XXXX" with "{@bot}"
					
		else:
			send "&9[!] &7Podaj treść wiadomości!" to player

powinno działać

unknown.png

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
Command /helpop [<text>]:
    trigger:
        if arg 1 is not set:
            send "&9[!] &7Podaj treść wiadomości!" to player
            stop
        send "&4[HelpOp] &cWiadomość została wysłana!" to player
        send "&4[HelpOp] &7%player%: &f%arg 1%" to all players where [input has permission "ekipa.helpop"]
        make embed:
            set color of embed to {@kolor}
            set the title of embed to tile with text "Gracz %player% napisał"
            set the description of embed to description with text "%arg 1%"
        send the last created embed to channel with id "XXXX" with "{@bot}"

 

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
18 minut temu, xAxee napisał:
Command /helpop [<text>]:
    trigger:
        if arg 1 is not set:
            send "&9[!] &7Podaj treść wiadomości!" to player
            stop
        send "&4[HelpOp] &cWiadomość została wysłana!" to player
        send "&4[HelpOp] &7%player%: &f%arg 1%" to all players where [input has permission "ekipa.helpop"]
        make embed:
            set color of embed to {@kolor}
            set the title of embed to tile with text "Gracz %player% napisał"
            set the description of embed to description with text "%arg 1%"
        send the last created embed to channel with id "XXXX" with "{@bot}"

 

unknown.png

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
command /helpop [<text>]:
	trigger:
		if arg 1 is not set:
			send "&8» &7Poprawne użycie&8: &c/helpop <wiadomość>"
		if arg 1 is set:
			send "&2Twoja wiadomość została wysłana dla administracji!"
			loop all players:
				if loop-player has permission "helpop.sprawdzanie":
					send "&8[&cHelpop&8]&7: &8%player%&7: &f%arg-1%"
					stop

powinno dzialac

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
3 minuty temu, iYowee napisał:
command /helpop [<text>]:
	trigger:
		if arg 1 is not set:
			send "&8» &7Poprawne użycie&8: &c/helpop <wiadomość>"
		if arg 1 is set:
			send "&2Twoja wiadomość została wysłana dla administracji!"
			loop all players:
				if loop-player has permission "helpop.sprawdzanie":
					send "&8[&cHelpop&8]&7: &8%player%&7: &f%arg-1%"
					stop

powinno dzialac

Tyle że mi chodzi o te embedy na discordzie a nie tylko powiadomienie na serwerze

Odnośnik do komentarza
Udostępnij na innych stronach

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ę...