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

Informacja po zabiciu graczy


alk0mat_

Rekomendowane odpowiedzi

Opublikowano

Witam napisze ktoś skrypt ze jak zabije sie 2 graczy to wyswietla sie title double kill trzy osoby triplle kill i np 4kill hexakill czy cos takiego? i jeszcze najlepiej żeby wyswietlał sie nick gracza ktorego zbilismy itd ja juz mam takie cos na swoim serwerze ponizej i zeby to jakos ze sobą współgrało?

 

on death:
    send attacker title "&a&lZabojstwo" with subtitle "&7Zabiles gracza &a%victim%" for 3 seconds
    send victim title "&c&lZginales" with subtitle "&7Zabil cie &c%attacker%" for 3 second

Opublikowano

Nie testowałem tego, pisane na szybko

 

variables:
	{kills.%player%} = 0
	
command /killcount [<player>] [<text>] [<player>]:
	trigger:
		if executor is console:
			if player-arg is online:
				if arg 2 is 1:
					set {_bar} to new bossbar
					set title of boss bar {_bar} to "Kill! Zabito %arg 3%"
					add %arg 1% to bossbar {_bar}
					set the visibility of bossbar {_bar} to true
					set the color of bossbar {_bar} to pink
					wait 10 seconds
					set the visibility of bossbar {_bar} to false
				if arg 2 is 2:
					set {_bar} to new bossbar
					set title of boss bar {_bar} to "Double Kill! Zabito %arg 3%"
					add %arg 1% to bossbar {_bar}
					set the visibility of bossbar {_bar} to true
					set the color of bossbar {_bar} to red
					wait 10 seconds
					set the visibility of bossbar {_bar} to false
				if arg 2 is 3:
					set {_bar} to new bossbar
					set title of boss bar {_bar} to "Triple Kill! Zabito %arg 3%"
					add %arg 1% to bossbar {_bar}
					set the visibility of bossbar {_bar} to true
					set the color of bossbar {_bar} to brown
					wait 10 seconds
					set the visibility of bossbar {_bar} to false
				
on death:
	if attacker is player:
		if victim is player:
			add 1 to {kills.%attacker%}
			if {kills.%attacker%} is 1:
				execute console command "killcount %attacker% 1 %victim%"
			if {kills.%attacker%} is 2:
				execute console command "killcount %attacker% 2 %victim%"
			if {kills.%attacker%} is 3:
				execute console command "killcount %attacker% 3 %victim%"

 

  • sk8erace1 zmienił(a) tytuł na Informacja po zabiciu graczy
  • 2 tygodnie później...
Opublikowano

naprawiony skrypt @AlexsanderARG 

@alk0mat_ (następnym razem wstawiaj błędy)

 

if attacker is player:     >     if attacker is a player (to samo victim)

command /killcount [<player>] [<text>] [<player>]    >    command /killcount [<player>] [<text>] [<text>]  (w przypadku uzycia "if player-arg is online:" moze byc tylko jeden argument z player

color brown    >    color yellow (brown nie dziala)

 

variables:
	{kills.%player%} = 0
	
command /killcount [<player>] [<text>] [<text>]:
	trigger:
		if executor is console:
			if player-arg is online:
				if arg 2 is "1":
					set {_bar} to new bossbar
					set title of boss bar {_bar} to "Kill! Zabito %arg 3%"
					add arg 1 to bossbar {_bar}
					set the visibility of bossbar {_bar} to true
					set the color of bossbar {_bar} to pink
					wait 10 seconds
					set the visibility of bossbar {_bar} to false
				if arg 2 is "2":
					set {_bar} to new bossbar
					set title of boss bar {_bar} to "Double Kill! Zabito %arg 3%"
					add arg 1 to bossbar {_bar}
					set the visibility of bossbar {_bar} to true
					set the color of bossbar {_bar} to red
					wait 10 seconds
					set the visibility of bossbar {_bar} to false
				if arg 2 is "3":
					set {_bar} to new bossbar
					set title of boss bar {_bar} to "Triple Kill! Zabito %arg 3%"
					add arg 1 to bossbar {_bar}
					set the visibility of bossbar {_bar} to true
					set the color of bossbar {_bar} to yellow
					wait 10 seconds
					set the visibility of bossbar {_bar} to false
				if arg 2 is "4":
					set {_bar} to new bossbar
					set title of boss bar {_bar} to "Hexa Kill! Zabito %arg 3%"
					add arg 1 to bossbar {_bar}
					set the visibility of bossbar {_bar} to true
					set the color of bossbar {_bar} to purple
					wait 10 seconds
					set the visibility of bossbar {_bar} to false
				
on death:
	if attacker is a player:
		if victim is a player:
			set {kills.%victim%} to 0 #restart serii po smierci
			add 1 to {kills.%attacker%}
			if {kills.%attacker%} is 1:
				execute console command "killcount %attacker% 1 %victim%"
			if {kills.%attacker%} is 2:
				execute console command "killcount %attacker% 2 %victim%"
			if {kills.%attacker%} is 3:
				execute console command "killcount %attacker% 3 %victim%"

 

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...