Skocz do zawartości
  • 👋 Witaj na MPCForum!

    Przeglądasz forum jako gość, co oznacza, że wiele świetnych funkcji jest jeszcze przed Tobą! 😎

    • Pełny dostęp do działów i ukrytych treści
    • Możliwość pisania i odpowiadania w tematach
    • System prywatnych wiadomości
    • Zbieranie reputacji i rozwijanie swojego profilu
    • Członkostwo w jednej z największych społeczności graczy

    👉 Dołączenie zajmie Ci mniej niż minutę – a zyskasz znacznie więcej!

    Zarejestruj się teraz

[Pytanie] Co zrobić, żeby w skripcie gracz wpisal np. /ustawdom i zapisał by sie ten dom jako jego nick


Rekomendowane odpowiedzi

Opublikowano

Dobrze :D Tak jak w temacie... Np. Gracz tworzy sobie dom -/ustawdom... to zeby sie tam przeteleportowac trzeba wpisac nick... czyli np. /dom Drexon(Nick gracza) 

Prosze o odpowiedz :)

Opublikowano
command /ustawdom:
trigger:
set {dom.%player%} to location of executor
send "&7Poprawnie utwozono."


command /dom [<text>]:
trigger:
teleport the executor to {dom.arg}

Nie testowane.

585051449511123978085.jpeg

Opublikowano

#Edit:

Skończyłem już:

command /ustawdom:
	trigger:
		add location of player to {dom::%player%}
options:
	czas: 5 #Czas po jakim ma nastapic teleportacja
	nopermission: send "&7Komenda zablokowana"
variables:
	{dom.%player%} = false
command /dom [<text> [<text>]:
	trigger:
		arg 1 is "info":
			player doesn't have permission "home.admin":
				send "&f/dom &7Teleportujesz sie do domu"
				send "&f/dom ustaw &7Ustawiasz dom"
				send "&f/dom przestaw &7Przestawiasz dom"
				send "&f/dom usun &7Usuwasz dom"
				stop
			send "&f/dom &7Teleportujesz sie do domu
			send "&f/dom ustaw &7Ustawiasz dom"
			send "&f/dom przestaw &7Przestawiasz dom"
			send "&f/dom usun &7Usuwasz dom"
			send "&f/dom ustaw player &7Ustawiasz dom dla danego gracza"
			send "&f/dom przesun player &7Przestawiasz dom dla danego gracza"
			send "&f/dom player &7Teleportujesz gracza do jego domu"
			stop
		arg 1 is "ustaw":
			arg 2 is set:
				player has permission "dom.admin":
					add location of player to {dom::%arg 2%}
					set {dom.%arg 2%} to true
					send "&7Ustawiles dom dla gracza &f%arg 2%" to player
					send "&c%player% &7ustawil tobie dom" to arg 2
					stop
				{@nopermission}
			add location of player to {dom::%player%}
			set {dom.%player%} to true
			send "&7Ustawiles dom, aby sie do niego teleportowac wpisz &f/dom"
			stop
		arg 1 is "przestaw":
			arg 2 is set:
				player has permission "dom.admin":
					{dom.%arg 2%} is true:
						set {dom::%arg 2%} to location of player
						send "&7Przestawiles dom dla gracza &f%arg 2%"
						send "&c%player% &7przestawil ci dom"
						stop
					add location of player to {dom::%arg 2}
					send "&7Ustawiles dom dla gracza &f%arg 2%" to player
					send "&c%player% &7ustawil tobie dom" to arg 2
					stop
				{@nopermission}
				stop
			{dom.%player%} is true:
				set {dom::%player%} to location of player
				send "&7Przestawiles dom"
				stop
			add location of player to {dom::%player%}
			send "&7Ustawiles dom, aby sie do niego teleportowac wpisz &f/dom"
			stop
		arg 1 is "usun":
			arg 2 is set:
				player has permission "dom.admin":
					{dom.%arg 2%} is true:
						set {dom.%arg 2} to false
						remove {dom::%arg 2%}
						send "&7Usunales dom dla gracza &f%arg 2%"
						send "&c%player% &7usunal tobie dom" to arg 2
						stop
					send "&7Dany gracz nie posiada domu"
					stop
				{@nopermission}
				stop
			{dom.%player%} is true:
				set {dom.%player%} to false
				remove {dom::%player%}
				send "&7Usunales dom"
				stop
			send "&7Nie posiadasz domu"
			stop
		arg 1 is not set:
			arg 2 is set:
				player has permission "dom.admin":
					{dom.%arg 2} it set:
						teleport arg 2 to {dom.%arg 2%}
						send "&c%player% &7przeteleportowal Cię do domu" to arg 2
						send "&7Przeteleportowales &7%arg 2% &7do jego domu"
						stop
				{@nopermission}
				stop
			{dom.%player%} is set:
				player doesn't have permission "dom.teleport":
					set {_posx} to x-location of player
					set {_posy} to y-location of player
					set {_posz} to z-location of player
					send "&7Teleportacja nastapic za &c{@czas} &7sekund. Nie ruszaj sie!"
					loop {@czas} times:
						wait 1 second
						difference between x-location of player and {_posx} is bigger than 0.5:
						send "{@logo}&7Teleportacja przerwana."
							stop
						difference between z-location of player and {_posz} is bigger than 0.5:
							send "{@logo}&7Teleportacja przerwana."
							stop
						difference between y-location of player and {_posy} is bigger than 0.5:
							send "{@logo}&7Teleportacja przerwana."
							stop
					teleport player to {dom::%player%}
					send "&7Witaj w domu!"
					stop
				teleport player to {dom::%player%}
				send "&7Witaj w domu!"
				stop
			send "&7Nie masz domu!"
		send "&7Nie poprawna komenda!"

Pastebin:

http://pastebin.com/wqtCbemZ

Nie testowane.

 

Proszę moderatorów o usunięcie pkt :) I to nie był off-top bo był na temat -.-

Jeżeli pomogłem, daj + Ciebie nic nie kosztuje Mi znaczy wiele.

 

 

 

 

 

 

 

Zachęcam do podsyłania pomysłów na film jako poradniki na YouTube

 

Zarchiwizowany

Ten temat przebywa obecnie w archiwum. Dodawanie nowych odpowiedzi zostało zablokowane.

×
×
  • Dodaj nową pozycję...