variables: {sejmi.%player%} = false options: czas: 20 on damage of player: attacker is player create timed bar with text " &c&o&lWalka trwa &7&o(&3&o%attacker%&7&o) &8&l» &a&l&oNie logaj przez: &4&l&o20" to victim for 1 seconds create timed bar with text " &c&o&lWalka trwa &7&o(&3&o%victim%&7&o) &8&l» &a&l&oNie logaj przez: &4&l&o20" to attacker for 1 seconds set {pvp.%victim%.czas} to {@czas} set {pvp.%attacker%.czas} to {@czas} set {sejmi.%attacker%} to true set {sejmi.%victim%} to true on command: loop all players: if {sejmi.%player%} is true: if command isn't "r" or "helpop" or "topki" or "sejmi": cancel event send " &b&l&oJestes podczasz walki! Nie mozesz uzywac komend, dozwolone komendy: &c&l&ohelpop oraz msg" on every a second: loop all players: if {pvp.%loop-player%.czas} > 0: remove 1 from {pvp.%loop-player%.czas} create timed bar with text " &c&o&lWalka trwa &8&l» &a&l&oNie logaj przez: &4&l&o%{pvp.%loop-player%.czas}%.&4&o&k72" to loop-player for 1 seconds if {pvp.%loop-player%.czas} = 0: delete {pvp.%loop-player%.czas} create timed bar with text " &2&l&oWalka zakonczona" to loop-player for 1 seconds set {sejmi.%loop-player%} to false on quit: loop all players: if {sejmi.%loop-player%} is true: set {pvp.%loop-player%.czas} to false kill player delete {pvp.%loop-player%.czas} broadcast " &a&l&oGracz &6&l&o%player% &a&l&owylogowal sie podczas walki" set {sejmi.%loop-player%} to false on place: if {sejmi.%player%} is true: cancel event send " &c&l&oBudowanie podczas pvp jest zablokowane!" on death of player: loop all players: if {sejmi.%loop-player%} is true: set {pvp.%loop-player%.czas} to false delete {pvp.%loop-player%.czas} attacker is player create timed bar with text " &2&l&oWalka zakonczona" to loop-player for 1 seconds set {pvp.%loop-player%.czas} to false delete {pvp.%loop-player%.czas} set {sejmi.%loop-player%} to false