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/give/default
execute as @a[distance=..250] if score @s ctf_ID = @n[tag=temp] ctf_ID run tellraw @s ["",{"selector":"@n[tag=temp]","color":"white"},{"text":"'s","color":"white"},{"text":" team received ","color":"aqua"},{"text":"x1 Lucky Block","color":"yellow"},{"text":"!","color":"aqua"}]
tag @s remove temp