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

[Szukam] Skrypt na kupowanie dostępu do stref


SpisN

Rekomendowane odpowiedzi

Opublikowano

Jak zrobić skrypt na sektory że klikasz na tabliczke i ci zabiera np: 200/500 kasy z konta z money i ci daje range np a-2 a jeśli nie masz tylu kasy to żeby pisało coś ze nie możesz tego kupić

Opublikowano

Nie wiem czy dobrze zrozumiałem, ale powinien wystarczyć Ci ten plugin: http://dev.bukkit.org/bukkit-plugins/clickrank/

 

Znalazłem podobny skrypt w internecie, jak ogarniasz Skripta trochę bardziej niż ja to może dasz radę pozmieniać:

 

 

on click on sign:
	set {_line1} to line 1
	set {_line2} to line 2 parsed as number
	set {_line3} to line 3 parsed as number
	set {_line4} to line 4 parsed as number
	if {_line1} is "[Buy]":
		if {_line2} is a number:
			if {_line3} is a number:
				if {_line4} is a number:
					if {_line4} is more than player's balance:
						message "You don't have money!"
						stop
					else:
						remove {_line4} from player's balance
						give {_line2} of {_line3} to the player
						message "You've bought %{_line3}% of %{_line2}% for %{_line4}%!"
						stop
				else:
					message "There is a problem with the sign!"
			else:
				message "There is a problem with the sign!"
		else:
			message "There is a problem with the sign!"
	if {_line1} is "[Sell]":
		if {_line2} is a number:
			if {_line3} is a number:
				if {_line4} is a number:
					if player don't have {_line3} of {_line2}:
						message "You don't have anything to sell!"
						stop
					else:
						add {_line4} to player's balance
						remove {_line2} of {_line3} from the player
						message "You've sold %{_line3}% of %{_line2}% for %{_line4}%!"
						stop
				else:
					message "There is a problem with the sign!"
			else:
				message "There is a problem with the sign!"
		else:
			message "There is a problem with the sign!" 

 

 

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...