You can try cleaning the area with Natures Miracle, and using a Feliway Defuser, (both are available at pet stores or online), but Heartfluttersflyawayplz may be right.
yeah , sorry to say but you need to replace the carpt that smell never goes away and tha pad under it will keep it there. so only way to stop that i have found is all new carpet and pad.