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

Proszę o napisanie skryptu na nadanie tagu.


GoldeneK

Rekomendowane odpowiedzi

Opublikowano

Witajcie forumowicze, czy ktos by mógł napisać skrypt pod tytułem: "Nadaj TAG" i "USUN TAG".
Skrypt polega na tym: 

 

1.Istnieje komenda /nadajtag do niej jest wymagane uprawnienie nadaj.tag .

Jeżeli administrator wpiszę tą komendę: /nadajtag JJayGolden &c&l[&9&&lMPC&c&l] w tedy gracz ma przed nickiem [MPC].

Użytkownik jak wpiszę tą komendę nic mu się nie pokazuje, i usuwanie tagów "USUN TAG".

 

2. Prywatna lista informacyjna dla administracji (czyli /pomoc dla administracja pod komendą /apomoc).

 

 

­

Opublikowano

@GoldeneK
Yyyy....?
Coś takiego? :D
Może być /tag nadaj/usun? :P
Da się zrobić też tak jak ty chcesz, ale tak lepiej jest, ale inna permissia. (sk.tag / sk.admin)

 

 

command /tag [<text>] [<text>] [<text>]:
    permission: sk.tag
    permission message: &cYou don't have permission!
    trigger:
        if arg 1 is not set:
            send "&aUzycie: &9/Tag Nadaj/Usun (Gracz) (Tag)"
            stop
        else:
            if arg 1 is "nadaj":
                if arg 2 is set:
                    if arg 3 is set:
                        set {_z} to argument 3
                        set {tag::%arg 2%} to {_z}
                        send "&aUstaliles graczowi &9%arg 2% &atag: %arg 3%"
                        stop
                    else:
                        stop
                else:
                    send "&aUzycie: &9/Tag Nadaj/Usun (Gracz) (Tag)"
                    stop
            if arg 1 is "usun":
                if arg 2 is set:
                    send "&aUsunieto tag: %{tag::%arg 2%}% &az gracza: &9%arg 2%&a!"
                    set {tag::%arg 2%} to false
                    clear {tag::%arg 2%}
                    delete {tag::%arg 2%}
                    stop
                 else if arg 2 is not set:
                     send "&aUzycie: &9/Tag Nadaj/Usun (Gracz) (Tag)"
                     stop
            else if arg 1 is "lista":
                send "&a&l|----------|&cGraczy mający tagi&a&l|----------|"
                loop all players:
                    if {tag::%loop-player%} is false:
                        stop
                    else:
                        send "%{tag::%loop-player%}%%loop-player%}, "
                        stop
                send "&a&l|-----------------------------------------------------|"
                stop
command /apomoc:
    permission: sk.admin
    permission message: &cYou don't have permission!
    trigger:
        send "&a|----------|&cA_Pomoc&a|----------|"
        send "&e/Tag Nadaj (Gracz) (Tag) &7<- Nadaje graczowi tag"
        send "&e/Tag Usun (Gracz) &7<- Usuwa graczowi tag z nicku"
        send "&e/Tag Lista &7<- Pokazuje jacy gracze maja tagi"
        stop
                
            

 

 

@edits

Nie sprawdzane

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

@GoldeneK

Korzystasz z PL języka w minecraft?

Masz tu poprawione, wypadło mi kilka rzeczy z głowy.

 

 

command /tag [<text>] [<text>] [<text>]:
	permission: sk.tag
	permission message: &cYou don't have permission!
	trigger:
		if arg 1 is not set:
			send "&aUzycie: &9/Tag Nadaj/Usun (Gracz) (Tag)"
			stop
		else:
			if arg 1 is "nadaj":
				if arg 2 is set:
					if arg 3 is set:
						set {_z} to argument 3
						set {tag::%arg 2%} to {_z}
						send "&aUstaliles graczowi &9%arg 2% &atag: %arg 3%"
						stop
					else:
						stop
				else:
					send "&aUzycie: &9/Tag Nadaj/Usun (Gracz) (Tag)"
					stop
			if arg 1 is "usun":
				if arg 2 is set:
					send "&aUsunieto tag: %{tag::%arg 2%}% &az gracza: &9%arg 2%&a!"
					set {tag::%arg 2%} to false
					clear {tag::%arg 2%}
					delete {tag::%arg 2%}
					stop
				else if arg 2 is not set:
					send "&aUzycie: &9/Tag Nadaj/Usun (Gracz) (Tag)"
					stop
			else if arg 1 is "lista":
				send "&a&l|----------|&cGracze majacy tagi&a&l|----------|"
				loop all players:
					if {tag::%loop-player%} is not set:
						stop
					else:
						if {tag::%loop-player%} is false:
							stop
						else:
							send "%{tag::%loop-player%}%%loop-player%, "
				send "&a&l|-----------------------------------------------------|"
				stop
command /apomoc:
	permission: sk.admin
	permission message: &cYou don't have permission!
	trigger:
		send "&a|----------|&cA_Pomoc&a|----------|"
		send "&e/Tag Nadaj (Gracz) (Tag) &7<- Nadaje graczowi tag"
		send "&e/Tag Usun (Gracz) &7<- Usuwa graczowi tag z nicku"
		send "&e/Tag Lista &7<- Pokazuje jacy gracze maja tagi"
		stop
on chat:
	if {tag::%player%} is not set:
		stop
	else:
		if {tag::%player%} is false:
			stop
		else:
			if {tag::%player%} is not false:
				cancel event
				broadcast "%{tag::%player%} %display name of player% >> %message%."
				stop
			else:
				stop

 

 

Teraz to spróbuj

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

@GoldeneK

 

 

command /tag [<text>] [<text>] [<text>]:
	permission: sk.tag
	permission message: &cYou don't have permission!
	trigger:
		if arg 1 is not set:
			send "&aUzycie: &9/Tag Nadaj/Usun (Gracz) (Tag)"
			stop
		else:
			if arg 1 is "nadaj":
				if arg 2 is set:
					if arg 3 is set:
						set {_z} to argument 3
						set {tag::%arg 2%} to {_z}
						send "&aUstaliles graczowi &9%arg 2% &atag: %arg 3%"
						stop
					else:
						stop
				else:
					send "&aUzycie: &9/Tag Nadaj/Usun (Gracz) (Tag)"
					stop
			if arg 1 is "usun":
				if arg 2 is set:
					send "&aUsunieto tag: %{tag::%arg 2%}% &az gracza: &9%arg 2%&a!"
					set {tag::%arg 2%} to false
					clear {tag::%arg 2%}
					delete {tag::%arg 2%}
					stop
				else if arg 2 is not set:
					send "&aUzycie: &9/Tag Nadaj/Usun (Gracz) (Tag)"
					stop
			else if arg 1 is "lista":
				send "&a&l|----------|&cGracze majacy tagi&a&l|----------|"
				loop all players:
					if {tag::%loop-player%} is not set:
						stop
					else:
						if {tag::%loop-player%} is false:
							stop
						else:
							send "%{tag::%loop-player%}%%loop-player%, "
				send "&a&l|-----------------------------------------------------|"
				stop
command /apomoc:
	permission: sk.admin
	permission message: &cYou don't have permission!
	trigger:
		send "&a|----------|&cA_Pomoc&a|----------|"
		send "&e/Tag Nadaj (Gracz) (Tag) &7<- Nadaje graczowi tag"
		send "&e/Tag Usun (Gracz) &7<- Usuwa graczowi tag z nicku"
		send "&e/Tag Lista &7<- Pokazuje jacy gracze maja tagi"
		stop
on chat:
	if {tag::%player%} is not set:
		stop
	else:
		if {tag::%player%} is false:
			stop
		else:
			if {tag::%player%} is not false:
				cancel event
				broadcast "%{tag::%player%}% %display name of player% >> %message%."
				stop
			else:
				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

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...