How to use command blocks to make a private faction

//ads -- adsterra.com -- native banner
?>
So basically I want to use a command block to tp anybody but me out of my faction upon entering.
What my command block says.
/testfor [r=5,Name=Gamersfunhouse]*
*I also have this for every other player on the server
nothing will work... I have tried to do somthing like this in it
/testfor [r=5,Name=<Player Name>, tp <coordinates>
Yet again to no avail. Please help I am sick of this.
Pictures about "How to use command blocks to make a private faction"



Can you make a house with a command block?
First, you need to program the command block with a /summon command that will be used to build the house. This /summon command will be run when the command block is activated. So, stand in front of the command block with your pointer (the plus sign) on the command block and click on the right mouse button.How do you enable command blocks on a private server?
To enable command blocks on your Minecraft server:Minecraft Command Block Factions Server Commands Tutorial
Sources: Stack Exchange - This article follows the attribution requirements of Stack Exchange and is licensed under CC BY-SA 3.0.
Images: Yan Krukov, Anete Lusina, SHVETS production, Sora Shimazaki