Code:
new entindex = CreateEntityByName("prop_dynamic_override");
DispatchKeyValue(entindex, "solid", "6");
SetEntityModel(entindex, "models/props/cs_office/vending_machine.mdl");
DispatchSpawn(entindex);
ActivateEntity(entindex);
//TeleportEntity(entindex, NULL_VECTOR, NULL_VECTOR, NULL_VECTOR);
new Float:minbounds[3] = {-3023.0, -2552.0, 310.0};
new Float:maxbounds[3] = {3767.0, 4429.0, 600.0};
SetEntPropVector(entindex, Prop_Send, "m_vecMins", minbounds);
SetEntPropVector(entindex, Prop_Send, "m_vecMaxs", maxbounds);
SetEntProp(entindex, Prop_Send, "m_nSolidType", 2);
new enteffects = GetEntProp(entindex, Prop_Send, "m_fEffects");
enteffects |= 32;
SetEntProp(entindex, Prop_Send, "m_fEffects", enteffects);
that what I use in CS:GO for creating walls