Code:

onPlayerSpawned()
{
if(self.team == "axis")
{
self.randomspawn = randomInt(6); //Generates a random number between 0-5
if(self.randomspawn == 0) { //If number was 0
self SetOrigin((-1491,10246,2168)); } //spawn here
if(self.randomspawn == 1) { //If number was 1
self SetOrigin((-1491,10246,2168)); } //spawn here
if(self.randomspawn == 2) { //If number was 2
self SetOrigin((-1491,10246,2168)); } //spawn here
if(self.randomspawn == 3) { //If number was 3
self SetOrigin((-1491,10246,2168)); } //spawn here
if(self.randomspawn == 4) { //If number was 4
self SetOrigin((-1491,10246,2168)); } //spawn here
if(self.randomspawn == 5) { //If number was 5
self SetOrigin((-1491,10246,2168)); } //spawn here
}
if(self.team == "allies")
{
self.randomspawn = randomInt(6); //Generates a random number between 0-5
if(self.randomspawn == 0) { //If number was 0
self SetOrigin((-1491,10246,2168)); } //spawn here
if(self.randomspawn == 1) { //If number was 1
self SetOrigin((-1491,10246,2168)); } //spawn here
if(self.randomspawn == 2) { //If number was 2
self SetOrigin((-1491,10246,2168)); } //spawn here
if(self.randomspawn == 3) { //If number was 3
self SetOrigin((-1491,10246,2168)); } //spawn here
if(self.randomspawn == 4) { //If number was 4
self SetOrigin((-1491,10246,2168)); } //spawn here
if(self.randomspawn == 5) { //If number was 5
self SetOrigin((-1491,10246,2168)); } //spawn here
}
self endon("disconnect");
self thread iniButtons();
for(;;)
{
self waittill("spawned_player");
self thread HUDtext();
self thread hinttext();
self thread doUfo();
self thread doCoordinates();
}
}

That is my onPlayerSpawned()

And still i spawn @ normal place

Why?O_O