We present the problem of tasks allocation in its general form as a non-cooperative game between players. For this game, we give the Nash equilibrium structure and on the basis of this structure, we draw a distributed tasks allocation algorithm that can find this equilibrium.