well, that looks good, can you play the sounds your self?
BTW, try this:
addEvent( "Zomb_Moan", true )
function Zmoan ( ped, randnum )
if (isElement(ped)) then
local Zx,Zy,Zz = getElementPosition( ped )
local sound = playSound3D("sounds/mgroan"..randnum..".ogg", Zx, Zy, Zz)
setSoundMaxDistance(sound, 20)
end
end
addEventHandler( "Zomb_Moan", getRootElement(), Zmoan )