Skocz do zawartości
  • 0

[Zlecenie] Skrypt na format


Matthew10
 Udostępnij

Pytanie

14 odpowiedzi na to pytanie

Rekomendowane odpowiedzi

  • 0
on chat:
	cancel event
	if player has permission "pref.gracz":
		send "&7[&6G&7] &8%player% &f» &7%message%" to all players
	if player has permission "pref.VIP":
		send "&7[&6&lV&r&7] &8%player% &f» &6%message%" to all players
	if player has permission "pref.SVIP":
		send "&7[&2&lS&r&7] &8%player% &f» &2%message%" to all players
	if player has permission "pref.ADMIN":
		send "&l&7[&4ROOT&7] &4%player% &f» &6%message%" to all players

itd... gdybyś chciał coś jeszcze to pisz :D

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
2 minuty temu, xAxee napisał:
on chat:
	cancel event
	if player has permission "pref.gracz":
		send "&7[&6G&7] &8%player% &f» &7%message%" to all players
	if player has permission "pref.VIP":
		send "&7[&6&lV&r&7] &8%player% &f» &6%message%" to all players
	if player has permission "pref.SVIP":
		send "&7[&2&lS&r&7] &8%player% &f» &2%message%" to all players
	if player has permission "pref.ADMIN":
		send "&l&7[&4ROOT&7] &4%player% &f» &6%message%" to all players

itd... gdybyś chciał coś jeszcze to pisz :D

Istnieje możliwość zrobienia ogólnego formatu? Chodzi mi, iż żeby nie dawać permisji tylko ranga by sie zmieniła wg grupy, a wszystkie by miały jednakowy kolor.

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
on chat:
	cancel event
	if player's group is "Gracz":
		send "&7[&6G&7] &8%player% &f» &7%message%" to all players
	if player's group is "Vip":
		send "&7[&6&lV&r&7] &8%player% &f» &6%message%" to all players
	if player's group is "Support":
		send "&7[&2&lS&r&7] &8%player% &f» &2%message%" to all players
	if player's group is "Root":
		send "&l&7[&4ROOT&7] &4%player% &f» &6%message%" to all players

Może coś takiego zadziałać :wallkappa: Potrzebne będzie SkAction. @Matthew10

Edytowane przez pandax
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
40 minut temu, pandax napisał:
on chat:
	cancel event
	if player's group is "Gracz":
		send "&7[&6G&7] &8%player% &f» &7%message%" to all players
	if player's group is "Vip":
		send "&7[&6&lV&r&7] &8%player% &f» &6%message%" to all players
	if player's group is "Support":
		send "&7[&2&lS&r&7] &8%player% &f» &2%message%" to all players
	if player's group is "Root":
		send "&l&7[&4ROOT&7] &4%player% &f» &6%message%" to all players

Może coś takiego zadziałać :wallkappa: Potrzebne będzie SkAction. @Matthew10

Tylko, że pisać na chacie nie mogę gdy wgram owy skrypt.

Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
17 minut temu, pandax napisał:

Wersja 1.7.10 jest problematyczna, ponieważ na taką wersje nie tworzy się już pluginów. Nie ma innego rozwiązania (oprócz permisji), aby to wykonać na 1.7.10.

Poprawiłbyś skrypt by nie wyświetlała się wiadomość na chacie 2x?

on chat:
	cancel event
	set {%player%.prefix} to coloured player's prefix
	replace all " " with "" in {%player%.prefix}
	if player has permission "format.gracz":
		send "&7Gracz %{%player%.prefix}% &f%player%:&7 &f%message%" to all players
	if player has permission "*":
		send "&7HeadAdmin %{%player%.prefix}% &f%player%:&7 &f%message%" to all players

By opom się wyświetlało HeadAdmin, a osobom bez opa permisja do odpowiedniego formatu.

Edytowane przez Matthew10
Odnośnik do komentarza
Udostępnij na innych stronach

  • 0
45 minut temu, Matthew10 napisał:

Chociaż już sam sobie z tym poradziłem. Do zamknięcia.

Jeśli chcesz to możesz sprawdzić do jakiej grupy z PEX należy gracz, bez potrzeby nadawania danej grupie uprawnienia od formatu chatu.

if player has permission "group.nazwa_grupy":

Może się przyda :)

Odnośnik do komentarza
Udostępnij na innych stronach

Nieaktywny
Ten temat został zamknięty. Brak możliwości dodania odpowiedzi.
 Udostępnij

  • Ostatnio przeglądający   0 użytkowników

    • Brak zarejestrowanych użytkowników przeglądających tę stronę.
×
×
  • Dodaj nową pozycję...