Yes you can get marry in malaysia wth student visa and abt nationality I m nt sure you hve to stay in malaysia fr 5 years thn.
Can I Get Nationality Of Malaysia After Marrying With Malay National? I Am A Pakistani Student Here In Malaysia?
You are a Pakistani national and student in Malaysia that means you are on study visa. According to the rules, you cannot marry in Malaysia during study visa so buy a new visa.