Do you know about those singleplayer cheat codes? (don't worry, they do nothing in multiplayer mode) Well I discovered a neat trick that allows to you to use a set of cheat codes on the startup of each map, so that you don't ever have to type it in again or worry about ticket penalties.
And the great thing about this is that it can be applied to a profile, making it so that you can have it enabled for one profile but not on another. (You can create a whole bunch of profiles that activate certain cheats for example)
Go to the following directory:
"C:\Program Files\EA GAMES\Battlefield 1942\Mods\bf1942\Settings\Profiles\[Your profile name]" (without the qoutes. Replace "[Your profile name]" with the name of the profile of your choice, be sure the profile actually exists first!)
Once you are in the correct directory, open up the "BuddyList.con" file with notepad.
Type/paste a cheat code command. It works exactly as if you were to type this ingame. So make sure you type/paste it exactly as its suppposed to be (case sensitive too!) You can paste in multible cheat codes if you wish.
Once done save changes. Now start the game and select the profile you made the change to. Start a singleplayer game (both campaign mode and instant battle modes will work) and you will start with the cheat codes already on. Also note that when I used a cheat code in this manner, my game starts out with the Defeat message instead of the normal message that presents the ready button. This is only trading one dialog with another. Simply click "replay" as this is essentially no impact on the game you will start.
This in a way automatically avoids the cheat code penalties since you end the game instantly at startup due to instant defeat and are presented with the replay button which at this point is the same as a ready button. As an added bonus, you get an abort button at startup, so if you decide right after level loading to quit, you can do it from there.
Normally this con file adds buddies (the thing that lets you label people as a green arrow in the game's map and scoreboard), but since it seems this commnds are "auto typed" into the console, the game lets you execute any console command at the level's startup phase after level loading and before you spawn. Only commands that you can run in the console will work. Certain admin commands will only work if you are the host (not if its a dedicated server however) If a command is invalid or you don't have the server rights for it, nothing will happen. It will simply ignore it.
That's the rundown on how to do it and what you can and can't do with it.
Now a more advanced way is to create new profiles and name them "Activate_god_mode" for example (also profile names are SEPERATE from player names, so you don't have to worry about having a wierd soldier name). And then you can create another that activates a different code or pair of codes. Though I don't know how many of you actually use the singleplayer cheat codes. It could be usefull for people who are testing singleplayer maps, as this allows them to use god mode and other stuff to help them test certain things.
Hope this is usefull for somebody!
Thoereticly you can do this with Battlefield 2 as well (but BF2 doesn't have singleplayer cheat codes as far as I can tell, so you can only do other commands like certain client commands and such), but I havn't tried it, so your on your own with that game.
If you don't know the cheat codes, you can just google for them.