Rapper gets 20 years after writing shooting song