Cześć przerobi mi ktos ten skrypt? Bo jak kogos uderze to spami np. uderze 2 razy to 2 razi pisze. Prosze o przeprawe zeby jak uderzymy to raz napisalo ze jestes podczas walki nie logaj..
Kod:
Spoiler
options:
logo:&8[&6AntyLogout&8]
ochrona:1 minute
walkatxt:&4Jestes w walce, nie logaj !
koniecwalki:&aNie jestes juz w walce, mozesz logac !
czaswalki:20
txtlogout:&aGracz &c%player% &awylogowal sie podczas walki !
on first join:
wait 10 second
set {ochrona.%player%} to true
send "{@logo} &aJestes chroniony przez {@ochrona}"
wait {@ochrona}
set {ochrona.%player%} to false
on damage:
victim is player
attacker is player
if {ochrona.%victim%} is true:
cancel event
if {ochrona.%attacker%} is true:
cancel event
else:
if {inbattle.%victim%} is true:
set {walka.%victim%} to {@czaswalki}
stop
send "{@logo} {@walkatxt}" to victim
set {inbattle.%victim%} to true
set {walka.%victim%} to {@czaswalki}
while {walka.%victim%} is more than 0:
{walka.%victim%} is not set:
stop
subtract 1 from {walka.%victim%}
wait 1 second
delete {inbattle.%victim%}
delete {walka.%victim%}
send "{@logo} {@koniecwalki}" to victim
on damage:
victim is player
attacker is player
if {ochrona.%victim%} is true:
cancel event
if {ochrona.%attacker%} is true:
cancel event
else:
if {inbattle.%attacker%} is true:
set {walka.%attacker%} to {@czaswalki}
send "{@logo} {@walkatxt}" to attacker
stop
send "{@logo} {@walkatxt}" to attacker
set {inbattle.%attacker%} to true
set {walka.%attacker%} to {@czaswalki}
while {walka.%attacker%} is more than 0:
{walka.%attacker%} is not set:
stop
subtract 1 from {walka.%attacker%}
wait 1 second
delete {inbattle.%attacker%}
delete {walka.%attacker%}
send "{@logo} {@koniecwalki}" to attacker
on quit:
if {inbattle.%player%} is true:
kill player
broadcast "{@logo} {@txtlogout}"
delete {inbattle.%player%}
delete {walka.%player%}
on death:
if {inbattle.%player%} is true:
delete {inbattle.%victim%}
delete {walka.%victim%}
delete {inbattle.%attacker%}
delete {walka.%attacker%}
on join:
{inbattle.%player%} is set:
delete {inbattle.%player%}
{walka.%player%} is set:
delete {walka.%player%}
Pytanie
mateuszeqq13212 18
Cześć przerobi mi ktos ten skrypt? Bo jak kogos uderze to spami np. uderze 2 razy to 2 razi pisze. Prosze o przeprawe zeby jak uderzymy to raz napisalo ze jestes podczas walki nie logaj..
Kod:
options:
logo:&8[&6AntyLogout&8]
ochrona:1 minute
walkatxt:&4Jestes w walce, nie logaj !
koniecwalki:&aNie jestes juz w walce, mozesz logac !
czaswalki:20
txtlogout:&aGracz &c%player% &awylogowal sie podczas walki !
on first join:
wait 10 second
set {ochrona.%player%} to true
send "{@logo} &aJestes chroniony przez {@ochrona}"
wait {@ochrona}
set {ochrona.%player%} to false
on damage:
victim is player
attacker is player
if {ochrona.%victim%} is true:
cancel event
if {ochrona.%attacker%} is true:
cancel event
else:
if {inbattle.%victim%} is true:
set {walka.%victim%} to {@czaswalki}
stop
send "{@logo} {@walkatxt}" to victim
set {inbattle.%victim%} to true
set {walka.%victim%} to {@czaswalki}
while {walka.%victim%} is more than 0:
{walka.%victim%} is not set:
stop
subtract 1 from {walka.%victim%}
wait 1 second
delete {inbattle.%victim%}
delete {walka.%victim%}
send "{@logo} {@koniecwalki}" to victim
on damage:
victim is player
attacker is player
if {ochrona.%victim%} is true:
cancel event
if {ochrona.%attacker%} is true:
cancel event
else:
if {inbattle.%attacker%} is true:
set {walka.%attacker%} to {@czaswalki}
send "{@logo} {@walkatxt}" to attacker
stop
send "{@logo} {@walkatxt}" to attacker
set {inbattle.%attacker%} to true
set {walka.%attacker%} to {@czaswalki}
while {walka.%attacker%} is more than 0:
{walka.%attacker%} is not set:
stop
subtract 1 from {walka.%attacker%}
wait 1 second
delete {inbattle.%attacker%}
delete {walka.%attacker%}
send "{@logo} {@koniecwalki}" to attacker
on quit:
if {inbattle.%player%} is true:
kill player
broadcast "{@logo} {@txtlogout}"
delete {inbattle.%player%}
delete {walka.%player%}
on death:
if {inbattle.%player%} is true:
delete {inbattle.%victim%}
delete {walka.%victim%}
delete {inbattle.%attacker%}
delete {walka.%attacker%}
on join:
{inbattle.%player%} is set:
delete {inbattle.%player%}
{walka.%player%} is set:
delete {walka.%player%}
Edytowane przez mateuszeqq13212Odnośnik do komentarza
https://skript.pl/temat/20588-antylogout-przerobienie/Udostępnij na innych stronach
6 odpowiedzi na to pytanie
Rekomendowane odpowiedzi