player reset function

add an RPC API function for resetting players