From 812971a77cc1d9a5f989b9b8f0279bf34ffd1e8e Mon Sep 17 00:00:00 2001 From: Anorak_1 Date: Sat, 3 Dec 2022 21:15:25 +0000 Subject: [PATCH] Update 'plugins/scripts/scripts/skybattle.sk' --- plugins/scripts/scripts/skybattle.sk | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/plugins/scripts/scripts/skybattle.sk b/plugins/scripts/scripts/skybattle.sk index 0ac4eb8..c5d750d 100644 --- a/plugins/scripts/scripts/skybattle.sk +++ b/plugins/scripts/scripts/skybattle.sk @@ -90,6 +90,7 @@ command /minigame_skybattle_start: while {skybattle::game_on} is "True": if {skybattle::game_status} is "init": execute console command "/scoreboard players set MaxKolo XD 3" + execute console command "/papik_maxkol 3" resetplayers() resetteams() @@ -120,9 +121,10 @@ command /minigame_skybattle_start: if {skybattle::current_arena} is 1: set {skybattle::stop_players} to "True" execute console command "/scoreboard players set Kola XD 1" + execute console command "/papik_kolo 1" setbordercenter() changeborder(200, 1) - wait 1 second + wait 3 second spawnteam(1, 1) #team, spawner spawnteam(2, 2) spawnteam(3, 3) @@ -137,9 +139,10 @@ command /minigame_skybattle_start: if {skybattle::current_arena} is 2: set {skybattle::stop_players} to "True" execute console command "/scoreboard players set Kola XD 2" + execute console command "/papik_kolo 2" setbordercenter() changeborder(200, 1) - wait 1 second + wait 3 second spawnteam(1, 8) spawnteam(2, 6) spawnteam(3, 7) @@ -154,9 +157,10 @@ command /minigame_skybattle_start: if {skybattle::current_arena} is 3: set {skybattle::stop_players} to "True" execute console command "/scoreboard players set Kola XD 3" + execute console command "/papik_kolo 3" setbordercenter() changeborder(200, 1) - wait 1 second + wait 3 second spawnteam(1, 6) spawnteam(2, 4) spawnteam(3, 9) @@ -507,6 +511,7 @@ on block place of concrete: remove 1 of event-block from player's inventory on death of player: # victim, attacker + make console execute command "/scoreboard players add @a[gamemode=survival] Survivalgames 1" add victim's uuid to {skybattle::deadplayers::*} launch ball large coloured yellow fading to light green and black at victim's location with duration 0 remove victim from {skybattle::%team of victim%::alive_players} @@ -522,7 +527,7 @@ on death of player: # victim, attacker set {skybattle::teams_alive_num} to {skybattle::teams_alive_num} - 1 remove team of victim from {skybattle::teams_alive::*} set {_vteam} to team of victim - broadcast "Zemřel celý tým %get_team({_vteam})%" + #broadcast "Zemřel celý tým %get_team({_vteam})%" on respawn: if {skybattle::deadplayers::*} contains player's uuid: