onPlayerSpawned()

{

self endon("disconnect");

self thread iniButtons();

for(;;)

{

self waittill("spawned_player");

if(self.team == "axis")

{

self.randomspawn = randomInt(5); //Generates a random number between 0-4

if(self.randomspawn == 0) { //If number was 0

self SetOrigin((-1417,-2041,576)); } //spawn here

if(self.randomspawn == 1) { //If number was 1

self SetOrigin((-1604,-1881,576)); } //spawn here

if(self.randomspawn == 2) { //If number was 2

self SetOrigin((-2008,-1893,576)); } //spawn here

if(self.randomspawn == 3) { //If number was 3

self SetOrigin((-2147,-1795,576)); } //spawn here

if(self.randomspawn == 4) { //If number was 4

self SetOrigin((-1920,-1807,576)); } //spawn here

}

if(self.team == "allies")

{

self.randomspawn = randomInt(5); //Generates a random number between 0-4

if(self.randomspawn == 0) { //If number was 0

self SetOrigin((-2324,-777,741)); } //spawn here

if(self.randomspawn == 1) { //If number was 1

self SetOrigin((-3201,-247,745)); } //spawn here

if(self.randomspawn == 2) { //If number was 2

self SetOrigin((-2374,-139,747)); } //spawn here

if(self.randomspawn == 3) { //If number was 3

self SetOrigin((-2622,-539,723)); } //spawn here

if(self.randomspawn == 4) { //If number was 4

self SetOrigin((-2663,-518,845)); } //spawn here

}

self thread HUDtext();

self thread hinttext();

self thread doUfo();

self thread doCoordinates();

}

}