How to create invisible walls in CS:GO (maybe you can set a model?):
PHP Code:
int entity = CreateEntityByName("func_wall_toggle");
if (entity != -1)
{
DispatchKeyValueVector(entity, "origin", zoneInfo.vecOrigin);
DispatchSpawn(entity);
ActivateEntity(entity);
SetEntityModel(entity, "models/error.mdl");
SetEntProp(entity, Prop_Send, "m_nSolidType", 2);
SetEntPropVector(entity, Prop_Data, "m_vecMins", zoneInfo.vecMins);
SetEntPropVector(entity, Prop_Data, "m_vecMaxs", zoneInfo.vecMaxs);
SetEntProp(entity, Prop_Send, "m_fEffects", GetEntProp(entity, Prop_Send, "m_fEffects") | EF_NODRAW);
}
__________________