Then I tried
Code:
public client_connect(id)
{
if(is_user_connected(id))
{
cs_set_user_model(id, TREE) //bomb
cs_set_user_model(id, ARCTIC) //T
cs_set_user_model(id, GUERILLA) //T
cs_set_user_model(id, LEET) //T
cs_set_user_model(id, MILITIA) //T
cs_set_user_model(id, TERROR) //T
}
else
set_task(5.0, "client_connect", id)
}
Instead of
Code:
public fw_setmodel(ent,model[])
{
if(equali(model,"models/w_c4.mdl"))
{
engfunc(EngFunc_SetModel,ent,TREE);
return FMRES_SUPERCEDE;
}
if(equali(model,"models/player/arctic/arctic.mdl"))
{
engfunc(EngFunc_SetModel,ent,ARCTIC);
return FMRES_SUPERCEDE;
}
if(equali(model,"models/player/guerilla/guerilla.mdl"))
{
engfunc(EngFunc_SetModel,ent,GUERILLA);
return FMRES_SUPERCEDE;
}
if(equali(model,"models/player/leet/leet.mdl"))
{
engfunc(EngFunc_SetModel,ent,LEET);
return FMRES_SUPERCEDE;
}
if(equali(model,"models/player/militia/militia.mdl"))
{
engfunc(EngFunc_SetModel,ent,MILITIA);
return FMRES_SUPERCEDE;
}
if(equali(model,"models/player/terror/terror.mdl"))
{
engfunc(EngFunc_SetModel,ent,TERROR);
return FMRES_SUPERCEDE;
}
return FMRES_IGNORED;
}
The cs_set_user_model actually screwed my server over because I don't know which function to call, client_connect or client_authorized or neither? I am newb in this regard, but understand the main concepts.
Slmclarengt
__________________