Code: Select all
#define CTMODEL "tukutuku_CT" new static wii_models[][] = { "models/p_wii.mdl", "models/v_wii.mdl" } public plugin_precache(){ static modelname[128], i formatex(modelname, 127, "models/player/%s/%s.mdl", CTMODEL, CTMODEL) engfunc(EngFunc_PrecacheModel, modelname) for(i = 0; i < sizeof wii_models; i++) engfunc(EngFunc_PrecacheModel,wii_models[i]) } public CurWeapon(id){ if(!is_user_alive(id) || get_user_team(id) != 2) { set_pev(id, pev_viewmodel2, wii_models[1]) set_pev(id, pev_weaponmodel2, wii_models[0]) }} public client_spawn(id){ if(!is_user_alive(id)) return HAM_IGNORED; if(team == CS_TEAM_CT) { set_user_model(id, CTMODEL) changedModel{id} = true } } if(get_pcvar_num(cvar_stripweapons)) set_task(0.1, "give_weapons", id) return HAM_IGNORED;}