There is a mistake in your code:
x = int(random(580) -290);
y = int(random(424) -212);
z = 32;

x,y,z are reserved names and should not be used for naming your var.
replace thoses lines by:
temp.x = int(random(580) -290);
temp.y = int(random(424) -212);
temp.z = 32;

and delete the line "vec_set()" as you do not need it anymore.

EDIT:
Further more your while loop statement is wrong.
That while loop while run as long as player is NOT true.
Change it into this:
while(!player) { wait(1); }
while(player)
{
//your spawn code
}

Last edited by Xarthor; 06/23/07 12:36.