First of all, don't do it if you really like to write code. Management is something completely different, so you'll get nothing but pain.
Second, never approach management like you approach coding. People are complicated and irrational.
Third, try to turn your department into a gang and yourself into a gang leader.