From 3ba4c8c2bd77272605ef07766bab6cdba4091307 Mon Sep 17 00:00:00 2001 From: Anorak_1 Date: Mon, 14 Nov 2022 12:47:24 +0100 Subject: [PATCH] ok this is the one :D --- plugins/scripts/scripts/skybattle.sk | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/plugins/scripts/scripts/skybattle.sk b/plugins/scripts/scripts/skybattle.sk index 1ef3e0d..f79a7ec 100644 --- a/plugins/scripts/scripts/skybattle.sk +++ b/plugins/scripts/scripts/skybattle.sk @@ -59,6 +59,7 @@ command /minigame_skybattle_start: # časomíra podle které se nastaví zbytek skriptu set {skybattle::time} to 270 clear {skybattle::gaming_players::*} + resetborder() loop 10 times: loop entries of team "IDList%loop-number%": add loop-value-2 to {skybattle::gaming_players::*} @@ -73,9 +74,10 @@ command /minigame_skybattle_start: send subtitle "Teleportuji" to all players wait 1 second set {skybattle::intro} to "True" - set gamemode of {skybattle::gaming_players::*} to survival + set {skybattle::gaming_players::*}'s gamemode to spectator teleport {skybattle::gaming_players::*} to {skybattle::introlocation} set {skybattle::stop_players} to "True" + set gamemode of {skybattle::gaming_players::*} to survival hide {skybattle::gaming_players::*} wait 1 second send "§e----------- Oblačný Souboj -----------" to {gaming_players::*} @@ -93,11 +95,14 @@ command /minigame_skybattle_start: resetborder() set {skybattle::current_arena} to 0 + set {skybattle::gaming_players::*}'s gamemode to spectator clear inventory of {skybattle::gaming_players::*} set {skybattle::game_status} to "next" if {skybattle::game_status} is "next": + set {skybattle::gaming_players::*}'s gamemode to spectator + resetborder() loop 10 times: clear {skybattle::IDList%loop-number%::alive_players::*} set {skybattle::IDList%loop-number%::alive_number} to 4 @@ -110,7 +115,6 @@ command /minigame_skybattle_start: clear inventory of {skybattle::gaming_players::*} if {skybattle::current_arena} is 1: - resetborder() set {skybattle::stop_players} to "True" execute console command "/scoreboard players set Kola XD 1" setbordercenter() @@ -128,7 +132,6 @@ command /minigame_skybattle_start: spawnteam(10, 10) if {skybattle::current_arena} is 2: - resetborder() set {skybattle::stop_players} to "True" execute console command "/scoreboard players set Kola XD 2" setbordercenter() @@ -146,7 +149,6 @@ command /minigame_skybattle_start: spawnteam(10, 9) if {skybattle::current_arena} is 3: - resetborder() set {skybattle::stop_players} to "True" execute console command "/scoreboard players set Kola XD 3" setbordercenter()