I also tried that and it didn't work either. However, I made a little progress. I debugged the variable place, and realized that it never moved from zero, so I tried using a while loop and the model appeared but in all 5 places.

I then tried this:

Code:
var place;
var trigger_num = 0;

	var trigger_mod;
	if (trigger_num == 0)
	{
		trigger_mod = ent_create("pass.mdl",vector(0,0,0),pickups_places);
		trigger_num = 1;
	}

//Function for creating pickups
function pickups_places()
{
	while (place == 0)
	{
		place = integer(random(6));
		if (place == 1)
		{ent_create("pass.mdl",vector(-192,192,0),NULL);}
		if (place == 2)
		{ent_create("pass.mdl",vector(-160,192,0),NULL);}
		if (place == 3)
		{ent_create("pass.mdl",vector(-128,192,0),NULL);}
		if (place == 4)
		{ent_create("pass.mdl",vector(-96,192,0),NULL);}
		if (place == 5)
		{ent_create("pass.mdl",vector(-64,192,0),NULL);}
		wait(1);
	}

}



This time only one model appears, but it always appear in the same position. The variable 'place' is always 3. Any ideas on this?