Skocz do zawartości
  • 0

/tplock


Gość Usunięty#25541

Pytanie

Gość Usunięty#25541

xAxee to jest twój skrypt z innego tematu.

command /tplock [<text>]:
	trigger:
		if {tplock::%player%} is false:
			set {tplock::%player%} to true
			send "&7Wylaczono"
			stop
		set {tplock::%player%} to false
		send "&7Wlaczono"
on command:
	if "%command%" contain "tp":
		set {_arg} to "%arguments%"
		set {_args::*} to {_arg} split at " "
		if {_args::2} is not set:
			if {tplock::%{_args::1}%} is false:
				cancel event
				send "&7Ten gracz ma zablokowane tepanie sie!"
		else:
			if {_args::2} is name of player:
				stop
			if {tplock::%{_args::2}%} is false:
				cancel event
				send "&7Ten gracz ma zablokowane tepanie sie!"

tylko jak ma sie essentials to mozna pierwsze litery nicku np. /tp Xa zamiast Xa4inz chcialbym zeby zostalo naprawione a lequla zamknal temat.

Odnośnik do komentarza
https://skript.pl/temat/37725-tplock/
Udostępnij na innych stronach

2 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
command /tplock [<text>]:
	trigger:
		if {tplock::%player%} is false:
			set {tplock::%player%} to true
			send "&7Wylaczono"
			stop
		set {tplock::%player%} to false
		send "&7Wlaczono"
on command:
	if "%command%" contain "tp":
		set {_arg} to "%arguments%"
		set {_args::*} to {_arg} split at " "
		if {_args::2} is not set:
  			if ({_args::1} parsed as player) is offline:
				stop
			if {tplock::%{_args::1}%} is false:
				cancel event
				send "&7Ten gracz ma zablokowane tepanie sie!"
		else:
  			if ({_args::2} parsed as player) is offline:
				stop
			if {_args::2} is name of player:
				stop
			if {tplock::%{_args::2}%} is false:
				cancel event
				send "&7Ten gracz ma zablokowane tepanie sie!"

hmm zobacz tak

Odnośnik do komentarza
https://skript.pl/temat/37725-tplock/#findComment-239467
Udostępnij na innych stronach

  • 0
Gość Usunięty#25541
[20:32:54] [Server thread/ERROR]: indentation error: expected 3 tabs, but found '__->->->' [-> = tab, _ = space, ? = other whitespace] (locktp.sk, line 14: if ({_args::1} parsed as player) is offline:')
[20:32:54] [Server thread/ERROR]: indentation error: expected 3 tabs, but found 4 tabs (locktp.sk, line 15: stop')
[20:32:54] [Server thread/ERROR]: indentation error: expected 3 tabs, but found '__->->->' [-> = tab, _ = space, ? = other whitespace] (locktp.sk, line 20: if ({_args::2} parsed as player) is offline:')
[20:32:54] [Server thread/ERROR]: indentation error: expected 3 tabs, but found 4 tabs (locktp.sk, line 21: stop')
[20:32:54] [Server thread/WARN]: the command is already a text, so you should not put it in one (e.g. the command instead of "%the command%") (locktp.sk, line 10: if "%command%" contain "tp":')
[20:32:54] [Server thread/WARN]: the arguments is already a text, so you should not put it in one (e.g. the arguments instead of "%the arguments%") (locktp.sk, line 11: set {_arg} to "%arguments%"')

errory :c

 

 

ok już rozwiązane te errory po prostu jakieś złe taby spacje dane...

ale nadal mozna wpisac /tp Xa

i normalnie tepa

 

W dniu 24.03.2020 o 19:44, xAxee napisał:

command /tplock [<text>]:
	trigger:
		if {tplock::%player%} is false:
			set {tplock::%player%} to true
			send "&7Wylaczono"
			stop
		set {tplock::%player%} to false
		send "&7Wlaczono"
on command:
	if "%command%" contain "tp":
		set {_arg} to "%arguments%"
		set {_args::*} to {_arg} split at " "
		if {_args::2} is not set:
  			if ({_args::1} parsed as player) is offline:
				stop
			if {tplock::%{_args::1}%} is false:
				cancel event
				send "&7Ten gracz ma zablokowane tepanie sie!"
		else:
  			if ({_args::2} parsed as player) is offline:
				stop
			if {_args::2} is name of player:
				stop
			if {tplock::%{_args::2}%} is false:
				cancel event
				send "&7Ten gracz ma zablokowane tepanie sie!"

hmm zobacz tak

No jeszcze nie o to mi chodziło... bo nadal nie działa mozna wpisac kilka liter nicku i cie tepa. albo zrób wlasna komende na tp zeby bylo trzeba caly nick podac.

Odnośnik do komentarza
https://skript.pl/temat/37725-tplock/#findComment-239481
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ę...