script request, constrained smooth

Is there any one that can make a constrained smooth(I need the z-axis matter of fact)for terrain editing for my game?
http://blenderartists.org/forum/showthread.php?t=123821
using a brush would be great, but I’m a beggar at this point as I don’t know python…and no time(ATM) to learn it.