Would anyone know if there is a way to change a players viewmodel team skin? I would like to change the viewmodel skin to the opposite team. I found CBaseViewModel but setting m_nSkin doesnt do anything (unless im not doing ti right?)
Code:
public Action player_spawn(Event event, const char[] name, bool dontBroadcast)
{
int client = GetClientOfUserId(event.GetInt("userid"));
int test = GetEntProp(client, Prop_Send, "m_nSkin");
PrintToServer("%i", test);
// red = 0
// blue = 1
SetEntProp(client, Prop_Send, "m_nSkin", BLUE);
}