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

Poszukuje skryptu zapobiegającego uciekania z pvp


klosowskipl

Rekomendowane odpowiedzi

Opublikowano

Witam szukam Skryptu by gracze nie uciekali z pvp to znaczy by nie mogli wejść na teren spawnu i wpisywać /tpa, tpahere, /spawn, /home i /warp a i gdy się jest w pvp to na górnym środku ekranu był pasek hp ender smoka z napisem czerwonym Jesteś w pvp a gdy się skończy to na zielono nie jesteś już w pvp i po trzech sekundach się wyłączał. A i by całe bycie w pvp aby trwało przez 20 sek jeśli oczywiście nikt by nie uderzył.
Za dobro pomoc dam like  :)

 

banner-3.png

Opublikowano

wiem tylko żeby gracze nie wchodzili na teren spawnu wpisujesz /rg flag (CuboidSpawna) Entry deny

A tego skryptu to nie wiem jak zrobić :/

 

EDIT: musisz mieć plugin worldguard i worldedit

Opublikowano
Zobacz takie coś, może nie działać blokowane wchodzenia na spawna xD

on damage:	
	if attacker is a player:
		if victim is a player:
			set {combat.%victim%} to 20
			add victim to {combat::*}
			set {combat.%attacker%} to 20
			add attacker to {combat::*}
			display "&cANTY-LOGOUT" on bossbar with 100 percent by 1 seconds for victim
			display "&cANTY-LOGOUT" on bossbar with 100 percent by 1 seconds for attacker
on quit:
	if {combat.%player%} is larger than 0:
		drop player's inventory
		wait 2 tick
		kill the player
		set {combat.%player%} to 0
		remove player from {combat::*}
		broadcast "&cGracz &4%player% &cwylogowal sie podczas walki!"
on command:
	if {combat.%player%} is larger than 0:
		cancel event
		send "&cKomendy podczas walki sa zablokowane!"
on region enter:
	if region is "spawn":
		cancel event
		send "&cPodczas walki nie mozna wejsc na spawna!"
on join:
	if {combat.%player%} is not set:
		set {combat.%player%} to 0	
every 1 seconds:
	loop {combat::*}:
		remove 1 from {combat.%loop-value%}
		set {_x} to {combat.%loop-value%}
		set {_z} to loop-value parsed as offlineplayer
		if {_z} is online:
			if {_x} is 19:
				display "&cANTY-LOGOUT" on bossbar with 95 percent by 1 seconds for {_z}
			if {_x} is 18:
				display "&cANTY-LOGOUT" on bossbar with 90 percent by 1 seconds for {_z}
			if {_x} is 17:
				display "&cANTY-LOGOUT" on bossbar with 85 percent by 1 seconds for {_z}
			if {_x} is 16:
				display "&cANTY-LOGOUT" on bossbar with 80 percent by 1 seconds for {_z}
			if {_x} is 15:
				display "&cANTY-LOGOUT" on bossbar with 75 percent by 1 seconds for {_z}
			if {_x} is 14:
				display "&cANTY-LOGOUT" on bossbar with 70 percent by 1 seconds for {_z}
			if {_x} is 13:
				display "&cANTY-LOGOUT" on bossbar with 65 percent by 1 seconds for {_z}
			if {_x} is 12:
				display "&cANTY-LOGOUT" on bossbar with 60 percent by 1 seconds for {_z}
			if {_x} is 11:
				display "&cANTY-LOGOUT" on bossbar with 55 percent by 1 seconds for {_z}
			if {_x} is 10:
				display "&cANTY-LOGOUT" on bossbar with 50 percent by 1 seconds for {_z}
			if {_x} is 9:
				display "&cANTY-LOGOUT" on bossbar with 45 percent by 1 seconds for {_z}
			if {_x} is 8:
				display "&cANTY-LOGOUT" on bossbar with 40 percent by 1 seconds for {_z}
			if {_x} is 7:
				display "&cANTY-LOGOUT" on bossbar with 35 percent by 1 seconds for {_z}
			if {_x} is 6:
				display "&cANTY-LOGOUT" on bossbar with 30 percent by 1 seconds for {_z}
			if {_x} is 5:
				display "&cANTY-LOGOUT" on bossbar with 25 percent by 1 seconds for {_z}
			if {_x} is 4:
				display "&cANTY-LOGOUT" on bossbar with 20 percent by 1 seconds for {_z}
			if {_x} is 3:
				display "&cANTY-LOGOUT" on bossbar with 15 percent by 1 seconds for {_z}
			if {_x} is 2:
				display "&cANTY-LOGOUT" on bossbar with 10 percent by 1 seconds for {_z}
			if {_x} is 1:
				display "&cANTY-LOGOUT" on bossbar with 5 percent by 1 seconds for {_z}
			if {_x} is 0:
				display "&aANTY-LOGOUT" on bossbar with 0 percent by 3 seconds for {_z}
				remove {_z} from {combat::*}
		else:
			if {_x} is 0:
				remove {_z} from {combat::*}
		
 

 

 

 

Jak by nie działało pisz na PW!

Opublikowano

@stefanik11 

 

on entering of region "spawn":
                if {hentero.%player%} is true:
                        cancel event
                        send " Przeciez jestes w trakcie walki , nie mozesz wejsc na spawn !"

Ty ustawiles , ze nawet jak ktos nie jest w pvp , nie moze wejsc na spawn 

Pisze skrypty na zamowienie !  :lenny:

Oczywiscie za darmo   :D

SHKWAAAD

Opublikowano

@Nekrimeister ale glupoty ,

jasne ze jest taki flag ale on chce jak jest ktos w pvp to nie mogl wchodzic a nie ogolnie.

Pisze skrypty na zamowienie !  :lenny:

Oczywiscie za darmo   :D

SHKWAAAD

Opublikowano
Mój błąd, tu masz poprawke :/

on damage:	
	if attacker is a player:
		if victim is a player:
			set {combat.%victim%} to 20
			add victim to {combat::*}
			set {combat.%attacker%} to 20
			add attacker to {combat::*}
			display "&cANTY-LOGOUT" on bossbar with 100 percent by 1 seconds for victim
			display "&cANTY-LOGOUT" on bossbar with 100 percent by 1 seconds for attacker
on quit:
	if {combat.%player%} is larger than 0:
		drop player's inventory
		wait 2 tick
		kill the player
		set {combat.%player%} to 0
		remove player from {combat::*}
		broadcast "&cGracz &4%player% &cwylogowal sie podczas walki!"
on command:
	if {combat.%player%} is larger than 0:
		cancel event
		send "&cKomendy podczas walki sa zablokowane!"
on region enter:
	if {combat.%player%} is larger than 0:
		if region is "spawn":
			cancel event
			send "&cPodczas walki nie mozna wejsc na spawna!"
on join:
	if {combat.%player%} is not set:
		set {combat.%player%} to 0	
every 1 seconds:
	loop {combat::*}:
		remove 1 from {combat.%loop-value%}
		set {_x} to {combat.%loop-value%}
		set {_z} to loop-value parsed as offlineplayer
		if {_z} is online:
			if {_x} is 19:
				display "&cANTY-LOGOUT" on bossbar with 95 percent by 1 seconds for {_z}
			if {_x} is 18:
				display "&cANTY-LOGOUT" on bossbar with 90 percent by 1 seconds for {_z}
			if {_x} is 17:
				display "&cANTY-LOGOUT" on bossbar with 85 percent by 1 seconds for {_z}
			if {_x} is 16:
				display "&cANTY-LOGOUT" on bossbar with 80 percent by 1 seconds for {_z}
			if {_x} is 15:
				display "&cANTY-LOGOUT" on bossbar with 75 percent by 1 seconds for {_z}
			if {_x} is 14:
				display "&cANTY-LOGOUT" on bossbar with 70 percent by 1 seconds for {_z}
			if {_x} is 13:
				display "&cANTY-LOGOUT" on bossbar with 65 percent by 1 seconds for {_z}
			if {_x} is 12:
				display "&cANTY-LOGOUT" on bossbar with 60 percent by 1 seconds for {_z}
			if {_x} is 11:
				display "&cANTY-LOGOUT" on bossbar with 55 percent by 1 seconds for {_z}
			if {_x} is 10:
				display "&cANTY-LOGOUT" on bossbar with 50 percent by 1 seconds for {_z}
			if {_x} is 9:
				display "&cANTY-LOGOUT" on bossbar with 45 percent by 1 seconds for {_z}
			if {_x} is 8:
				display "&cANTY-LOGOUT" on bossbar with 40 percent by 1 seconds for {_z}
			if {_x} is 7:
				display "&cANTY-LOGOUT" on bossbar with 35 percent by 1 seconds for {_z}
			if {_x} is 6:
				display "&cANTY-LOGOUT" on bossbar with 30 percent by 1 seconds for {_z}
			if {_x} is 5:
				display "&cANTY-LOGOUT" on bossbar with 25 percent by 1 seconds for {_z}
			if {_x} is 4:
				display "&cANTY-LOGOUT" on bossbar with 20 percent by 1 seconds for {_z}
			if {_x} is 3:
				display "&cANTY-LOGOUT" on bossbar with 15 percent by 1 seconds for {_z}
			if {_x} is 2:
				display "&cANTY-LOGOUT" on bossbar with 10 percent by 1 seconds for {_z}
			if {_x} is 1:
				display "&cANTY-LOGOUT" on bossbar with 5 percent by 1 seconds for {_z}
			if {_x} is 0:
				display "&aANTY-LOGOUT" on bossbar with 0 percent by 3 seconds for {_z}
				remove {_z} from {combat::*}
		else:
			if {_x} is 0:
				remove {_z} from {combat::*}

 

 

Opublikowano

Jezeli skrypt to kukubaczka . A jezeli zalezy Ci na dobrym pluginie FairPvp polecam. Sam go używam na serwerze swietny plugin na anty-logout!

Opublikowano
@Edit BossBarSk, nie jest potrzebny z tego co widzę nie masz WildSkript'a. Zara podeśle Ci w edicie poprawiony skrypt bo znalazłem jeszcze 1 błąd xD

 

@Edit2 Poprawiony sk:




on damage:
if attacker is a player:
if victim is a player:
set {combat.%victim%} to 20
add victim to {combat::*}
set {combat.%attacker%} to 20
add attacker to {combat::*}
display "&cANTY-LOGOUT" on bossbar with 100 percent by 1 seconds for victim
display "&cANTY-LOGOUT" on bossbar with 100 percent by 1 seconds for attacker
on quit:
if {combat.%player%} is larger than 0:
kill the player
set {combat.%player%} to 0
remove player from {combat::*}
broadcast "&cGracz &4%player% &cwylogowal sie podczas walki!"
on command:
if {combat.%player%} is larger than 0:
cancel event
send "&cKomendy podczas walki sa zablokowane!"
on region enter:
if {combat.%player%} is larger than 0:
if region is "spawn":
cancel event
send "&cPodczas walki nie mozna wejsc na spawna!"
on join:
if {combat.%player%} is not set:
set {combat.%player%} to 0
every 1 seconds:
loop {combat::*}:
remove 1 from {combat.%loop-value%}
set {_x} to {combat.%loop-value%}
set {_z} to loop-value parsed as offlineplayer
if {_z} is online:
if {_x} is 19:
display "&cANTY-LOGOUT" on bossbar with 95 percent by 1 seconds for {_z}
if {_x} is 18:
display "&cANTY-LOGOUT" on bossbar with 90 percent by 1 seconds for {_z}
if {_x} is 17:
display "&cANTY-LOGOUT" on bossbar with 85 percent by 1 seconds for {_z}
if {_x} is 16:
display "&cANTY-LOGOUT" on bossbar with 80 percent by 1 seconds for {_z}
if {_x} is 15:
display "&cANTY-LOGOUT" on bossbar with 75 percent by 1 seconds for {_z}
if {_x} is 14:
display "&cANTY-LOGOUT" on bossbar with 70 percent by 1 seconds for {_z}
if {_x} is 13:
display "&cANTY-LOGOUT" on bossbar with 65 percent by 1 seconds for {_z}
if {_x} is 12:
display "&cANTY-LOGOUT" on bossbar with 60 percent by 1 seconds for {_z}
if {_x} is 11:
display "&cANTY-LOGOUT" on bossbar with 55 percent by 1 seconds for {_z}
if {_x} is 10:
display "&cANTY-LOGOUT" on bossbar with 50 percent by 1 seconds for {_z}
if {_x} is 9:
display "&cANTY-LOGOUT" on bossbar with 45 percent by 1 seconds for {_z}
if {_x} is 8:
display "&cANTY-LOGOUT" on bossbar with 40 percent by 1 seconds for {_z}
if {_x} is 7:
display "&cANTY-LOGOUT" on bossbar with 35 percent by 1 seconds for {_z}
if {_x} is 6:
display "&cANTY-LOGOUT" on bossbar with 30 percent by 1 seconds for {_z}
if {_x} is 5:
display "&cANTY-LOGOUT" on bossbar with 25 percent by 1 seconds for {_z}
if {_x} is 4:
display "&cANTY-LOGOUT" on bossbar with 20 percent by 1 seconds for {_z}
if {_x} is 3:
display "&cANTY-LOGOUT" on bossbar with 15 percent by 1 seconds for {_z}
if {_x} is 2:
display "&cANTY-LOGOUT" on bossbar with 10 percent by 1 seconds for {_z}
if {_x} is 1:
display "&cANTY-LOGOUT" on bossbar with 5 percent by 1 seconds for {_z}
if {_x} is 0:
display "&aANTY-LOGOUT" on bossbar with 0 percent by 3 seconds for {_z}
remove {_z} from {combat::*}
else:
if {_x} is 0:
remove {_z} from {combat::*}




Opublikowano

@klosowskipl tym "błędem" się nie przejmuj to jest tylko informacja. A co do tego blokowania wchodzenia to zara dam edita, ale nie jestem pewnien czy da się to zrobić :/

 

@Edit


on damage:	
	if attacker is a player:
		if victim is a player:
			set {combat.%victim%} to 20
			add victim to {combat::*}
			set {combat.%attacker%} to 20
			add attacker to {combat::*}
			display "&cANTY-LOGOUT" on bossbar with 100 percent by 1 seconds for victim
			display "&cANTY-LOGOUT" on bossbar with 100 percent by 1 seconds for attacker
on quit:
	if {combat.%player%} is larger than 0:
		kill the player
		set {combat.%player%} to 0
		remove player from {combat::*}
		broadcast "&cGracz &4%player% &cwylogowal sie podczas walki!"
on command:
	if {combat.%player%} is larger than 0:
		cancel event
		send "&cKomendy podczas walki sa zablokowane!"
on entering of region "spawn":
	if {combat.%player%} is larger than 0:
		cancel event
		send "&cPodczas walki nie mozna wejsc na spawna!"
on join:
	if {combat.%player%} is not set:
		set {combat.%player%} to 0	
every 1 seconds:
	loop {combat::*}:
		remove 1 from {combat.%loop-value%}
		set {_x} to {combat.%loop-value%}
		set {_z} to loop-value parsed as offlineplayer
		if {_z} is online:
			if {_x} is 19:
				display "&cANTY-LOGOUT" on bossbar with 95 percent by 1 seconds for {_z}
			if {_x} is 18:
				display "&cANTY-LOGOUT" on bossbar with 90 percent by 1 seconds for {_z}
			if {_x} is 17:
				display "&cANTY-LOGOUT" on bossbar with 85 percent by 1 seconds for {_z}
			if {_x} is 16:
				display "&cANTY-LOGOUT" on bossbar with 80 percent by 1 seconds for {_z}
			if {_x} is 15:
				display "&cANTY-LOGOUT" on bossbar with 75 percent by 1 seconds for {_z}
			if {_x} is 14:
				display "&cANTY-LOGOUT" on bossbar with 70 percent by 1 seconds for {_z}
			if {_x} is 13:
				display "&cANTY-LOGOUT" on bossbar with 65 percent by 1 seconds for {_z}
			if {_x} is 12:
				display "&cANTY-LOGOUT" on bossbar with 60 percent by 1 seconds for {_z}
			if {_x} is 11:
				display "&cANTY-LOGOUT" on bossbar with 55 percent by 1 seconds for {_z}
			if {_x} is 10:
				display "&cANTY-LOGOUT" on bossbar with 50 percent by 1 seconds for {_z}
			if {_x} is 9:
				display "&cANTY-LOGOUT" on bossbar with 45 percent by 1 seconds for {_z}
			if {_x} is 8:
				display "&cANTY-LOGOUT" on bossbar with 40 percent by 1 seconds for {_z}
			if {_x} is 7:
				display "&cANTY-LOGOUT" on bossbar with 35 percent by 1 seconds for {_z}
			if {_x} is 6:
				display "&cANTY-LOGOUT" on bossbar with 30 percent by 1 seconds for {_z}
			if {_x} is 5:
				display "&cANTY-LOGOUT" on bossbar with 25 percent by 1 seconds for {_z}
			if {_x} is 4:
				display "&cANTY-LOGOUT" on bossbar with 20 percent by 1 seconds for {_z}
			if {_x} is 3:
				display "&cANTY-LOGOUT" on bossbar with 15 percent by 1 seconds for {_z}
			if {_x} is 2:
				display "&cANTY-LOGOUT" on bossbar with 10 percent by 1 seconds for {_z}
			if {_x} is 1:
				display "&cANTY-LOGOUT" on bossbar with 5 percent by 1 seconds for {_z}
			if {_x} is 0:
				display "&aANTY-LOGOUT" on bossbar with 0 percent by 3 seconds for {_z}
				remove {_z} from {combat::*}
		else:
			if {_x} is 0:
				remove {_z} from {combat::*}


 

 

Masz takie coś, zobacz czy zadziała :)

Ps: masz region "spawn"?

Zarchiwizowany

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

×
×
  • Dodaj nową pozycję...