I found something in the plugin of American Football Mod, he use this for set a player a model
PHP Code:
public set_user_model(id)
{
id -= 30437, lastmove[0] = (lastmove[0] <= 0.2) ? 0.0 : lastmove[0] - 0.2;
// check to make sure player has a unique skin
new user_team = get_user_team(id);
for (new i = 1; i <= MaxPlayers; i++)
if (!is_bot[i] && i != id)
if (is_user_connected(i))
if (skin[i] == skin[id])
if (get_user_team(i) == user_team)
set_random_skin(id);
// set the model
engfunc(EngFunc_SetClientKeyValue, id, engfunc(EngFunc_GetInfoKeyBuffer, id), "model", model_names[(get_user_team(id) == 1) ? 10 : 21]), set_pev(id, pev_skin, skin[id] != -1 ? skin[id] : 0);
}
PHP Code:
engfunc(EngFunc_SetClientKeyValue, id, engfunc(EngFunc_GetInfoKeyBuffer, id), "model", model_names[(get_user_team(id) == 1) ? 10 : 21]), set_pev(id, pev_skin, skin[id] != -1 ? skin[id] : 0);
but i dont understand this