Instead of;
Code:
if (aircraft.Name() == GamePlay.gpPlayer().Place().Name())
try
Code:
if (aircraft == GamePlay.gpPlayer().Place())
By the way, GamePlay.gpPlayer() returns player of offline mission. This won't return a client player in MP, so if you are doing MP mission, this won't work.