maybe the battery terminals need tightning up also follow the black wire from the battery and make sure it isnt a loose connection to the chassis ,remember always wire an amp to the ignition most amps have this feature ,normally - to - ,+ to + and a little bit of wire bridged fom + to ign on amp ,not straight as it will stay on constantly,and yer probly your alarm going off killed it,the clicking noise means your batt is dead nothing to worry about get a new one or jump start that one take for an hour drive to charge it but if still dead when you turn off get another or your alternator is fecked.or you have still somthing draining ,good luck