Firebird runs round and goes out!

Hello. Got a big problem with my Pontiac Firebird 3.2 V6 from 1991. The car has now run 170,000 km, just bought it. When it is cold it runs normal. But sobalt the car has operating temp. and I drive to the traffic light it goes out. If I then start it again, but it does not run really round again. Since it is an automatic, this is really terrible with the constant going out. Who can tell me what the problem is here. The ignition maybe? Please help me! eu me over every answer! Greet Alex