tag @s add llama_temp

execute as @a[distance=..250] unless score @s ctf_ID = @n[tag=llama_temp] ctf_ID at @n[tag=map_center] positioned ~ 160 ~ run function pctf:logic/items/lucky_block/outcomes/rare/llama_strike/summon

tellraw @a[distance=..250] ["",{"text":"WARNING!","bold":true,"color":"red"},{"text":"\n","color":"red"},{"text":"HEAT SEEKING LLAMAS","underlined":true,"color":"red"},{"text":" HAVE BEEN LAUNCHED BY ","color":"red"},{"selector":"@s","color":"white"}]
execute at @n[tag=map_center] run playsound minecraft:item.goat_horn.sound.7 player @a ~ 150 ~ 10 1

tag @s remove llama_temp