@cicibebe,
No, it is not centripetal force at all.
mg is the force exerted by gravity.
mgsinθ and mgcosθ simply break up mg into component forces. One force is in the same direction as the string, and the other is perpendicular to the string.
The centripetal force in the diagram is τ.