on damage:
victim is player
attacker is player
if {lastid::%attacker%} is set:
stop
create a citizen named "%victim%" at location of attacker
set {lastid::%attacker%} to last created citizen id
hide citizen {lastid::%attacker%} from all players
reveal citizen {lastid::%attacker%} from attacker
command /resetbot:
trigger:
if {lastid::%player%} is set:
despawn citizen {lastid::%player%}
clear {lastid::%player%}
else:
send "&cNie miales zadnego bota"
on quit:
if {lastid::%player%} is set:
despawn citizen {lastid::%player%}
clear {lastid::%player%}
every 1 tick:
loop all players:
if {lastid::%loop-player%} is set:
if loop-player's pitch is not -90:
set {locc::%loop-player%} to location 3 blocks up citizen {lastid::%loop-player%}
teleport citizen {lastid::%loop-player%} to {locc::%loop-player%}
else:
set {locc::%loop-player%} to location 3 blocks under citizen {lastid::%loop-player%}
teleport citizen {lastid::%loop-player%} to {locc::%loop-player%}
on npc left click:
add 1 to {autoban::killaura::%player%}
loop all players:
if loop-player has permission "helper.check":
send "&4AntyCheat: &7Gracz &c%player% &7uderzyl bota (&3%{autoban::killaura::%player%}%&7/&45&7)" to loop-player
if {autoban::killaura::%player%} is more than 4:
set {autoban::killaura::%player%} to 0
despawn citizen {lastid::%player%}
clear {lastid::%player%}
execute server command "c %player%"
Ogolnie wszystko dziala lecz nie wiem czemu ale ciagle gdy ten bot sie respi to odrazu znika. Prosze o pomoc
Pytanie
JanekMaSkrypta_ 117
Witam mam dziwny problem z tym skryptem:
on damage: victim is player attacker is player if {lastid::%attacker%} is set: stop create a citizen named "%victim%" at location of attacker set {lastid::%attacker%} to last created citizen id hide citizen {lastid::%attacker%} from all players reveal citizen {lastid::%attacker%} from attacker command /resetbot: trigger: if {lastid::%player%} is set: despawn citizen {lastid::%player%} clear {lastid::%player%} else: send "&cNie miales zadnego bota" on quit: if {lastid::%player%} is set: despawn citizen {lastid::%player%} clear {lastid::%player%} every 1 tick: loop all players: if {lastid::%loop-player%} is set: if loop-player's pitch is not -90: set {locc::%loop-player%} to location 3 blocks up citizen {lastid::%loop-player%} teleport citizen {lastid::%loop-player%} to {locc::%loop-player%} else: set {locc::%loop-player%} to location 3 blocks under citizen {lastid::%loop-player%} teleport citizen {lastid::%loop-player%} to {locc::%loop-player%} on npc left click: add 1 to {autoban::killaura::%player%} loop all players: if loop-player has permission "helper.check": send "&4AntyCheat: &7Gracz &c%player% &7uderzyl bota (&3%{autoban::killaura::%player%}%&7/&45&7)" to loop-player if {autoban::killaura::%player%} is more than 4: set {autoban::killaura::%player%} to 0 despawn citizen {lastid::%player%} clear {lastid::%player%} execute server command "c %player%"Ogolnie wszystko dziala lecz nie wiem czemu ale ciagle gdy ten bot sie respi to odrazu znika. Prosze o pomoc
Odnośnik do komentarza
https://skript.pl/temat/27191-dziwny-problem/Udostępnij na innych stronach
2 odpowiedzi na to pytanie
Rekomendowane odpowiedzi