You could declare this damagescript in enemies text for that:
hitF.c
void main()
{//
void self = getlocalvar("self"); //Get calling entity.
int StuTime = getentityproperty(self, "freezetime");
if(StuTime > 0){
changeentityproperty(self, "nodrop", 1);
} else {...