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 przerobienie mojego skryptu na podwójne grupy na chacie.


kubalisek

Rekomendowane odpowiedzi

Opublikowano

 Nie testowane, jakby działało ale np prefix wyglądał tak: [[Vip]] to z options: usuń kwadratowe nawiasy przy %player's prefix% / %{prefix.%player%}%

variables:
	{kill::%player%} = 0
	{silver.%player%} = true
	{gold.%player%} = false
	{master.%player%} = false
	{elite.%player%} = false
options:
	format_SILVER: &8[&7Silver&8] [%player's prefix%]&6%display name of player%: %message%
	format_GOLD: &8[&7Gold&8] [%player's prefix%]&6%display name of player%: %message%
	format_MASTER: &8[&7Master&8] [%player's prefix%]&6%display name of player%: %message%
	format_ELITE: &8[&7ELITE&8] [%player's prefix%]&6%display name of player%: %message%
on death of player:
	add 1 to {kill::%player%}
	if {kill::%player%} is greater than 20:
		set {silver.%player%} to false
		set {gold.%player%} to true
	if {kill::%player%} is greater than 50:
		set {gold.%player%} to false
		set {master.%player%} to true
	if {kill::%player%} is greater than 100:
		set {master.%player%} to false
		set {elite.%player%} to true
on chat:
	if player has permission "sk.rangi":
		if player is op:
			stop
	else:
		if {silver.%player%} is true:
			cancel event
			send "{@format_SILVER}" to all players
		if {gold.%player%} is true:
			cancel event
			send "{@format_GOLD}" to all players
		if {master.%player%} is true:
			cancel event
			send "{@format_MASTER}" to all players
		if {elite.%player%} is true:
			cancel event
			send "{@format_ELITE}" to all players 

albo

variables:
	{kill::%player%} = 0
	{silver.%player%} = true
	{gold.%player%} = false
	{master.%player%} = false
	{elite.%player%} = false
options:
	format_SILVER: &8[&7Silver&8] [%{prefix.%player%}%]&6%display name of player%: %message%
	format_GOLD: &8[&7Gold&8] [%{prefix.%player%}%]&6%display name of player%: %message%
	format_MASTER: &8[&7Master&8] [%{prefix.%player%}%]&6%display name of player%: %message%
	format_ELITE: &8[&7ELITE&8] [%{prefix.%player%}%]&6%display name of player%: %message%
on death of player:
	add 1 to {kill::%player%}
	if {kill::%player%} is greater than 20:
		set {silver.%player%} to false
		set {gold.%player%} to true
	if {kill::%player%} is greater than 50:
		set {gold.%player%} to false
		set {master.%player%} to true
	if {kill::%player%} is greater than 100:
		set {master.%player%} to false
		set {elite.%player%} to true
on chat:
	if player has permission "sk.rangi":
		if player is op:
			stop
	else:
		if {silver.%player%} is true:
			cancel event
			send "{@format_SILVER}" to all players
		if {gold.%player%} is true:
			cancel event
			send "{@format_GOLD}" to all players
		if {master.%player%} is true:
			cancel event
			send "{@format_MASTER}" to all players
		if {elite.%player%} is true:
			cancel event
			send "{@format_ELITE}" to all players 
on join:
	set {prefix.%player%} to player's prefix

xKAm1xO.png

Opublikowano

Ustaw w permissionsex prefix np &eVip i zastosuj SK pana wyżej, jeżeli nie wiesz jak to zrobić to wpisz /pex group Vip prefix &eVip

Darmowe kody na 20% zniżki (WWW, VPS and MC) na lvlup.pro

Szczegóły discord: xVendrome#6074 / PW

Opublikowano

Zainstaluj PermissionsEx i tam poustawiaj albo do skryptu dodaj:

command /prefix [<player>] [<text>]:
	trigger:
		if player have permission "prefix.ustaw":
			set the arg 1's prefix to coloured "[%arg 2%<reset>] "

Wtedy komendą /prefix ustawiasz graczowi prefix. Ewentualnie:

variables:
	{kill::%player%} = 0
	{silver.%player%} = true
	{gold.%player%} = false
	{master.%player%} = false
	{elite.%player%} = false
options:
	format_SILVER: &8[&7Silver&8] [%{prefix.%player%}%]&6%display name of player%: %message%
	format_GOLD: &8[&7Gold&8] [%{prefix.%player%}%]&6%display name of player%: %message%
	format_MASTER: &8[&7Master&8] [%{prefix.%player%}%]&6%display name of player%: %message%
	format_ELITE: &8[&7ELITE&8] [%{prefix.%player%}%]&6%display name of player%: %message%
on death of player:
	add 1 to {kill::%player%}
	if {kill::%player%} is greater than 20:
		set {silver.%player%} to false
		set {gold.%player%} to true
	if {kill::%player%} is greater than 50:
		set {gold.%player%} to false
		set {master.%player%} to true
	if {kill::%player%} is greater than 100:
		set {master.%player%} to false
		set {elite.%player%} to true
on chat:
	if player has permission "sk.rangi":
		if player is op:
			stop
	else:
		if {silver.%player%} is true:
			cancel event
			send "{@format_SILVER}" to all players
		if {gold.%player%} is true:
			cancel event
			send "{@format_GOLD}" to all players
		if {master.%player%} is true:
			cancel event
			send "{@format_MASTER}" to all players
		if {elite.%player%} is true:
			cancel event
			send "{@format_ELITE}" to all players 
command /prefix [<player>] [<text>]:
	trigger:
		if player have permission "prefix.ustaw":
			set {prefix.%arg 1%} to coloured "[%arg 2%&f]"
			send "&cUstawiono prefix gracza &a%arg 1%&c na [%coloured arg 2%]" to player

xKAm1xO.png

Opublikowano

Co to daje: command /prefix [<player>] [<text>]:

trigger:

set {prefix.%arg 1%} to coloured "[%arg 2%&f]"

send "&cUstawiono prefix gracza &a%arg 1%&c na [%coloured arg 2%]" to player

 

Co mam z tym zrobic. Chce aby to bylo do: Gracz, Vip, Yt itd. oprocz adma i root

Opublikowano

Ustawia prefix gracza, chyba że masz wgrany plugin PermissionsEx, wtedy nie potrzebujesz tego i prefix będzie pobierać z configu pluginu. Np jeśli gracz ma grupę "Gracz" która ma ustawiony prefix "Gracz" to na chacie będzie miał wpisane to "Gracz". Najlepiej właśnie wgrać PEXa ale jak nie chcesz się w niego bawić to właśnie ta komenda pozwoli ci graczowi którego podasz ustawić dowolny prefix. Np:

 

/prefix Logout &cRoot

xKAm1xO.png

Opublikowano

Masz kilka gotowych.

 

Możesz ustawić graczowi prefixy takie jak: Gracz, YT, VIP, Helper, Mod wpisując komendę /prefix <gracz> <ranga> czyli np /prefix logout VIP

variables:
	{kill::%player%} = 0
	{silver.%player%} = true
	{gold.%player%} = false
	{master.%player%} = false
	{elite.%player%} = false
options:
	format_SILVER: &8[&7Silver&8]&8[%{prefix.%player%}%&8] &6%display name of player%: %message%
	format_GOLD: &8[&7Gold&8]&8[%{prefix.%player%}%&8] &6%display name of player%: %message%
	format_MASTER: &8[&7Master&8]&8[%{prefix.%player%}%&8] &6%display name of player%: %message%
	format_ELITE: &8[&7ELITE&8]&8[%{prefix.%player%}%&8] &6%display name of player%: %message%
on death of player:
	add 1 to {kill::%player%}
	if {kill::%player%} is greater than 20:
		set {silver.%player%} to false
		set {gold.%player%} to true
	if {kill::%player%} is greater than 50:
		set {gold.%player%} to false
		set {master.%player%} to true
	if {kill::%player%} is greater than 100:
		set {master.%player%} to false
		set {elite.%player%} to true
on chat:
	if player has permission "sk.rangi":
		if player is op:
			stop
	else:
		if {silver.%player%} is true:
			cancel event
			send "{@format_SILVER}" to all players
		if {gold.%player%} is true:
			cancel event
			send "{@format_GOLD}" to all players
		if {master.%player%} is true:
			cancel event
			send "{@format_MASTER}" to all players
		if {elite.%player%} is true:
			cancel event
			send "{@format_ELITE}" to all players 
on first join:
	set {prefix.%player%} to coloured "&7Gracz"
command /prefix [<player>] [<text>]:
	trigger:
		if player have permission "prefix.ustaw":
			if arg 1 is set:
				if arg 2 is "gracz":
					set {prefix.%arg 1%} to coloured "&7Gracz"
					send "&6Ustawiono prefix gracza &9%arg 1%&6 na &7Gracz" to player
				if arg 2 is "yt":
					set {prefix.%arg 1%} to coloured "&fY&4T"
					send "&6Ustawiono prefix gracza &9%arg 1%&6 na &fY&4T" to player
				if arg 2 is "vip":
					set {prefix.%arg 1%} to coloured "&6VIP"
					send "&6Ustawiono prefix gracza &9%arg 1%&6 na &6VIP" to player
				if arg 2 is "helper":
					set {prefix.%arg 1%} to coloured "&2Helper"
					send "&6Ustawiono prefix gracza &9%arg 1%&6 na &2Helper" to player
				if arg 2 is "mod":
					set {prefix.%arg 1%} to coloured "&9Mod"
					send "&6Ustawiono prefix gracza &9%arg 1%&6 na &9Mod" to player
				if arg 2 is not set:
					send "&7Mozliwe prefixy: &7Gracz, &fY&4T&7, &6VIP&7, &2Helper&7, &9Mod" to player
					send "&7Uzyj komendy &6/prefix <nick gracza> <prefix>&7 aby zmienic jego tytul!" to player
			else:
				send "&cPodaj gracza któremu mam zmienic prefix!" to player
		

xKAm1xO.png

Opublikowano


options:

VIP: &8[&6VIP&8]

command /setrank <text> <text>:

trigger:

player has permission "sk.setrank":

execute console command "pex user %arg 1% group set %arg 2%"

set {ranga.%player%} to arg 2

broadcast "&3[kRANK] &b%arg 1% otrzymal range %arg 2%"

if arg 2 is "VIP":

set {ranga.display.%player%} to "{@VIP}"

stop trigger


variables:

{kill::%player%} = 0

{silver.%player%} = true

{gold.%player%} = false

{master.%player%} = false

{elite.%player%} = false

options:

format_SILVER: &8[&7Silver&8] %{ranga.display.%player%}% &6%display name of player%: %message%

format_GOLD: &8[&7Gold&8] %{ranga.display.%player%}% &6%display name of player%: %message%

format_MASTER: &8[&7Master&8] %{ranga.display.%player%}% &6%display name of player%: %message%

format_ELITE: &8[&7ELITE&8] %{ranga.display.%player%}% &6%display name of player%: %message%

PERM: sk.rangi

on death of player:

add 1 to {kill::%player%}

{kill::%player%} is greater than 20:

set {silver.%player%} to false

set {gold.%player%} to true

{kill::%player%} is greater than 50:

set {gold.%player%} to false

set {master.%player%} to true

{kill::%player%} is greater than 100:

set {master.%player%} to false

set {elite.%player%} to true

on chat:

if player has permission "{@perm}":

if player is op:

stop

else:

if {silver.%player%} is true:

cancel event

send "{@format_SILVER}" to all players

if {gold.%player%} is true:

cancel event

send "{@format_GOLD}" to all players

if {master.%player%} is true:

cancel event

send "{@format_MASTER}" to all players

if {elite.%player%} is true:

cancel event

send "{@format_ELITE}" to all players

Uważam, że poziom mojej inteligencji nie przekracza poziomu inteligencji przeciętnego człowieka.

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...