mam tu jakiś mój stary skrypt, zawiera również odpychanie od lini na spawnie blokowanie komend blokow iwg
options:
blocks: ender chest
cmds: "helpop" or "msg" or "m" or "r" or "efekty" or "tell"
on damage of player:
if {AntyLogaut::%victim%} is not set:
set {AntyLogaut::%victim%} to 20
send "&cJestes podczas walki!" to victim
while {AntyLogaut::%victim%} is set:
if {AntyLogaut::%victim%} > 0:
set action bar of victim to "&7AntyLogaut: &c%{AntyLogaut::%victim%}%&cs"
wait 1 second
remove 1 from {AntyLogaut::%victim%}
else:
send "&aSkonczyles Walczyc!" to victim
set action bar of victim to "&7AntyLogaut: &aSkonczyles walczyc"
delete {AntyLogaut::%victim%}
else:
set {AntyLogaut::%victim%} to 20
set action bar of victim to "&7AntyLogaut: &c%{AntyLogaut::%victim%}%&cs"
on place:
if {AntyLogaut::%player%} is set:
if y-coord of event-block < 45:
cancel event
send "&cNie mozesz budowac ponizej 45 poziomu podczas walki!"
on quit:
if {AntyLogaut::%player%} is set:
delete {AntyLogaut::%player%}
kill player
send "&c%player% wylogowal sie podczas walki!" to all players
on join:
delete {AntyLogaut::%player%}
on right click:
if {AntyLogaut::%player%} is set:
if event-block is {@blocks}:
cancel event
send "&cPodczas walki nie mozesz tego otwierac! (&6%event-block%&c)"
on death of player:
if {AntyLogaut::%victim%} is set:
delete {AntyLogaut::%victim%}
on entering of "spawn":
if {AntyLogaut::%player%} is set:
cancel event
push player (direction from (location(0, 5, 0)) to location of player) at speed 2
on command:
if {AntyLogaut::%player%} is set:
if command is not {@cmds}:
cancel event
send "&cNie mozesz uzywac tej komendy podczas walki! &c(&6%command%&c)"