Skocz do zawartości
  • 0

Dane osobowe


Gość dudimsp2

Pytanie

3 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
on first join:
	set {_l} to location at (100, 100, 100)
	teleport player to {_l}
	send "&7Jak masz na imie i nazwisko?"
	send "&a/dane <imie> <nazwisko> <wiek>"
command /dane [<text>] [<text>] [<number>]:
	trigger:
		if {dane::imie::%player%} is not set:
			if arg 3 is set:
				set {dane::imie::%player%} to arg 1
				set {dane::nazwisko::%player%} to arg 2
				set {dane::wiek::%player%} to arg 3
				send "&7Pomyslnie sie zarejestrowano!"
				set yaml value "Dane.%player%.Imie" from file "Dane.yml" to arg 1
				set yaml value "Dane.%player%.Nazwisko" from file "Dane.yml" to arg 2
				set yaml value "Dane.%player%.Wiek" from file "Dane.yml" to arg 3

 

Odnośnik do komentarza
https://skript.pl/temat/32130-dane-osobowe/#findComment-209052
Udostępnij na innych stronach

  • 0
on first join:
	set {_l} to location at (100, 100, 100)
	teleport player to {_l}
	send "&7Jak masz na imie i nazwisko?"
	send "&a/dane <imie> <nazwisko> <wiek>"
command /dane [<text>] [<text>] [<number>]:
	trigger:
		if {dane::imie::%player%} is not set:
			if arg 3 is set:
				set {dane::imie::%player%} to arg 1
				set {dane::nazwisko::%player%} to arg 2
				set {dane::wiek::%player%} to arg 3
				send "&7Pomyslnie sie zarejestrowano!"
				set yaml value "Dane.%player%.Imie" from file "Dane.yml" to arg 1
				set yaml value "Dane.%player%.Nazwisko" from file "Dane.yml" to arg 2
				set yaml value "Dane.%player%.Wiek" from file "Dane.yml" to arg 3
			else:
				send "&cBLAD!: &7Poprawne uzycie: &4/dane <imie> <nazwisko> <wiek>"
		else:
			send "&cBLAD!: &7Jestes juz zarejestrowany!"

 

Odnośnik do komentarza
https://skript.pl/temat/32130-dane-osobowe/#findComment-209056
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ę...