Ok, as you're not allowed to show your code I can only do wild guesses here. The level_load instruction should in any way solve your problem. When you perform a level_load all entities are removed and their files get removed from the level cache.
The current level is closed, the cache holding level entity files is purged. All current entities in the old level are removed, thus all entity pointers referring to them can't be used anymore.
My basic idea is as follows:
STRING* mymodels = getmodelnamearraywhatever();
int numberofmodels = countmodelnamearraywhatever();
int i;
for (i = 0; i < numberofmodels; i++)
{
level_load("");
wait(2);
ent_create(mymodels[i],nullvector,NULL);
while (!key_space) wait(1);
while (key_space) wait(1);
}
Does that help you solve the problem?