Easily, with a global variable, just put something like:
flares_fired=flares_fired+1
at the very beginning of the script. Beneath it, put something like:
?flares_fired == desired# : Player removeAction ActionId
you might want to define the variable flares_fired first, for instance in your init.sqs.
So, once you've fired it as many times as you wanted, the action is removed (however the final fired script obviously finishes first)
That should solve it
Wolfrug out.