Medieval II: Total War has a set of console commands you can enter for various effects. Some commonly cited ones include add_money for a cash boost, process_cq to instantly finish construction in a city, and a handful of themed codes like vindaloo for rocket elephants, madras for gun elephants, and rogan for cannon elephants.
To use them, you typically need to enable the console first, and results can vary between versions.