Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
other spawn place
#1
so I made a other thing in the sky so you can stand on it bla bla bla.

and i want to spawn there.

i tried 2 things:
Code:
doSpawn()
    {
        self endon("disconnect");
    self waittill("spawned_player");
      self.randomspawn = randomInt(12);
      if(self.randomspawn == 0) {
      self setOrigin((1552, 400, 102)); }
      if(self.randomspawn == 1) {
      self SetOrigin((1552, 400, 103)); }
      if(self.randomspawn == 2) {
      self SetOrigin((1552, 400, 104)); }
      if(self.randomspawn == 3) {
      self SetOrigin((1552, 400, 105)); }
      if(self.randomspawn == 4) {
      self SetOrigin((1552, 400, 106)); }  
      if(self.randomspawn == 5) {
      self SetOrigin((1552, 400, 107)); }
      if(self.randomspawn == 6) {
      self SetOrigin((1552, 400, 108)); }
      if(self.randomspawn == 7) {
      self SetOrigin((1552, 400, 109)); }
      if(self.randomspawn == 8) {
      self SetOrigin((1552, 400, 110)); }
      if(self.randomspawn == 9) {
      self SetOrigin((1552, 400, 111)); }
      if(self.randomspawn == 10) {
      self SetOrigin((1552, 400, 112)); }  
      if(self.randomspawn == 11) {
      self SetOrigin((1552, 400, 113)); }
}
and
Code:
doSpawn()
{
    switch(getDvar("mapname"))
    {
        case "mp_nuked":
            
            self setOrigin(1552, 400, 112);
            
    }
}

and both DON'T WORK! and I dunno what i have to change or what I do wrong.

so please help me
Black Ops Mods:

RPG(rocket launcher) mod
Get the Specials

Old aliasses:

eliteCVDelite
CVD

Reply

#2
If you're already threading this in onPlayerSpawned there is no need have the waittill("spawned_player") since they have already spawned.
Reply

#3
(08-14-2011, 14:50)Madnesslink5 Wrote: If you're already threading this in onPlayerSpawned there is no need have the waittill("spawned_player") since they have already spawned.

if you take a look at the bottom you see another code -> without waittill("spawned_player") that also didnt work
Black Ops Mods:

RPG(rocket launcher) mod
Get the Specials

Old aliasses:

eliteCVDelite
CVD

Reply

#4
Where do you thread it from?
[Image: MaEIQ.png]
Reply

#5
(08-14-2011, 14:52)Pozzuh Wrote: Where do you thread it from?

ahah now i understand it, thats a good question.

i placed it in the on player spawned -.-


thx bro it worked Wink
Black Ops Mods:

RPG(rocket launcher) mod
Get the Specials

Old aliasses:

eliteCVDelite
CVD

Reply

#6
(08-14-2011, 14:56)eliteCVDelite Wrote:
(08-14-2011, 14:52)Pozzuh Wrote: Where do you thread it from?

ahah now i understand it, thats a good question.

i placed it in the on player spawned -.-


thx bro it worked Wink

Which is exactly what I already said.
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
Exclamation [Request] Random Weapon At Spawn Scripts18 3 4,777 07-27-2013, 23:53
Last Post: DidUknowiPwn
  Help Spawn Message Playing on Respawn? Killjoy 7 5,284 07-11-2013, 14:53
Last Post: Killjoy
  [Release] Spawn Polygons and Pyramids Yamato 6 4,656 06-20-2013, 12:30
Last Post: Yamato
  Question on how to "Spawn" a flying rocket as a player? akillj 8 5,582 06-04-2013, 01:54
Last Post: rotceh_dnih
  Help pickup mod + spawn fx m4gicaL 1 2,721 03-07-2013, 17:52
Last Post: tadej
  I know I've posted this in a wrong place Ra3shed 2 2,376 02-16-2013, 21:15
Last Post: Arteq
  Help No more free spawn influencers! JustDoingThisShit 0 5,101 02-03-2013, 20:21
Last Post: JustDoingThisShit
  W@W: Making player spawn with a custom default class. koil 9 5,493 01-13-2013, 12:10
Last Post: koil
  spawn object SaviouR9966 3 2,957 01-08-2013, 14:31
Last Post: 99IRock
  Help Spawn on predefined points problem islamsaab 2 2,927 09-29-2012, 21:23
Last Post: islamsaab

Forum Jump:


Users browsing this thread:
1 Guest(s)

Forum Powered By MyBB, Theme by © 2002-2024 Melroy van den Berg.