Call of Duty Note: The cheat codes only work in Single player, not in Multiplayer.
Right-click on your Call of Duty icon on your desktop (or wherever you put it), then select "Properties" under the "Shortcut" tab, go to "Target" then add this command line parameter (without the quotes) “+set monkeytoy 0 + set sv_cheats 1”
Once click Apply or Ok.
Note:
If the game responds “sv_cheats are read only”, then try typing this “setrandom sv_cheats 1” (without the quotes) in the console before activating the codes.
If you, on the other hand, are getting "cheats are not enabled on this server" message then type: "spdevmap burnville" (without the quotes).
Once all done, start the game. After you've spawned in the game, press the ~ (top left corner of your keyboard - most of them) during the game play to display the console window. Enter one of the following codes at the console window to activate the corresponding cheat function
Codes: What they do:
give - spawns indicated item
give all - gives all items (DO NOT TRY THIS, crashes the game)
give ammo - gives ammunition (DO NOT TRY THIS, crashes the game)
give health - get full health
god - god mode
notarget - ignored by enemy. The enemies won't shoot you
noclip - No clipping mode. You can go straight through walls