Skocz do zawartości
  • 0

Dlaczego to nie śmiga?


Pytanie

Kod:

        if arg-1 is "vip":
		if player's balance is less than 1000000:
			send "&4&l&oBLAD: &cNie masz tyle $$$..." to player
			stop
		else:
			remove 4000 from player's balance
			wait 1 tick
			execute console command "pex user %player% group set VIP"
			play raw sound "mob.wither.hurt" at players with pitch 1 volume 10
			wait 2 ticks
			play raw sound "mob.wither.hurt" at players with pitch 1 volume 10
			send player title "&6&lVIP" with subtitle "&eGRACZ &6%player% &eKUPIL VIP'A!" for 3 seconds
			send "&2&l&o:) &aPomyslnie zakupiono VIP'a" to player
			stop

 

Odnośnik do komentarza
https://skript.pl/temat/23657-dlaczego-to-nie-%C5%9Bmiga/
Udostępnij na innych stronach

4 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0

To powinno działać: (Oczywiście musisz mieć plugin Vault)

	trigger:
		if arg 1 is "vip":
			if player's money is less than 1000000:
				send "&4&l&oBLAD: &cNie masz tyle $$$..." to player
				stop
			else:
				remove 4000 from player's balance
				wait 1 tick
				execute console command "pex user %player% group set VIP"
				play raw sound "mob.wither.hurt" at players with pitch 1 volume 10
				wait 2 ticks
				play raw sound "mob.wither.hurt" at players with pitch 1 volume 10
				send player title "&6&lVIP" with subtitle "&eGRACZ &6%player% &eKUPIL VIP'A!" for 3 seconds
				send "&2&l&o:) &aPomyslnie zakupiono VIP'a" to player
				stop

 

Odnośnik do komentarza
https://skript.pl/temat/23657-dlaczego-to-nie-%C5%9Bmiga/#findComment-160360
Udostępnij na innych stronach

  • 0
3 minuty temu, Wielebny napisał:

To powinno działać: (Oczywiście musisz mieć plugin Vault)


	trigger:
		if arg 1 is "vip":
			if player's money is less than 1000000:
				send "&4&l&oBLAD: &cNie masz tyle $$$..." to player
				stop
			else:
				remove 4000 from player's balance
				wait 1 tick
				execute console command "pex user %player% group set VIP"
				play raw sound "mob.wither.hurt" at players with pitch 1 volume 10
				wait 2 ticks
				play raw sound "mob.wither.hurt" at players with pitch 1 volume 10
				send player title "&6&lVIP" with subtitle "&eGRACZ &6%player% &eKUPIL VIP'A!" for 3 seconds
				send "&2&l&o:) &aPomyslnie zakupiono VIP'a" to player
				stop

 

Nic nie zmieniłeś nawet. Chyba muszę dać kod, abyś zrozumiał...

https://code.skript.pl/gqESBL9d/

 

Odnośnik do komentarza
https://skript.pl/temat/23657-dlaczego-to-nie-%C5%9Bmiga/#findComment-160361
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ę...