In GTA 2 you enter cheats through the name field — type the code as your player name when you set up the game.