Ok I want to know how I can make it so that I can walk up to someone in game, and use a command like say /givemoney <amount> which will give said amount to the person you are looking at, and the person has to be within a certain range.
Sorry for the badly spelt title, had to fit it all in.
And, I need it to get the name/id/authid of the player you're looking at, then print an hud message when you look at any player at any distance.