Is there a name for the cream you apply before sex that prevents std's?

Does not exist. There is no cream that will prevent sexually transmitted infections. You may be thinking of spermicide which helps decrease the risk of pregnancy.
Called a condom. Condoms are effective in preventing most STDs second only to abstinence. There is no cream which can be guaranteed to prevent transmission of STDs.