Originally Posted by bl4nk
You could probably do this a better a way by checking how many flares a player has active (using the m_hOwnerEntity datamap), and if they have over X active, remove all of them for that player. That way those people who are shooting them to actually play the game won't get denied their legit flare.
This is a good idea, but the probability of a legitimate flare disappearing when sm_fe_rate is set to a reasonable interval is so low as to not justify the computational expense of doing so.
Ideally, there would be an entity creation hook for TF2...