@p only 20 blocks

is there any way to make the @p only work in a 20 block radious?
Continue to help post