tag @s add temp
execute as @a[distance=..250] if score @s ctf_ID = @n[tag=temp] ctf_ID run function pctf:logic/items/lucky_block/outcomes/positive/team/explosive_arrows/tag
tag @s remove temp

tellraw @a[distance=..250] ["",{"selector":"@s","color":"white"},{"text":"'s","color":"white"},{"text":" team has","color":"aqua"},{"text":" Explosive Arrows","color":"red"},{"text":" for a short time!","color":"aqua"}]