Shooting intervals

How can I make it so that the gun shoots only at certain times. Like only after the shooting animation is over. Like it can only shoot at the first frame or something. THanks. If it requires python, could you be so kind as to provide either knowledge or a script, thanks.:o