Results 1 to 1 of 1
  1. #1
    ijwgamer's Avatar
    Join Date
    Sep 2013
    Gender
    male
    Location
    Long Island, New York
    Posts
    12
    Reputation
    10
    Thanks
    0
    My Mood
    Confused

    Custom Spawns Not Working?

    Does anyone see whats wrong with this?
    I was getting syntax error at first and did some revising, but the players are still spawning at default spawns. :?

    Code:
    spawnsys()
    {
    spawnwhere = RandomInt(5); //We have 6 spawns for each team.
    //Define spawns for the first and 2nd team.
    if(self.team == "allies")
    	{
            switch(spawnwhere)
    		{
            case 0:
            self.origin = (-310.8,  4853.7,  253.1); //Custom spawn location 1.
            self.angles = ( 0,  36, 0); //Uncomment if you want to change the view.
            break;
            case 1:
            self.origin = (-56.7,  4866.4,  253.1); //Custom spawn location 2.
            self.angles = ( 0,  125, 0); //Uncomment if you want to change the view.
            break;
            case 2:
            self.origin = (-57.3,  5383.9,  253.1); //Custom spawn location 3.
            self.angles = ( 0,  262, 0); //Uncomment if you want to change the view.
            break;
    		case 3:
            self.origin = ( 75.3,  5405.2,  252.1); //Custom spawn location 1.
            self.angles = ( 0,  301, 0); //Uncomment if you want to change the view.
            break;
    		case 4:
            self.origin = ( 396.9,  5062,  252.1); //Custom spawn location 1.
            self.angles = ( 0,  273, 0); //Uncomment if you want to change the view.
            break;
    		case 5:
            self.origin = (-439.5,  5585.2,  252.1); //Custom spawn location 1.
            self.angles = (0,0,0); //Uncomment if you want to change the view.
            break;
    		}
    	}
    else if(self.team == "axis")
    	{
            switch(spawnwhere)
    		{
            case 0:
            self.origin = ( 2254.7,  4485.5,  252.1); //Custom spawn location 1.
            self.angles = ( 0,  128, 0); //Uncomment if you want to change the view.
            break;
            case 1:
            self.origin = ( 1944.4,  5035.9,  252.1); //Custom spawn location 2.
            self.angles = ( 0,  277, 0); //Uncomment if you want to change the view.
            break;
            case 2:
            self.origin = ( 2307.0,  4731.8,  252.1); //Custom spawn location 3.
            self.angles = ( 0,  158, 0); //Uncomment if you want to change the view.
            break;
    		case 3:
            self.origin = ( 2579.4,  4748.6,  252.1); //Custom spawn location 1.
            self.angles = ( 0,  90, 0); //Uncomment if you want to change the view.
            break;
    		case 4:
            self.origin = ( 2202.1,  4198.3,  108.1); //Custom spawn location 1.
            self.angles = ( 0,  0, 0); //Uncomment if you want to change the view.
            break;
    		case 5:
            self.origin = ( 2616.8,  4130.4,  108.1); //Custom spawn location 1.
            self.angles = ( 0,  180, 0); //Uncomment if you want to change the view.
            break;
    		}
    	}
    }
    Last edited by ijwgamer; 12-15-2013 at 03:10 PM.

Similar Threads

  1. Replies: 1
    Last Post: 03-28-2013, 05:28 AM
  2. [Preview] Script Injector + Custom Scripts ( inc working vehicle spawn for 1.7.4.4 )
    By bowen2k12 in forum DayZ Mod & Standalone Hacks & Cheats
    Replies: 54
    Last Post: 12-27-2012, 12:33 PM
  3. why warrock not working now??
    By tolik13 in forum WarRock - International Hacks
    Replies: 4
    Last Post: 07-09-2006, 04:27 PM
  4. WPE not work
    By trekpik in forum WarRock - International Hacks
    Replies: 3
    Last Post: 07-09-2006, 11:09 AM