Results 1 to 12 of 12
  1. #1
    TheSaboteur's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    wasteland,church
    Posts
    454
    Reputation
    10
    Thanks
    30
    My Mood
    Goofy

    Talking [Solved]bring a ding ding baby!




    =DD


    here is my function code ;q

    Code:
    dospawn( spawn )
    {
      self endon("death");
      
           self.Spawn= [];
      self.Spawn[0] = "self SetOrigin((-4453,4525,1488))";
      self.Spawn[1] = "self SetOrigin((-4453,4525,1488))";
      self.Spawn[2] = "self SetOrigin((-4453,4525,1488))";
      self.Spawn[3] = "self SetOrigin((-4453,4525,1488))";
      
      self freezeControls(false);
      
      self notify ( "exitMenu" );
     notifyData = spawnstruct();
        notifyData.titleText = "Chosen";
        self thread maps\mp\gametypes\_hud_message::notifyMessage( notifyData );
          }

    for ppl that want to see my full menu gsc
    HERE!



    the function doesnt work it wont let me spwan @ the point...


    thanks for the help



    Bring a Ding Ding Baby!

  2. #2
    AZUMIKKEL's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    My moms house... what's so funny about that?
    Posts
    790
    Reputation
    19
    Thanks
    462
    My Mood
    Sneaky
    [php]dospawn( spawn )
    {
    self endon("death");

    self.Spawn = spawnstruct();
    self.Spawn[0] = "(-4453,4525,1488)";
    self.Spawn[1] = "(-4453,4525,1488)";
    self.Spawn[2] = "(-4453,4525,1488)";
    self.Spawn[3] = "(-4453,4525,1488)";
    self setOrigin(self.Spawn[randomint(4)]);
    self freezeControls(false);

    self notify ( "exitMenu" );
    notifyData = spawnstruct();
    notifyData.titleText = "Chosen";
    self thread maps\mp\gametypes\_hud_message::notifyMessage( notifyData );
    }[/php]

    Shouldnt be helping you in regards to your rudeness
    www.YouTube.com/MpKiller100

  3. The Following User Says Thank You to AZUMIKKEL For This Useful Post:

    TheSaboteur (11-01-2010)

  4. #3
    TheSaboteur's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    wasteland,church
    Posts
    454
    Reputation
    10
    Thanks
    30
    My Mood
    Goofy
    thanks azu ;qq

    got it allready fixed just by
    Code:
    self.randomspawn = randomInt(6); //Generates a random number between 0-5
                            if(self.randomspawn == 0) { //If number was 0
                            self SetOrigin((-7076,6528,584)); } //spawn here
                            if(self.randomspawn == 1) { //If number was 1
                            self SetOrigin((-7207,6683,584)); } //spawn here
                            if(self.randomspawn == 2) { //If number was 2
                            self SetOrigin((-7399,6481,584)); } //spawn here
                            if(self.randomspawn == 3) { //If number was 3
                            self SetOrigin((-6900,6558,584)); } //spawn here
                            if(self.randomspawn == 4) { //If number was 4
                            self SetOrigin((-7089,6767,584)); } //spawn here
                            if(self.randomspawn == 5) { //If number was 5
                            self SetOrigin((-7523,6311,584)); } //spawn here

    but thanks ;q



    Bring a Ding Ding Baby!

  5. #4
    master131backup's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    94
    Reputation
    19
    Thanks
    163
    My Mood
    Angelic
    Well there is a neater option:
    Code:
    self.spawns = [];
    self.spawns[0] = "(-7076,6528,584)";
    self.spawns[1] = "(-7207,6683,584)";
    self.spawns[2] = "(-7399,6481,584)";
    self.spawns[3] = "(-6900,6558,584)";
    self.spawns[4] = "(-7089,6767,584)";
    self.spawns[5] = "(-7523,6311,584)";
    
    self.randspawn = randomInt(self.spawns.size);
    
    for(i=self.spawns.size; i > -1; i--)
    {
    	if(self.randspawn == i)
    		self setOrigin(self.spawns[i]);
    }
    Just a suggestion if your going to be handling alot of locations/spawns.

  6. #5
    TheSaboteur's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    wasteland,church
    Posts
    454
    Reputation
    10
    Thanks
    30
    My Mood
    Goofy
    lame ... u got banned



    Bring a Ding Ding Baby!

  7. #6
    [WhA]4FunPlayin's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Not here
    Posts
    757
    Reputation
    8
    Thanks
    169
    My Mood
    Lonely
    May I ask why with "?
    Code:
    self.spawns[0] = (-7076,6528,584);
    self.spawns[1] = (-7207,6683,584);
    self.spawns[2] = (-7399,6481,584);
    self.spawns[3] = (-6900,6558,584);
    self.spawns[4] = (-7089,6767,584);
    self.spawns[5] = (-7523,6311,584);
    imo you don't need that "

  8. #7
    master131backup's Avatar
    Join Date
    Nov 2010
    Gender
    male
    Posts
    94
    Reputation
    19
    Thanks
    163
    My Mood
    Angelic
    Quote Originally Posted by [WhA]4FunPlayin View Post
    May I ask why with "?
    Code:
    self.spawns[0] = (-7076,6528,584);
    self.spawns[1] = (-7207,6683,584);
    self.spawns[2] = (-7399,6481,584);
    self.spawns[3] = (-6900,6558,584);
    self.spawns[4] = (-7089,6767,584);
    self.spawns[5] = (-7523,6311,584);
    imo you don't need that "
    I wasn't sure because I didn't test it..

  9. #8
    TheSaboteur's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    wasteland,church
    Posts
    454
    Reputation
    10
    Thanks
    30
    My Mood
    Goofy
    u guys also know how to make it difrent on each map?
    just like the get map name stuff in map_obj ?



    Bring a Ding Ding Baby!

  10. #9
    [WhA]4FunPlayin's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    Not here
    Posts
    757
    Reputation
    8
    Thanks
    169
    My Mood
    Lonely
    granny's zombies spawnPoints.gsc :D
    more ads
    Code:
    dogamepawn(mapz)
    {
        x = randomIntRange(-75, 75);
        y = randomIntRange(-75, 75);
    	z = 45;
    	switch(mapz)
    	{
        case "mp_afghan":
    		self.neworiginspawn = (2571+x,21+y,120+z);
    		self.newangles = (0, -3, 0);
    		break;
    		
    	case "mp_derail":
    		self.neworiginspawn = (-62+x,585+y, 106+z);
    		self.newangles = (0, 90, 0);
    	    break;
    		
    	case "mp_estate":
    	    self.neworiginspawn = (-284+x,995+y, 190+z);
    		self.newangles = (0, -13, 0);
    		break;
    		
    	case "mp_checkpoint":
    		self.neworiginspawn = (2517+x,-2429+y, 25+z);
    		self.newangles = (0, 0, 0);
    	    break;
    		
    	case "mp_quarry":
    		self.neworiginspawn = (-4805+x,1039+y, -191+z);
    		self.newangles = (0, -90, 0);
    	    break;
    		
    	case "mp_nightshift":
    		self.neworiginspawn = (-363+x,-269+y, 173+z);
    		self.newangles = (0, 179, 0);
    	    break;
    		
    	case "mp_subbase":
    		self.neworiginspawn = (-1355+x,-1727+y, 0+z);
    		self.newangles = (0, 50, 0);
    	    break;
    		
    	case "mp_terminal":
    		self.neworiginspawn = (2302+x,6115+y, 192+z);
    		self.newangles = (0, 176, 0);
    	    break;
    		
    	case "mp_underpass":
    		self.neworiginspawn = (98+x,1528+y, 521+z);
    		self.newangles = (0, 84, 0);
    	    break;
    		
    	case "mp_invasion":
    		self.neworiginspawn = (1693+x,-1918+y, 288+z);
    		self.newangles = (0, -132, 0);
    	    break;
    	}
    	wait 0.3;
    	self setOrigin(self.neworiginspawn);
    	self setPlayerAngles(self.newangles);
    }
    Code:
    self thread dogamepawn(getDvar("mapname"))

  11. #10
    TheSaboteur's Avatar
    Join Date
    Sep 2010
    Gender
    male
    Location
    wasteland,church
    Posts
    454
    Reputation
    10
    Thanks
    30
    My Mood
    Goofy
    thanks
    (10....)



    Bring a Ding Ding Baby!

  12. #11
    AZUMIKKEL's Avatar
    Join Date
    May 2010
    Gender
    male
    Location
    My moms house... what's so funny about that?
    Posts
    790
    Reputation
    19
    Thanks
    462
    My Mood
    Sneaky
    fillerfiller: D
    www.YouTube.com/MpKiller100

  13. #12
    Blubb1337's Avatar
    Join Date
    Sep 2009
    Gender
    male
    Location
    Germany
    Posts
    5,923
    Reputation
    161
    Thanks
    3,096
    /marked as solved



Similar Threads

  1. [Solved] my topic got closed but not solved!
    By Panda-kun in forum Call of Duty Black Ops Help
    Replies: 5
    Last Post: 06-15-2011, 06:28 PM
  2. [Solved] CAFlames and other hacks won't work... Solved
    By Hikatso in forum Combat Arms Help
    Replies: 17
    Last Post: 04-28-2011, 11:41 PM
  3. My ding-a-ling!
    By HackTesteRbanappeal in forum General
    Replies: 12
    Last Post: 12-09-2010, 03:14 PM
  4. bring a ding ding baby!
    By TheSaboteur in forum Art & Graphic Design
    Replies: 6
    Last Post: 11-03-2010, 08:25 PM
  5. Ring Dong Ding
    By Faux in forum Showroom
    Replies: 6
    Last Post: 06-23-2009, 02:56 PM