You can either kick the ball that is the closest by comparing all players and selecting the closest one OR you can send in a vector from the player(or get it). Just use the players forward vector multiplied with the kick strength.
The way you are doing it it is impossible. Instead loop through all the players and save a reference to the closest one. Then you can use that reference inside the Kick ball 1(player 1) part.