you need two normal command blocks. the one type: /tp @p[type... and next command block type: testfor... (dont copy "one:" and "two:") next place command beetwen a redstone comprator. place redstone the command blocks. you need plinking redstone.
Note: Minify the command to avoid issues :)