Skocz do zawartości
  • 0

Sklep za Vault


xaanita

Pytanie

7 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
function kupRange(p: player):
	if balance of {_p} >= 10000:
		remove 10000 from balance of {_p}
		make the console execute the command "pex user %{_p}% group set Vip"
		send "kupiłeś range Vip" to {_p}
	else:
		send "nie masz 10000 kasy" to {_p}

command /skrypt-na-sklep [<text>]:
	trigger:
		open virtual chest inventory with 1 row to player
		make gui slot 4 of player with stone to close then run function kupRange(player)

Wymaga Skripta 2.2+ oraz TuSKe

Edytowane przez PanMaruda
Odnośnik do komentarza
https://skript.pl/temat/36315-sklep-za-vault/#findComment-232299
Udostępnij na innych stronach

  • 0
2 godziny temu, PanMaruda napisał:

function kupRange(p: player):
	if balance of {_p} >= 10000:
		remove 10000 from balance of {_p}
		make the console execute the command "pex user %{_p}% group set Vip"
		send "kupiłeś range Vip" to {_p}
	else:
		send "nie masz 10000 kasy" to {_p}

command /skrypt-na-sklep [<text>]:
	trigger:
		open virtual chest inventory with 1 row to player
		make gui slot 4 of player with stone to close then run function kupRange(player)

Wymaga Skripta 2.2+ oraz TuSKe

A jest możliwość nie na 2.2, bo Skript 2.2 nie ogarniam (Pobieram i Winrar jedynie)

Odnośnik do komentarza
https://skript.pl/temat/36315-sklep-za-vault/#findComment-232330
Udostępnij na innych stronach

  • 0
9 godzin temu, xaanita napisał:

A jest możliwość nie na 2.2, bo Skript 2.2 nie ogarniam (Pobieram i Winrar jedynie)

command /kupRange [<text>]:
	if balance of {player >= 10000:
		remove 10000 from balance of player
		make the console execute the command "pex user %player% group set Vip"
		send "kupiłeś range Vip" to player
	else:
		send "nie masz 10000 kasy" to player

command /skrypt-na-sklep [<text>]:
	trigger:
		open virtual chest inventory with 1 row to player
		make gui slot 4 of player with stone to close then run player command "kupRange"

 

Odnośnik do komentarza
https://skript.pl/temat/36315-sklep-za-vault/#findComment-232332
Udostępnij na innych stronach

  • 0
7 godzin temu, PanMaruda napisał:

command /kupRange [<text>]:
	if balance of {player >= 10000:
		remove 10000 from balance of player
		make the console execute the command "pex user %player% group set Vip"
		send "kupiłeś range Vip" to player
	else:
		send "nie masz 10000 kasy" to player

command /skrypt-na-sklep [<text>]:
	trigger:
		open virtual chest inventory with 1 row to player
		make gui slot 4 of player with stone to close then run player command "kupRange"

 

NicYCQy7F.jpg

Odnośnik do komentarza
https://skript.pl/temat/36315-sklep-za-vault/#findComment-232366
Udostępnij na innych stronach

  • 0
command /kupRange [<text>]:
	trigger:
		if balance of player >= 10000:
			remove 10000 from balance of player
			make the console execute the command "pex user %player% group set Vip"
			send "kupiłeś range Vip" to player
		else:
			send "nie masz 10000 kasy" to player

command /skrypt-na-sklep [<text>]:
	trigger:
		open virtual chest inventory with 1 row to player
		make gui slot 4 of player with stone to close then run player command "kupRange"

Pewnie nie masz też TuSKe zainstalowanego.

Edytowane przez PanMaruda
Odnośnik do komentarza
https://skript.pl/temat/36315-sklep-za-vault/#findComment-232374
Udostępnij na innych stronach

  • 0
19 godzin temu, _MicX_ napisał:

W trzeciej linijce wkradła się nie potrzebna klamra '{' co powoduje 2 błędy

19 godzin temu, PanMaruda napisał:

command /kupRange [<text>]:
	trigger:
		if balance of player >= 10000:
			remove 10000 from balance of player
			make the console execute the command "pex user %player% group set Vip"
			send "kupiłeś range Vip" to player
		else:
			send "nie masz 10000 kasy" to player

command /skrypt-na-sklep [<text>]:
	trigger:
		open virtual chest inventory with 1 row to player
		make gui slot 4 of player with stone to close then run player command "kupRange"

Pewnie nie masz też TuSKe zainstalowanego.

Dziękuję :)

Odnośnik do komentarza
https://skript.pl/temat/36315-sklep-za-vault/#findComment-232458
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ę...