187 is the code number for murder that police radio dispatch uses. Numbers are used instead of words for most crimes. The gangbangers caught on and started using it as part of their vocabulary
http://en.wikipedia.org/wiki/187_(murder)
I think 5-0 is from Hawaii Five-0 the tv series