Ir para conteúdo
  • 0

[Dúvida] Ajude-me por favor.


zNitriXz

Pergunta

Como faço para todos terem acesso a esse comando porém só chegar o link da tela para quem

tem permissão de ver e quem não tiver aparecer este jogador não é membro da staff? 

Quando digitar /enviartela on - ativa o recebimento de telas.
Quando digitar /enviar tela off - desativa o recebimento de telas.

 

 

 

command /enviartela [<offline player>] [<text>]:
    aliases: /et
    trigger:
        if arg 1 is not set:
            send "&cUtilize: /enviartela <jogador> <link>"
            stop
        if arg 1 is "%player%":
            send "&cVocê não pode enviar print da sua tela para sí mesmo!"
            stop
        if player has permission "tela.staff":
            send "&4[TELA] &f%player% &cenviou o link da tela dele para você: &f%arg 2%" to arg 1
            send "&4[TELA] &cVocê envio o link da sua tela para &f%arg 1%&c: &f%arg 2%"

            stop

Editado por zNitriXz
Link para o comentário
Compartilhar em outros sites

8 respostass a esta questão

Posts Recomendados

  • 0
command /enviartela [<offline player>] [<text>]:
    aliases: /et
    trigger:
  		if arg 1 is set:
  			if arg 1 is "on":
  				if player has permission "tela.staff":
  					if {tela.%player%} is false:
  						set {tela.%player%} to true
  						send "&aTela desativada com sucesso"
  					else:
  						send "&cSua tela já esta ativada"
  				else:
  					send "&cVocê precisa ser um staffer para fazer isso"
  			else if arg 1 is "off":
  				if player has permission "tela.staff":
  					if {tela.%player%} is true:
  						set {tela.%player%} to false
  						send "&aTela desativada com sucesso"
  					else:
  						send "&cSua tela já esta desativada"
  				else:
  					send "&cVocê precisa ser um staffer para fazer isso"
  			else if arg 1 is not sender:
  				if arg 2 is set:
  					if arg-1 is online:
  						if arg-1 has permission "tela.staff":
  							if {tela.%arg-1%} is true:
  								send "&4[TELA] &f%player% &cenviou o link da tela dele para você: &f%arg 2%" to arg 1
  								send "&4[TELA] &cVocê envio o link da sua tela para &f%arg 1%&c: &f%arg 2%"
  							else:
  								send "&cEsse staffer está com o recebimento de tela desativado"
  						else:
  							send "&cEsse jogador não é um staffer"
  					else:
  						send "&cEsse usuário não foi encontrado"
  				else:
  					send "&cUtilize: /enviartela <jogador> <link>"		
  			else:
  				send "&cVocê não pode enviar print da sua tela para sí mesmo!"
 		else:
  			send "&cUtilize: /enviartela <jogador> <link>"

 

Editado por SrBlecaute
Link para o comentário
Compartilhar em outros sites

  • 0
40 minutos atrás, SrBlecaute disse:

command /enviartela [<offline player>] [<text>]: aliases: /et trigger: if arg 1 is set: if arg 1 is "on": if player has permission "tela.staff": if {tela.%player%} is false: set {tela.%player%} to true send "&aTela desativada com sucesso" else: send "&cSua tela já esta ativada" else: send "&cVocê precisa ser um staffer para fazer isso" else if arg 1 is "off": if player has permission "tela.staff": if {tela.%player%} is true: set {tela.%player%} to false send "&aTela desativada com sucesso" else: send "&cSua tela já esta desativada" else: send "&cVocê precisa ser um staffer para fazer isso" else if arg 1 is not sender: if arg 2 is set: if arg-1 is online: if arg-1 has permission "tela.staff": if {tela.%arg-1%} is true: send "&4[TELA] &f%player% &cenviou o link da tela dele para você: &f%arg 2%" to arg 1 send "&4[TELA] &cVocê envio o link da sua tela para &f%arg 1%&c: &f%arg 2%" else: send "&cEsse staffer está com o recebimento de tela desativado" else: send "&cEsse jogador não é um staffer" else: send "&cEsse usuário não foi encontrado" else: send "&cUtilize: /enviartela <jogador> <link>" else: send "&cVocê não pode enviar print da sua tela para sí mesmo!" else: send "&cUtilize: /enviartela <jogador> <link>"

Não funcionou está com erro nas 38 linhas de espaço e dizendo "IF" or "ELSE"

Link para o comentário
Compartilhar em outros sites

  • 0

 

http://prntscr.com/oudxu7

 

 

> [01:02:42 ERROR]: [Skript] indentation error: expected 8 spaces, but found '__->->' [-> = tab, _ = space, ? = other whitespace] (SCTela.sk, line 4: if arg 1 is set:')
> [01:02:42 ERROR]: [Skript] indentation error: expected 8 spaces, but found '__->->->' [-> = tab, _ = space, ? = other whitespace] (SCTela.sk, line 5: if arg 1 is "on":')
> [01:02:42 ERROR]: [Skript] indentation error: expected 8 spaces, but found '__->->->->' [-> = tab, _ = space, ? = other whitespace] (SCTela.sk, line 6: if player has permission "tela.staff":')
> [01:02:42 ERROR]: [Skript] indentation error: expected 8 spaces, but found '__->->->->->' [-> = tab, _ = space, ? = other whitespace] (SCTela.sk, line 7: if {tela.%player%} is false:')
> [01:02:42 ERROR]: [Skript] indentation error: expected 8 spaces, but found '__->->->->->->' [-> = tab, _ = space, ? = other whitespace] (SCTela.sk, line 8: set {tela.%player%} to true')
> [01:02:42 ERROR]: [Skript] indentation error: expected 8 spaces, but found '__->->->->->->' [-> = tab, _ = space, ? = other whitespace] (SCTela.sk, line 9: send "&aTela desativada com sucesso"')
> [01:02:42 ERROR]: [Skript] indentation error: expected 8 spaces, but found '__->->->->->' [-> = tab, _ = space, ? = other whitespace] (SCTela.sk, line 10: else:')
> [01:02:42 ERROR]: [Skript] indentation error: expected 8 spaces, but found '__->->->->->->' [-> = tab, _ = space, ? = other whitespace] (SCTela.sk, line 11: send "&cSua tela já esta ativada"')
> [01:02:42 ERROR]: [Skript] indentation error: expected 8 spaces, but found '__->->->->' [-> = tab, _ = space, ? = other whitespace] (SCTela.sk, line 12: else:')
> [01:02:42 ERROR]: [Skript] indentation error: expected 8 spaces, but found '__->->->->->' [-> = tab, _ = space, ? = other whitespace] (SCTela.sk, line 13: send "&cVocê precisa ser um staffer para fazer isso"')
> [01:02:42 ERROR]: [Skript] indentation error: expected 8 spaces, but found '__->->->' [-> = tab, _ = space, ? = other whitespace] (SCTela.sk, line 14: else if arg 1 is "off":')
> [01:02:42 ERROR]: [Skript] indentation error: expected 8 spaces, but found '__->->->->' [-> = tab, _ = space, ? = other whitespace] (SCTela.sk, line 15: if player has permission "tela.staff":')
> [01:02:42 ERROR]: [Skript] indentation error: expected 8 spaces, but found '__->->->->->' [-> = tab, _ = space, ? = other whitespace] (SCTela.sk, line 16: if {tela.%player%} is true:')
> [01:02:42 ERROR]: [Skript] indentation error: expected 8 spaces, but found '__->->->->->->' [-> = tab, _ = space, ? = other whitespace] (SCTela.sk, line 17: set {tela.%player%} to false')
> [01:02:42 ERROR]: [Skript] indentation error: expected 8 spaces, but found '__->->->->->->' [-> = tab, _ = space, ? = other whitespace] (SCTela.sk, line 18: send "&aTela desativada com sucesso"')
> [01:02:42 ERROR]: [Skript] indentation error: expected 8 spaces, but found '__->->->->->' [-> = tab, _ = space, ? = other whitespace] (SCTela.sk, line 19: else:')
> [01:02:42 ERROR]: [Skript] indentation error: expected 8 spaces, but found '__->->->->->->' [-> = tab, _ = space, ? = other whitespace] (SCTela.sk, line 20: send "&cSua tela já esta desativada"')
> [01:02:42 ERROR]: [Skript] indentation error: expected 8 spaces, but found '__->->->->' [-> = tab, _ = space, ? = other whitespace] (SCTela.sk, line 21: else:')
> [01:02:42 ERROR]: [Skript] indentation error: expected 8 spaces, but found '__->->->->->' [-> = tab, _ = space, ? = other whitespace] (SCTela.sk, line 22: send "&cVocê precisa ser um staffer para fazer isso"')
> [01:02:42 ERROR]: [Skript] indentation error: expected 8 spaces, but found '__->->->' [-> = tab, _ = space, ? = other whitespace] (SCTela.sk, line 23: else if arg 1 is not sender:')
> [01:02:42 ERROR]: [Skript] indentation error: expected 8 spaces, but found '__->->->->' [-> = tab, _ = space, ? = other whitespace] (SCTela.sk, line 24: if arg 2 is set:')
> [01:02:42 ERROR]: [Skript] indentation error: expected 8 spaces, but found '__->->->->->' [-> = tab, _ = space, ? = other whitespace] (SCTela.sk, line 25: if arg-1 is online:')
> [01:02:42 ERROR]: [Skript] indentation error: expected 8 spaces, but found '__->->->->->->' [-> = tab, _ = space, ? = other whitespace] (SCTela.sk, line 26: if arg-1 has permission "tela.staff":')
> [01:02:42 ERROR]: [Skript] indentation error: expected 8 spaces, but found '__->->->->->->->' [-> = tab, _ = space, ? = other whitespace] (SCTela.sk, line 27: if {tela.%arg-1%} is true:')
> [01:02:42 ERROR]: [Skript] indentation error: expected 8 spaces, but found '__->->->->->->->->' [-> = tab, _ = space, ? = other whitespace] (SCTela.sk, line 28: send "&4[TELA] &f%player% &cenviou o link da tela dele para você: &f%arg 2%" to arg 1')
> [01:02:42 ERROR]: [Skript] indentation error: expected 8 spaces, but found '__->->->->->->->->' [-> = tab, _ = space, ? = other whitespace] (SCTela.sk, line 29: send "&4[TELA] &cVocê envio o link da sua tela para &f%arg 1%&c: &f%arg 2%"')
> [01:02:42 ERROR]: [Skript] indentation error: expected 8 spaces, but found '__->->->->->->->' [-> = tab, _ = space, ? = other whitespace] (SCTela.sk, line 30: else:')
> [01:02:42 ERROR]: [Skript] indentation error: expected 8 spaces, but found '__->->->->->->->->' [-> = tab, _ = space, ? = other whitespace] (SCTela.sk, line 31: send "&cEsse staffer está com o recebimento de tela desativado"')
> [01:02:42 ERROR]: [Skript] indentation error: expected 8 spaces, but found '__->->->->->->' [-> = tab, _ = space, ? = other whitespace] (SCTela.sk, line 32: else:')
> [01:02:42 ERROR]: [Skript] indentation error: expected 8 spaces, but found '__->->->->->->->' [-> = tab, _ = space, ? = other whitespace] (SCTela.sk, line 33: send "&cEsse jogador não é um staffer"')
> [01:02:42 ERROR]: [Skript] indentation error: expected 8 spaces, but found '__->->->->->' [-> = tab, _ = space, ? = other whitespace] (SCTela.sk, line 34: else:')
> [01:02:42 ERROR]: [Skript] indentation error: expected 8 spaces, but found '__->->->->->->' [-> = tab, _ = space, ? = other whitespace] (SCTela.sk, line 35: send "&cEsse usuário não foi encontrado"')
> [01:02:42 ERROR]: [Skript] indentation error: expected 8 spaces, but found '__->->->->' [-> = tab, _ = space, ? = other whitespace] (SCTela.sk, line 36: else:')
> [01:02:42 ERROR]: [Skript] indentation error: expected 8 spaces, but found '__->->->->->' [-> = tab, _ = space, ? = other whitespace] (SCTela.sk, line 37: send "&cUtilize: /enviartela <jogador> <link>"')
> [01:02:42 ERROR]: [Skript] indentation error: expected 8 spaces, but found '__->->->' [-> = tab, _ = space, ? = other whitespace] (SCTela.sk, line 38: else:')
> [01:02:42 ERROR]: [Skript] indentation error: expected 8 spaces, but found '__->->->->' [-> = tab, _ = space, ? = other whitespace] (SCTela.sk, line 39: send "&cVocê não pode enviar print da sua tela para sí mesmo!"')
> [01:02:42 ERROR]: [Skript] indentation error: expected 8 spaces, but found '_->->' [-> = tab, _ = space, ? = other whitespace] (SCTela.sk, line 40: else:')
> [01:02:42 ERROR]: [Skript] indentation error: expected 8 spaces, but found '__->->->' [-> = tab, _ = space, ? = other whitespace] (SCTela.sk, line 41: send "&cUtilize: /enviartela <jogador> <link>"')

Editado por zNitriXz
Link para o comentário
Compartilhar em outros sites

Visitante
Este tópico está impedido de receber novos posts.
×
×
  • Criar Novo...