Skocz do zawartości
  • 0

Skrypt na Vouncher na 1 uzycie!


Pytanie

2 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
command /voucher [<text&gt]:	trigger:		if player does not have the permissions "voucher.use":			send "&2[&3Voucher&2] &cNie masz wymaganych uprawnien."			stop		if arg 1 is not set:			send "&2[&3Voucher&2] &cPodaj kod aby otrzymac range."			stop		if length of arg is greater than 8:			send "&2[&3Voucher&2] &cPodales za dlugi kod!"			stop		if length of arg is smaller than 8:			send "&2[&3Voucher&2] &cPodales za krotki kod!"			stop		if {voucher::%arg%} is not set:			send "&2[&3Voucher&2] &cPodany kod jest nieprawidlowy!"			stop		execute console command "pex user %player% group set %{voucher::%arg%::ranga}%"		send "&2[&3Voucher&2] &aPodany kod jest prawidlowy. Otrzymales range &6%{voucher::%arg%::ranga}%&a."		clear {voucher::%arg%}		clear {voucher::%arg%::ranga}		clear {voucher::%arg%::*}		stop		command /vgen [<text&gt]:	trigger:		if player does not have the permissions "voucher.generate":			send "&2[&3Voucher&2] &cNie masz wymaganych uprawnien."			stop		if arg is not set:			send "&2[&3Voucher&2] &cPodaj nazwe rangi, ktora otrzyma gracz po wpisaniu kodu."			stop		set {_kod} to ""		loop 8 times:			set {_int} to random integer between 0 and 9			set {_kod} to "%{_kod}%%{_int}%"		set {voucher::%{_kod}%} to {_kod}		set {voucher::%{_kod}%::ranga} to arg		send "&2[&3Voucher&2] &bWygenerowany kod dla rangi &6%arg% &bto: &c%{_kod}%"		stopcommand /vlist:	trigger:		if player does not have the permissions "voucher.list":			send "&2[&3Voucher&2] &cNie masz wymaganych uprawnien."			stop		loop {voucher::*}:			set {_kod} to "&c%{voucher::%loop-value%}% &7[&a%{voucher::%loop-value%::ranga}%&7]"			add {_kod} to {_list::*}		set {_vlist} to "%{_list::*}%"		replace all "<none>" with "" in {_vlist}		replace all "," with "&b,&r" in {_vlist}		replace all " and" with "&b,&r" in {_vlist}		send "&2[&3Voucher&2] &bDostepne kody: %{_vlist}%"		stop

/voucher <kod> - Daje range za wpisanie kodu. | voucher.use

/vgen <ranga> - Generuje kod dla danej rangi. | voucher.generate

/vlist - Lista wygenerowanych kodów. | voucher.list

Odnośnik do komentarza
https://skript.pl/temat/6974-skrypt-na-vouncher-na-1-uzycie/#findComment-56399
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ę...