this is my way of creating entities, I want to eliminate them all at the end of the round
PHP Code:
new const NameEntBox[] = "Box"
new const w_mdl_box[] = "ubication"
public CreateBox(iOrigin[3])
{
new ent = create_entity("info_target")
new Float:OriginF[3]
IVecFVec(iOrigin, OriginF)
entity_set_vector(ent, EV_VEC_origin, OriginF)
entity_set_string(ent, EV_SZ_classname, NameEntBox)
entity_set_model(ent, w_mdl_box)
new Float:mins[3] = { -2.5, -10.0, -0.0 }
new Float:maxs[3] = { 2.5, 10.0, 8.0 }
entity_set_size(ent, mins, maxs)
entity_set_int(ent, EV_INT_solid, SOLID_TRIGGER)
entity_set_int(ent, EV_INT_movetype, MOVETYPE_NONE)
drop_to_floor(ent)
}