Ok, you have two problems here.
1.) allowDamage does not work in multi-player due to it being run on local machines only.
2.) The following will prevent any unit from taking damage, however, it must be implemented in the init line of the unit whilst editing the mission in the in-game editor. You cannot implement this from the in-game admin console.
this addEventHandler ["HandleDamage", {false}];