lBLE9UmC
Język: Skript
|
Autor: szoppracz07
variables: {pvp.%player%} = false on join: set {pvp.%player%} to false on damage of player: if {pvp.%victim%} is false: if attacker's nickname is victim's nickname: stop else: if attacker is player: if victim is player: set {pvp.%victim%} to true loop 7 times: set action bar of victim to "&c&l> > > Anty Logout < < <" wait 1 seconds set action bar of victim to "&6&l> > > Anty Logout < < <" wait 1 seconds set action bar of victim to "&a&l> > > Mozesz sie wylogowac < < <" set {pvp.%victim%} to false on damage: if {pvp.%attacker%} is false: if victim's nickname is attacker's nickname: stop else: if victim is player: if attacker is player: set {pvp.%attacker%} to true loop 7 times: set action bar of attacker to "&c&l> > > Anty Logout < < <" wait 1 seconds set action bar of attacker to "&6&l> > > Anty Logout < < <" wait 1 seconds set action bar of attacker to "&a&l> > > Mozesz sie wylogowac < < <" set {pvp.%attacker%} to false on join: if {pvp.%player%} is true: set {pvp.%player%} to false on quit: if {pvp.%player%} is true: strike lightning at player's location set {_x} to x-location of player set {_y} to y-location of player set {_z} to z-location of player add 2 to {_y} set block at player's location to air set block at location x-location of player, y-location of player, z-location of player to air set block at location {_x}, {_y}, {_z} to air set {_%player%.deadchest} to player's location set block at {_%player%.deadchest} to chest set {_%player%.deadchest.block} to block at {_%player%.deadchest} loop 36 times: set {_s} to slot loop-number -1 of player's inventory add {_s} to {_%player%.deadchest.block}'s inventory spawn armor stand at location at {_x}, {_y}, {_z} set {_%player%.deadarmor} to last spawned entity set {_%player%.deadarmor}'s helmet to player's helmet set {_%player%.deadarmor}'s chestplate to player's chestplate set {_%player%.deadarmor}'s leggings to player's leggings set {_%player%.deadarmor}'s boots to player's boots set {pvp.%player%} to false clear the player's inventory kill player broadcast "&c>>> &6Gracz &c&l%player% &6wylogowal sie podczas walki!" on command: if {pvp.%player%} is true: cancel event send "&c>>> Anty Logout - Nie mozesz uzyc tej komendy podczas walki!" to player