Onarun. When you cant rev past 3 grand and you blow heaps of black smoke then your Air flow meter is gone. That are the symptoms of a dead AFM and the reason why the engine does that is to run extra rich and protect the car as it doesnt get any signal from the AFM and it needs to protect it by going into limp mode.