on damage:
if attacker is player:
if victim is player:
if {antylogout::%victim%} is not set:
send "&cJestes podczas walki! Nie logaj!" to victim
set {antylogout::%victim%} to 20
every 1 seconds:
loop all players:
if {antylogout::%loop-player%} is set:
if {antylogout::%loop-player%} is greater than 0:
remove 1 from {antylogout::%loop-player%}
set action bar of loop-player to "&c&lAntyLogout &7&l(&4%{antylogout::%loop-player%}%&8:&4&k99&7&l)"
else:
clear {antylogout::%loop-player%}
send "&aSkonczyles walczyc." to loop-player
set action bar of loop-player to "&a&lAntyLogout"
on quit:
if {antylogout::%player%} is set:
kill player
broadcast "&cGracz %player% wylogowal sie podczas walki!"
on death:
clear {antylogout::%victim%}
on command:
if {antylogout::%player%} is set:
if command is not "helpop":
cancel event
send "&4Uzywanie komend podczas pvp jest niemozliwe. Jedynie /helpop."
on rightclick on ender chest:
if {antylogout::%player%} is set:
cancel event
send "&cPodczas walki nie mozna otwierac enderchesta!"
on place:
if player's y-coordinate is less than 45:
if {antylogout::%player%} is set:
cancel event
send "&cPodczas walki nie mozna stawiac blokow ponizej 45 poziomu!"
Pytanie
Daanny 0
Naprawi mi ktoś te błędy Zarejestruj się lub zaloguj, aby zobaczyć ukrytą treść!
on damage:
if attacker is player:
if victim is player:
if {antylogout::%victim%} is not set:
send "&cJestes podczas walki! Nie logaj!" to victim
set {antylogout::%victim%} to 20
every 1 seconds:
loop all players:
if {antylogout::%loop-player%} is set:
if {antylogout::%loop-player%} is greater than 0:
remove 1 from {antylogout::%loop-player%}
set action bar of loop-player to "&c&lAntyLogout &7&l(&4%{antylogout::%loop-player%}%&8:&4&k99&7&l)"
else:
clear {antylogout::%loop-player%}
send "&aSkonczyles walczyc." to loop-player
set action bar of loop-player to "&a&lAntyLogout"
on quit:
if {antylogout::%player%} is set:
kill player
broadcast "&cGracz %player% wylogowal sie podczas walki!"
on death:
clear {antylogout::%victim%}
on command:
if {antylogout::%player%} is set:
if command is not "helpop":
cancel event
send "&4Uzywanie komend podczas pvp jest niemozliwe. Jedynie /helpop."
on rightclick on ender chest:
if {antylogout::%player%} is set:
cancel event
send "&cPodczas walki nie mozna otwierac enderchesta!"
on place:
if player's y-coordinate is less than 45:
if {antylogout::%player%} is set:
cancel event
send "&cPodczas walki nie mozna stawiac blokow ponizej 45 poziomu!"
Odnośnik do komentarza
Udostępnij na innych stronach
1 odpowiedź na to pytanie
Rekomendowane odpowiedzi
Dołącz do dyskusji
Możesz dodać zawartość już teraz a zarejestrować się później. Jeśli posiadasz już konto, zaloguj się aby dodać zawartość za jego pomocą.