Quote from gussywussy
But it doesn't work.
I tried /tp @a 7 5,000 1 And it didn't work
Well, for you, make sure you're not putting comma in your numbers. For example, your "5,000" should be "5000".
Also, note this post:
Quote from XDaWNeDX
tp @a[x,y,z,r] x y z
In your case:
tp @a[1,1,1,1] 4 4 4
The numbers in the brackets are the source radius and the search radius, and the numbers after the brackets are the destination. So that can be read as "Teleport any player within a 1-block radius of 1,1,1 to 4,4,4."
I, personally, prefer to use a slightly larger search radius and @p to target the nearest player to account for players not standing exactly where I want them to. So, if I were using the same coordinates as the above example, I'd type:
tp @p[1,1,1,2] 4 4 4
Finally, don't forget to use a redstone signal to activate the command block. If you want an automatic activation, you should use a clock signal.