$scoreboard players remove #time game$(map_id) 1

$execute if score #time game$(map_id) matches 15 run function pctf:logic/game/announce_time {map_id: "$(map_id)"}
$execute if score #time game$(map_id) matches 5 run function pctf:logic/game/announce_time {map_id: "$(map_id)"}
$execute if score #time game$(map_id) matches 1 run function pctf:logic/game/announce_time {map_id: "$(map_id)"}