C++ pPlayer Faction?

What would be the code to make it so that the player only teleports to that location depending on the faction of which they represent?

Compare player->GetTeam() with ALLIANCE or HORDE


— Canned message start —
This thread is not related to the official Trinity codebase and was moved to the Custom Code section.
Please read the stickies next time.
— Canned message end —