Witam, mam taki problem że podczas wali jak gracz sie wyloguje to tepa jego itemy na spawn
on damage:
if attacker is player:
if victim is player:
if {antylogout::%victim%} is not set:
send "&cJestes podczas walki! Nie logaj!" to victim
send "&cJestes podczas walki! Nie logaj!" to attacker
set {antylogout::%victim%} to 30
set {antylogout::%attacker%} to 30
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%}
send action bar "&c&lAntyLogout &6&l[&e%{antylogout::%loop-player%}%&6sek&6&l]" to loop-player
else:
clear {antylogout::%loop-player%}
send "&aSkonczyles walczyc." to loop-player
send action bar "&aSkonczyles walczyc." to loop-player
on quit:
if {antylogout::%player%} is set:
teleport player to spawn
kill player
broadcast "&c%player% &7wylogowal 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 zablokowane."
on place:
if player's y-coordinate is less than 30:
if {antylogout::%player%} is set:
cancel event
send "&cPodczas walki nie stawiac blokow ponizej 30 poziomu!"
Te dwie wartowści Teleport player to spawn i kill player próbowałem ustawić na odwrót ale wtedy wypadają jego itemy przy graczu lecz po wejscu na serwer nie jest na spawn
Pytanie
Krzysiekkk 0
Witam, mam taki problem że podczas wali jak gracz sie wyloguje to tepa jego itemy na spawn
on damage: if attacker is player: if victim is player: if {antylogout::%victim%} is not set: send "&cJestes podczas walki! Nie logaj!" to victim send "&cJestes podczas walki! Nie logaj!" to attacker set {antylogout::%victim%} to 30 set {antylogout::%attacker%} to 30 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%} send action bar "&c&lAntyLogout &6&l[&e%{antylogout::%loop-player%}%&6sek&6&l]" to loop-player else: clear {antylogout::%loop-player%} send "&aSkonczyles walczyc." to loop-player send action bar "&aSkonczyles walczyc." to loop-player on quit: if {antylogout::%player%} is set: teleport player to spawn kill player broadcast "&c%player% &7wylogowal 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 zablokowane." on place: if player's y-coordinate is less than 30: if {antylogout::%player%} is set: cancel event send "&cPodczas walki nie stawiac blokow ponizej 30 poziomu!"
Edytowane przez xNightPower_Te dwie wartowści Teleport player to spawn i kill player próbowałem ustawić na odwrót ale wtedy wypadają jego itemy przy graczu lecz po wejscu na serwer nie jest na spawn
Umieszczam kod w code.
Odnośnik do komentarza
https://skript.pl/temat/44131-problem-z-antylogautem/Udostępnij na innych stronach
22 odpowiedzi na to pytanie
Rekomendowane odpowiedzi