To stay out of a girls friend zone you just need to not care about her in any way (and obviously show that in all your actions).
I spent 2 years trying to staying out of the friend zone of this girl I know... but it didn't help because I never did hook up with her. I don't think I would...