Skocz do zawartości
  • 0

Potwierdzenie kodem usuniecie wyspy


Pytanie

Siema zrobi ktoś skrypt ze po wpisaniu "/admW usun %gracz%" pojawia się na czacie 8-cyfrowy kod który trzeba wpisać 

(albo komenda np /usunkod  <kod> albo na czacie napisać)  aby wykonał komendę   "/asadmin delete %gracz%". <- ten sam gracz co po wpisaniu komend wyżej.

 

Kod ma wpisać osoba co wpisała komendę.

 

Komenda jest żeby niechcący usunąć kogoś wyspę. :)

Edytowane przez AnonimTOja
dodanie dodatkowych informacji.
Odnośnik do komentarza
https://skript.pl/temat/36879-potwierdzenie-kodem-usuniecie-wyspy/
Udostępnij na innych stronach

5 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
command /admW [<text>] [<player>]:
  Trigger:
    if arg 1 is "usun":
      Arg 2 is set
      send "kod: 12345667"
      set {anty::%player%} to true 
      while {kod::%player%} is not set:
        send "przepisz kod" 
        Wait 1 second 
      if {kod::%player%} is false:
        Send "anulowano"
      if {kod::%player%} is true:
        execute player command "asadmin delete %arg-2%"
On chat:
  If {anty::%player%} is true:
    cancel event
    if message is "12345667":
      set {kod::%player%} to true
      set {anty::%player%} to false
    if message is "exit" or "anuluj":
      set {kod::%player%} to false
      set {anty::%player%} to false

/z telefonu

Edytowane przez xAxee
Odnośnik do komentarza
https://skript.pl/temat/36879-potwierdzenie-kodem-usuniecie-wyspy/#findComment-235082
Udostępnij na innych stronach

  • 0
20 godzin temu, xAxee napisał:

command /admW [<text>] [<player>]:
  Trigger:
    if arg 1 is "usun":
      Arg 2 is set
      send "kod: 12345667"
      set {anty::%player%} to true 
      while {kod::%player%} is not set:
        send "przepisz kod" 
        Wait 1 second 
      if {kod::%player%} is false:
        Send "anulowano"
      if {kod::%player%} is true:
        execute player command "asadmin delete %arg-2%"
On chat:
  If {anty::%player%} is true:
    cancel event
    if message is "12345667":
      set {kod::%player%} to true
      set {anty::%player%} to false
    if message is "exit" or "anuluj":
      set {kod::%player%} to false
      set {anty::%player%} to false

/z telefonu

xceCkyu.png 

W paru linijkach musiałem dodać spacje ale tu kompletnie nwm co zrobić

 

    if arg 1 is "usun":
        Arg 2 is set
        send "kod: 12345667"
        set {anty::%player%} to true 
        while {kod::%player%} is not set:
        send "przepisz kod" 
        Wait 1 second 
        if {kod::%player%} is false:
        Send "anulowano"
        if {kod::%player%} is true:
        execute player command "asadmin delete %arg-2%"

 

Edytowane przez LeQuLa
wstawiam w code ten kod
Nieaktywny

wstawiam w code ten kod.

Odnośnik do komentarza
https://skript.pl/temat/36879-potwierdzenie-kodem-usuniecie-wyspy/#findComment-235206
Udostępnij na innych stronach

  • 0
command /admW [<text>] [<player>]:
	Trigger:
		set {anty::%player%} to false
		clear {kod::%player%}
		if arg 1 is "usun":
			Arg 2 is set
			send "kod: 12345667"
			set {anty::%player%} to true 
			while {kod::%player%} is not set:
				send "przepisz kod" 
				Wait 1 second 
			if {kod::%player%} is false:
				Send "anulowano"
			if {kod::%player%} is true:
				execute player command "asadmin delete %arg-2%"
				set {anty::%player%} to false
				clear {kod::%player%}
On chat:
	If {anty::%player%} is true:
		cancel event
		if message is "12345667":
			set {anty::%player%} to false
			set {kod::%player%} to true
		if message is "exit" or "anuluj":
			set {anty::%player%} to false
			clear {kod::%player%}

 

Odnośnik do komentarza
https://skript.pl/temat/36879-potwierdzenie-kodem-usuniecie-wyspy/#findComment-235213
Udostępnij na innych stronach

  • 0
11 minut temu, xAxee napisał:

command /admW [<text>] [<player>]:
	Trigger:
		set {anty::%player%} to false
		clear {kod::%player%}
		if arg 1 is "usun":
			Arg 2 is set
			send "kod: 12345667"
			set {anty::%player%} to true 
			while {kod::%player%} is not set:
				send "przepisz kod" 
				Wait 1 second 
			if {kod::%player%} is false:
				Send "anulowano"
			if {kod::%player%} is true:
				execute player command "asadmin delete %arg-2%"
				set {anty::%player%} to false
				clear {kod::%player%}
On chat:
	If {anty::%player%} is true:
		cancel event
		if message is "12345667":
			set {anty::%player%} to false
			set {kod::%player%} to true
		if message is "exit" or "anuluj":
			set {anty::%player%} to false
			clear {kod::%player%}

 

Da się zrobić aby nie spamiło 'przepisz kod'

Odnośnik do komentarza
https://skript.pl/temat/36879-potwierdzenie-kodem-usuniecie-wyspy/#findComment-235216
Udostępnij na innych stronach

Dołącz do dyskusji

Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.

Nieaktywny
Odpowiedz na pytanie...

×   Wklejono zawartość z formatowaniem.   Usuń formatowanie

  Dozwolonych jest tylko 75 emoji.

×   Odnośnik został automatycznie osadzony.   Przywróć wyświetlanie jako odnośnik

×   Przywrócono poprzednią zawartość.   Wyczyść edytor

×   Nie możesz bezpośrednio wkleić grafiki. Dodaj lub załącz grafiki z adresu URL.

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

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