title @a[distance=..250] times 20 100 20
title @a[distance=..250] subtitle {"text":"Not enough players"}
title @a[distance=..250] title {"text":"- DRAW -","bold":true,"color":"gray"}

execute at @s as @a[distance=..250] run function pctf:logic/game/end/start
execute store result storage pctf:stop_game input.map_id int 1 run scoreboard players get @s map_id
function pctf:stop_game with storage pctf:stop_game input

scoreboard players set #game_end temp -1

tellraw @a[tag=dev] ["",{"text":"not enough players on ","color":"red"},{"selector":"@s","color":"red"}]