Your initial post is confused too. You're talking about player's model and you give hat model as example.
That's why I said if you want to change a player's model you have to use cs_set_user_model(). If you want to add only a hat ( which is not a player's model, but just a model which will be on the player's head ), see this plugin.