Run a clock with a command block attached to it with the command: /testfor @a[x=X,y=Y,z=Z,r=Radius] and put a comparator coming out of the command block with output leading to pistons.