Tell, it's some c-sharp code, so you need to make a new file called the same name as the mission you want to play but with the file suffix '.cs' on the end. Also place it in the same directory as your .mis file. Paste this text into the empty file, say 'mission1.mis', save it and play 'mission1'.
using System;
using maddox.game;
using maddox.game.world;
public class Mission : maddox.game.AMission
{
public override void OnAircraftDamaged(int missionNumber, string shortName, AiAircraft Aircraft, AiDamageInitiator DamageFrom, part.NamedDamageTypes WhatDamaged)
{
base.OnAircraftDamaged(missionNumber, shortName, Aircraft, DamageFrom, WhatDamaged);
if (DamageFrom.Player != null )
{
GamePlay.gpLogServer (null, "{0} hits {1} : {2} \n", new object [] {DamageFrom.Player, shortName, WhatDamaged});//Test
}
}
}
I hope that helps, else search here for Frogbar where I showed something similar.