Rapper 50 Cent has been ordered to stay away from drugs and take an anger management course, if he wants to avoid spending time in jail.

The US star had been charged with assaulting three women after jumping into the crowd at a concert last year. Two women claimed that the rapper - real name Curtis Jackson - had trampled on them, while one claimed that she had been punched.

The incident happened after an audience member threw water at 50 Cent during his performance.

A judge told Jackson that he would also have to make an educational anti-violence video, and agree to random drug testing over the next two years, according to BBC News Online.

The judge explained that if he kept to the conditions, the charges against the rapper would be dropped.