Making a three-round-burst code

How would I make this for a SWEP I’m creating? Just wondering.

Well, what are you using to shoot a bullet? You can just call that function three times at a slight delay, using a delay variable and the think hook.

nvm, got a code for it to work via timers

Wrong. You DON’T use timers in SWEPs’ Primary/SecondaryAttack because it will mess up prediction and make your weapon work like crap for someone with relatively high ping.