I enjoy that focal length and recently had up to 3 24mm lenses... all f/2.8 to keep them small and light. All full-frame though I don't shoot full frame anymore (haven't shot film in a few years).
The ones I have had were:
SMC-K 24 2.8 (great lens)
Rokinon 24 2.8 (made by Tokina, it's a rebadged Tokina RMC)
Vivitar MC 24 2.8 (made by Cosina, excellent lens, sold it because my Tokina is basically identical, has A contacts)
The ones I still have:
SMC-A 24 2.8 (excellent, but mine has non-working A contacts so it's basically a K or M series functional lens with A coatings. It's also up for sale very cheap in the Marketplace
)
Tokina 24 2.8 - Identical to the Vivitar I sold, including the colors and fonts, as well as the coating reflections. - which tells me this lens was probably a joint collaboration between Cosina and Tokina, or maybe Tokina has been rebadging lenses longer than we thought! I kept this one because it had a Ricoh pin and when I removed it I made the aperture stepless - not on purpose. So it wouldn't be worth much selling and since it's a fantastic performer I'm happy with it! Focuses VERY close and renders beautifully, but the colors of course aren't as nice as a real Pentax lens.
All the aforementioned lenses are manual focus. If you want an autofocus 24, you basically have 3 options:
1. The Sigma 24 2.8 Super Wide II AF - very good by all accounts except the build quality which is a bit sub-par. But they have lasted well from what we can tell. They can cost about 150-200 dollars in the used market, but are getting pretty rare.
2. The Pentax FA* 24mm f2 - this will cost you 400-600 dollars depending on condition. Very nice lens, I wish I had one. On the downside, it's a bit large, and a bit soft wide open, but it still works well because the colors are beautiful and contrasty even wide open.
3. The Sigma 24 1.8 - it could cost you around 200 dollars, maybe a bit more, maybe a bit less. It's a very big lens though, so I'm not sure if it's worth having over the smaller older Sigma.
That's about all I know about 24mm lenses for Pentax K... there's more older models by Rikenon (I think it's a rebadged Tokina as well), Cimko, Miranda (also made by Cosina like my Vivitar was), and several different Vivitar-branded lenses (they changed every year it seems...) but I don't have experience with those. M24 lenses are also out there but I personally don't like those especially for lenses that you would use at f5.6 and smaller.