Skocz do zawartości
  • 0

Zlecenie na /tplock


Gość Usunięty#25541

Pytanie

Gość Usunięty#25541

 Chodzi mi o to, jak gracz wpisze /tplock to żaden inny gracz nie będzie mógł się na tę chwilę tepnąć. A jak spróbuje znowu gracz pierwszy /tplock to wszyscy będą mieć uprawnienia do tepnięcia się do niego. Proszę o napisanie takowego skryptu (Oczywiście nie rozkazuje xD).

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

7 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

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

 

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

  • 0
Gość Usunięty#25541

@xAxee a mógłbyś zrobić to do samej komendy ./tp ?

 

2 godziny temu, xAxee napisał:

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

 

xAxee, a mógłbyś to zrobić do komendy /tp, nie /tpa?

 

1 godzinę temu, xAxee napisał:

a działa?


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

 

O dzięki no to co dałeś tutaj działa. Dzięki!

 

Działa, ale jak wpisze /tp <gracz> to mi pisze ze zablokowało i nie moze sie tepnac lecz jak wpisze /tp <ja> <gracz> to juz nie dziala bo moze sie tepnac.

Nieaktywny

Łączę posty.

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

  • 0
4 minuty temu, Xa4inz napisał:

xAxee, a mógłbyś to zrobić do komendy /tp, nie /tpa?

a działa?

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

 

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

  • 0
Teraz, Xa4inz napisał:

Działa, ale jak wpisze /tp <gracz> to mi pisze ze zablokowało i nie moze sie tepnac lecz jak wpisze /tp <ja> <gracz> to juz nie dziala bo moze sie tepnac.

command /tplock [<text>]:
	trigger:
		if {tplock::%player%} is false:
			set {tplock::%player%} to true
			send "&7Wlaczono"
			stop
		set {tplock::%player%} to false
		send "&7Wylaczono"
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 {tplock::%{_args::2}%} is false:
				cancel event
				send "&7Ten gracz ma zablokowane tepanie sie!"

 

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

  • 0
2 minuty temu, Xa4inz napisał:

Teraz jak wpisze /tp <gracz> <ja> to mi pisze ze ja nie moge tepnac a chodzi mi o to zeby tylko inny gracz nie mogl sie tepnac do wyznaczonej osoby. a ja zebym mogl tepac z tplock

command /tplock [<text>]:
	trigger:
		if {tplock::%player%} is false:
			set {tplock::%player%} to true
			send "&7Wlaczono"
			stop
		set {tplock::%player%} to false
		send "&7Wylaczono"
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!"

 

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