If you want to calculate hydrogen bond invloving residue there are two steps >From gmx hbond you can obtain an xpm file where hydrogen bond existance mad is plotted. Then calculate the percentage of hydrogen bond involving residues from script given by justin.