PHP Code:
float fPosition[3];
float fMins[] = {-200.0, -200.0, -200.0};
float fMaxs[] = {200.0, 200.0, 200.0};
GetEntPropVector(iClient, Prop_Send, "m_vecOrigin", fPosition);
int ent = CreateEntityByName("func_hostage_rescue");
DispatchKeyValue(ent, "spawnflags", "257");
DispatchKeyValueVector(ent, "origin", fPosition);
DispatchSpawn(ent);
ActivateEntity(ent);
SetEntPropVector(ent, Prop_Send, "m_vecMins", fMins);
SetEntPropVector(ent, Prop_Send, "m_vecMaxs", fMaxs);
SetEntProp(ent, Prop_Send, "m_nSolidType", 2);
the zone is still just my position, an 3d point. the vecmins and vecmaxs doesn't works for func_hostage_rescue or func_buyzone.
am i doing something wrong?