Maybe something like this help.
PHP Code:
new const CT_MODELS[][]
{
"models/ct/firstmodel.mdl",
"models/ct/secondmodel.mdl",
"models/ct/thirdmodel.mdl"
}
public plugin_precache()
{
new iNum
for (iNum = 0; iNum < sizeof CT_MODELS; iNum++)
engfunc(EngFunc_PrecacheModel, CT_MODELS[iNum])
}
public whatever(id)
{
if(get_user_team(id) == CS_TEAM_CT)
{
cs_set_user_model(id, CT_MODELS[ random(0, sizeof CT_MODELS)])
}
}