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

Prośba o dodanie do tego skryptu pemissions


MCSH

Rekomendowane odpowiedzi

Opublikowano

Chodzi o to żeby tylko ranga gracz mogła wybierać sobie rangi z tych tabliczek. Ze jak juz sobie wybierzemy i zminimy range to nie bedziemy mogli więcej wybrac.

 

 

variables:
        {ranga1.%player%} = false
        {ranga2.%player%} = false
        {ranga3.%player%} = false
        {ranga4.%player%} = false
 
options:
        ranga1: nazwarangi1 #Ustawiasz nazwe rangi
        ranga2: nazwarangi2 #Ustawiasz nazwe rangi
        ranga3: nazwarangi3 #Ustawiasz nazwe rangi
        ranga4: nazwarangi4 #Ustawiasz nazwe rangi
 
on click on sign:
        if {ranga1.%player%} is false:
                if line 1 is "&8[&6Ranga&8]":
                        if line 2 is "&6{@ranga1}":
                                if line 3 is "&bWybierz!":
                                        set {ranga1.%player%} to true
                                        execute console command "pex user %player% group set {@ranga1}"
                                        send "&bWybrales range: &c{@ranga1}"
        if {ranga1.%player%} is true:
                send "&6Wybrales juz range!"
        if {ranga2.%player%} is true:
                send "&6Wybrales juz range!"
        if {ranga3.%player%} is true:
                send "&6Wybrales juz range!"
        if {ranga4.%player%} is true:
                send "&6Wybrales juz range!"
               
on click on sign:
        if {ranga2.%player%} is false:
                if line 1 is "&8[&6Ranga&8]":
                        if line 2 is "&6{@ranga2}":
                                if line 3 is "&bWybierz!":
                                        set {ranga2.%player%} to true
                                        execute console command "pex user %player% group set {@ranga2}"
                                        send "&bWybrales range: &c{@ranga2}"
        if {ranga1.%player%} is true:
                send "&6Wybrales juz range!"
        if {ranga2.%player%} is true:
                send "&6Wybrales juz range!"
        if {ranga3.%player%} is true:
                send "&6Wybrales juz range!"
        if {ranga4.%player%} is true:
                send "&6Wybrales juz range!"
 
on click on sign:
        if {ranga3.%player%} is false:
                if line 1 is "&8[&6Ranga&8]":
                        if line 2 is "&6{@ranga3}":
                                if line 3 is "&bWybierz!":
                                        set {ranga3.%player%} to true
                                        execute console command "pex user %player% group set {@ranga3}"
                                        send "&bWybrales range: &c{@ranga3}"
        if {ranga1.%player%} is true:
                send "&6Wybrales juz range!"
        if {ranga2.%player%} is true:
                send "&6Wybrales juz range!"
        if {ranga3.%player%} is true:
                send "&6Wybrales juz range!"
        if {ranga4.%player%} is true:
                send "&6Wybrales juz range!"
 
on click on sign:
        if {ranga4.%player%} is false:
                if line 1 is "&8[&6Ranga&8]":
                        if line 2 is "&6{@ranga4}":
                                if line 3 is "&bWybierz!":
                                        set {ranga4.%player%} to true
                                        execute console command "pex user %player% group set {@ranga4}"
                                        send "&bWybrales range: &c{@ranga4}"
        if {ranga1.%player%} is true:
                send "&6Wybrales juz range!"
        if {ranga2.%player%} is true:
                send "&6Wybrales juz range!"
        if {ranga3.%player%} is true:
                send "&6Wybrales juz range!"
        if {ranga4.%player%} is true:
                send "&6Wybrales juz range!"

 

 

 

Opublikowano

Wystarczy że przed czymś dasz: if player has permission "permisja":
a jak chcesz żeby coś się zrobiło gdy nie masz permisji to masz dwie opcje
1 to: if player has don't permission "permisja": czy tam if player don't permission "permisja": sprobój tego lub tego
a 2 to że pod if player has permission dajesz else: (enter, tab) i dajesz np. send nie masz uprawnien napisze ci to w kodzie
 

command /test:
    trigger:
        if player has permission "permisja":
            send "&amasz uprawnienia!"
        else:
            send "&4nie masz uprawnien do wykonania tej komendy!"          

Tutaj masz twój skrypt z dodanym:

variables:
        {ranga1.%player%} = false
        {ranga2.%player%} = false
        {ranga3.%player%} = false
        {ranga4.%player%} = false
 
options:
        ranga1: nazwarangi1 #Ustawiasz nazwe rangi
        ranga2: nazwarangi2 #Ustawiasz nazwe rangi
        ranga3: nazwarangi3 #Ustawiasz nazwe rangi
        ranga4: nazwarangi4 #Ustawiasz nazwe rangi
 
on click on sign:
        if player has permission "permisja":
                if {ranga1.%player%} is false:
                        if line 1 is "&8[&6Ranga&8]":
                                if line 2 is "&6{@ranga1}":
                                        if line 3 is "&bWybierz!":
                                                set {ranga1.%player%} to true
                                                execute console command "pex user %player% group set {@ranga1}"
                                                send "&bWybrales range: &c{@ranga1}"
        if {ranga1.%player%} is true:
                send "&6Wybrales juz range!"
        if {ranga2.%player%} is true:
                send "&6Wybrales juz range!"
        if {ranga3.%player%} is true:
                send "&6Wybrales juz range!"
        if {ranga4.%player%} is true:
                send "&6Wybrales juz range!"
               
on click on sign:
        if player has permission "permisja":
                if {ranga2.%player%} is false:
                        if line 1 is "&8[&6Ranga&8]":
                                if line 2 is "&6{@ranga2}":
                                        if line 3 is "&bWybierz!":
                                                set {ranga2.%player%} to true
                                                execute console command "pex user %player% group set {@ranga2}"
                                                send "&bWybrales range: &c{@ranga2}"
        if {ranga1.%player%} is true:
                send "&6Wybrales juz range!"
        if {ranga2.%player%} is true:
                send "&6Wybrales juz range!"
        if {ranga3.%player%} is true:
                send "&6Wybrales juz range!"
        if {ranga4.%player%} is true:
                send "&6Wybrales juz range!"
 
on click on sign:
        if player has permission "permisja":
                if {ranga3.%player%} is false:
                        if line 1 is "&8[&6Ranga&8]":
                                if line 2 is "&6{@ranga3}":
                                        if line 3 is "&bWybierz!":
                                                set {ranga3.%player%} to true
                                                execute console command "pex user %player% group set {@ranga3}"
                                                send "&bWybrales range: &c{@ranga3}"
        if {ranga1.%player%} is true:
                send "&6Wybrales juz range!"
        if {ranga2.%player%} is true:
                send "&6Wybrales juz range!"
        if {ranga3.%player%} is true:
                send "&6Wybrales juz range!"
        if {ranga4.%player%} is true:
                send "&6Wybrales juz range!"
 
on click on sign:
        if player has permission "permisja":
                if {ranga4.%player%} is false:
                        if line 1 is "&8[&6Ranga&8]":
                                if line 2 is "&6{@ranga4}":
                                        if line 3 is "&bWybierz!":
                                                set {ranga4.%player%} to true
                                                execute console command "pex user %player% group set {@ranga4}"
                                                send "&bWybrales range: &c{@ranga4}"
        if {ranga1.%player%} is true:
                send "&6Wybrales juz range!"
        if {ranga2.%player%} is true:
                send "&6Wybrales juz range!"
        if {ranga3.%player%} is true:
                send "&6Wybrales juz range!"
        if {ranga4.%player%} is true:
                send "&6Wybrales juz range!"

variables:
        {ranga1.%player%} = false
        {ranga2.%player%} = false
        {ranga3.%player%} = false
        {ranga4.%player%} = false
 
options:
        ranga1: nazwarangi1 #Ustawiasz nazwe rangi
        ranga2: nazwarangi2 #Ustawiasz nazwe rangi
        ranga3: nazwarangi3 #Ustawiasz nazwe rangi
        ranga4: nazwarangi4 #Ustawiasz nazwe rangi
 
on click on sign:
        if player has permission "permisja":
                if {ranga1.%player%} is false:
                        if line 1 is "&8[&6Ranga&8]":
                                if line 2 is "&6{@ranga1}":
                                        if line 3 is "&bWybierz!":
                                                set {ranga1.%player%} to true
                                                execute console command "pex user %player% group set {@ranga1}"
                                                send "&bWybrales range: &c{@ranga1}"
        if {ranga1.%player%} is true:
                send "&6Wybrales juz range!"
        if {ranga2.%player%} is true:
                send "&6Wybrales juz range!"
        if {ranga3.%player%} is true:
                send "&6Wybrales juz range!"
        if {ranga4.%player%} is true:
                send "&6Wybrales juz range!"
               
on click on sign:
        if player has permission "permisja":
                if {ranga2.%player%} is false:
                        if line 1 is "&8[&6Ranga&8]":
                                if line 2 is "&6{@ranga2}":
                                        if line 3 is "&bWybierz!":
                                                set {ranga2.%player%} to true
                                                execute console command "pex user %player% group set {@ranga2}"
                                                send "&bWybrales range: &c{@ranga2}"
        if {ranga1.%player%} is true:
                send "&6Wybrales juz range!"
        if {ranga2.%player%} is true:
                send "&6Wybrales juz range!"
        if {ranga3.%player%} is true:
                send "&6Wybrales juz range!"
        if {ranga4.%player%} is true:
                send "&6Wybrales juz range!"
 
on click on sign:
        if player has permission "permisja":
                if {ranga3.%player%} is false:
                        if line 1 is "&8[&6Ranga&8]":
                                if line 2 is "&6{@ranga3}":
                                        if line 3 is "&bWybierz!":
                                                set {ranga3.%player%} to true
                                                execute console command "pex user %player% group set {@ranga3}"
                                                send "&bWybrales range: &c{@ranga3}"
        if {ranga1.%player%} is true:
                send "&6Wybrales juz range!"
        if {ranga2.%player%} is true:
                send "&6Wybrales juz range!"
        if {ranga3.%player%} is true:
                send "&6Wybrales juz range!"
        if {ranga4.%player%} is true:
                send "&6Wybrales juz range!"
 
on click on sign:
        if player has permission "permisja":
                if {ranga4.%player%} is false:
                        if line 1 is "&8[&6Ranga&8]":
                                if line 2 is "&6{@ranga4}":
                                        if line 3 is "&bWybierz!":
                                                set {ranga4.%player%} to true
                                                execute console command "pex user %player% group set {@ranga4}"
                                                send "&bWybrales range: &c{@ranga4}"
        if {ranga1.%player%} is true:
                send "&6Wybrales juz range!"
        if {ranga2.%player%} is true:
                send "&6Wybrales juz range!"
        if {ranga3.%player%} is true:
                send "&6Wybrales juz range!"
        if {ranga4.%player%} is true:
                send "&6Wybrales juz range!"

A jak chcesz żeby wyświetliło ci się coś jak nie masz permisji do daje ci tu przykład:
 

command /test:
	trigger:
		if player has permission "permisja";
			send "masz uprawnienia"
		else:
			send "nie masz uprawnien"

pomogłem? Daj lajka :D


Sorry że podwójnie dałem to samo w poście ale mi się coś zacieło

Wstawił bym sobie sygnaturkę, ale nie pozwala mi na to forum, ponieważ gdy próbuję to zrobić, dostaję słynny komunikat od cloudflare "Getway timed out". :/

Opublikowano

Dobra ;) a jak to teraz ustawi na serwerze ? zeby na tabliczce było tak jak miało byc ?


chodzi jak zrobi teraz taka tabliczke

 

Opublikowano

Nie bardzo wiem o co chodzi z pytaniem ale chyba chodzi ci o to co masz napisać na tabliczce?
Według skryptu to:
1 linia: &8[&6Ranga&8]
2 linia: false
3 linia: &bWybierz!
I musi być z kolorami!

Wstawił bym sobie sygnaturkę, ale nie pozwala mi na to forum, ponieważ gdy próbuję to zrobić, dostaję słynny komunikat od cloudflare "Getway timed out". :/

Opublikowano

W sensie jaką tabliczkę? Lool
 

on sign change:
    if line 1 is "siema":
        set line 1 to "&aCos tam"
        set line 2 "&aKomenda"
        stop
    stop
on right click on sign:
    if line 1 is "&aCos tam":
        if line 2 is "&aKomenda":
            send "&b&lHejoooo :D"
            stop
        stop
    stop

409.jpg?7190

|---> Z o s t a n ę <---|

 

Zostanę technikiem na twój serwer minecraft, zrobie cały serwer według twojego pomysłu!
http://www.mpcforum.pl/topic/1486254-zostanę-technikiem-stworzę-serwer-twojego-pomysłu/#entry12589185

Opublikowano

W sensie chodzi o to ;) bo to miało byc że jak sie kliknie na tabliczke to wykona to co jest zapisane czyli da range ;) i pytam co zrobic zeby wlasnie tak bylo

 

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...