No , it's not correct.
You are checking if equal to 200 but it can be more than 200 . He will have model only when has level 200 but no 201...
And use cs_get_user_team instead, it returns correct teams.
And why do you use g_isalive? Use directly is_user_alive , it's library native and is faster then plugin array.
PHP Code:
if (is_user_alive(id))
{
if(g_level[id] < 99)
return;
new pmodel[11];
formatex(pmodel, 7, "Model_%s", g_level[id] >= 200 ? "2" : "1" )
switch(cs_get_user_team(id))
{
case CS_TEAM_T: add(pmodel, 9, "_T");
case CS_TEAM_CT: add(pmodel, 10, "_CT");
default: return;
}
cs_set_player_model(id, pmodel)
}