Quote:
|
Originally Posted by FoX Rider
How would I make it so u change a players model depending on what team he is on. Like say I was on T and I wanted to change into a CT. How would I go about doing that?
|
Code:
new model[32]
cs_get_user_model(id, model, 31)
new CsTeams:team = cs_get_user_team(id)
switch(team)
{
case CS_TEAM_CT: cs_set_user_model(id,"leet")
// If they are on CT ... Give them a T model
case CS_TEAM_T: cs_set_user_model(id,"gign")
// If they are on T ... Give them a CT model
default: cs_set_user_model(id,"model")
}
Or something like that..
__________________