1. You must be covered by the Employment Act (your salary not more than RM1500)
2. If you are not covered, there must be a clause about maternity benefit and you will be entitled to maternity leave with pay.
3. If you are still employed at the time of your confinement.
If you fulfill the above, you may be entitled to get maternity allowance.