It depends. You can't do general map-hack program. As all islands and maps are different. However you could theoretically inject code into a special gametype/mapserie and exploit weaknesses in the scripts. However, the best thing if you got 10 exactly same maps that you just "hack" one of them and make 9 copies and replace the old files using the same names.