Over the five generations of Pokémon games that have been released around the world, several of the TM's have changed from generation to generation. TM24 has only contained two moves: Thunderbolt, which is contained in TM24 in all Generations except for Generation II. In the second generation TM24 contained Dragonbreath.
Game Boy Advance Games
En lieu of being awarded after defeating Wattson, the Mauville Gym Leader, Wattson will give you TM24 after successfully dealing with the situation in New Mauville in Ruby, Sapphire and Emerald. TM24 is also available at the Mauville Game Corner for 4000 Coins. 4000 Coins is also the price required to get TM24 at the Celadon Game Corner in Fire Red and Leaf Green.
Nintendo Game Cube Games
TM24 is one of the Mt. Battle prizes in both Pokémon Colosseum and Pokémon XD: Gale of Darkness. In both games TM24 can be purchased by turning in 4,000 Poké Coupons. Additionally, TM24 can be found within the Cipher Key Lair.
TM24 can be found at Valley Windworks behind the main Valley Windworks building along a portion of the route that requires Surf to reach in Diamond, Pearl and Platinum. TM24 can also be obtained at the Veilstone Game Corner for Ten Thousand Coins.
TM24 is available in Pokémon Battle Revolution by turning in 12,000 Poké Coupons.
With the new mechanics involving Technical Machines, TM24 can only be obtained once but unlike the previous four Generations, all Technical Machines can be used multiple times starting with this Generation.