you player_walk function is only happening once, so if the keys aren't being pressed when it run nothing will happen. You need that instruction to continue to happen for the rest of the game or until the player is no longer there. Any ideas what will help?
The answer is simple! A while loop

just make this simple adjustment:
Code:
function player_client
{
...//everything above this stays the same
while(1){wait(1);player_walk();}
}
That "should" fix it for you. GL!
If my prediction is right, your next problem will be the twitching
