Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Help Spawn Message Playing on Respawn?
#1
I'm making some mods based off of Yamato's OMA Mod for Beginners (Thanks, BTW, it helped! Big Grin), and I set up a custom spawn message. When you spawn in, it displays all of the text I want it to, but every time you die, it reappears on the screen. It doesn't make sense, since it is in the onPlayerSpawned thread so it should be done after the first time, but I don't know. Here's what I have

http://pastebin.com/jxcXqUyy
Reply

#2
OnPlayerSpawned is called every time you spawn....
What you can do is set a local variable like self.hi = 1 and do a check on the text like if(self.hi !=1){ textcode } And put self.hi == 0 on onplayerconnect.
Do not take life too seriously. You will never get out of it alive.
[Image: UGPjFJa.jpg]
Reply

#3
(07-09-2013, 17:15)DidUknowiPwn Wrote: OnPlayerSpawned is called every time you spawn....
What you can do is set a local variable like self.hi = 1 and do a check on the text like if(self.hi !=1){ textcode } And put self.hi == 0 on onplayerconnect.

Can you edit the pastebiun link i set up and resend it to me?I'm not sure what you mean,m I'm still a beginner
Reply

#4
Add something like this to onPlayerConnect() and then add the code of the function I made

Code:
onPlayerConnect()
{
    for( ; ; )
    {
        level waittill( "connected", player );
        player thread WelcomeAfterSpawn(); //THIS
        player thread onPlayerSpawned();
    }
}

WelcomeAfterSpawn()
{
    self waittill( "spawned_player" );
    YOUR MESSAGE CODE HERE
}
Reply

#5
That too Big Grin
Do not take life too seriously. You will never get out of it alive.
[Image: UGPjFJa.jpg]
Reply

#6
OMG Yamato your a genius thanks again, it works Big Grin Much appreciated now I can successfully release my mod! This is so cool

Is there a way to do a private release so just a few people can test it and tell me things to improve?

Thanks!
Reply

#7
Just send the mod as a private message to people who want it?
Do not take life too seriously. You will never get out of it alive.
[Image: UGPjFJa.jpg]
Reply

#8
(07-11-2013, 05:45)DidUknowiPwn Wrote: Just send the mod as a private message to people who want it?

Do you and Yamato want to try it? It's 3 basic mods I made that kind of "edits" the game mode. Just reply in this thread if you want to.


Thanks!
Reply



Possibly Related Threads…
Thread Author Replies Views Last Post
  Help Playing sounds ingame? Some 2 3,383 09-10-2013, 10:42
Last Post: Yamato
  [Release] HC respawn delay fixer Nukem 42 25,853 08-05-2013, 18:17
Last Post: mn_acer1
Exclamation [Request] Random Weapon At Spawn Scripts18 3 4,733 07-27-2013, 23:53
Last Post: DidUknowiPwn
  [Release] Spawn Polygons and Pyramids Yamato 6 4,604 06-20-2013, 12:30
Last Post: Yamato
  Question on how to "Spawn" a flying rocket as a player? akillj 8 5,528 06-04-2013, 01:54
Last Post: rotceh_dnih
Wink [Tutorial] Playing mp3,mid,etc... audio files on VB 2010! barata 2 17,728 05-07-2013, 08:03
Last Post: kmne68
  [News] Message from Gabe to Steam Community d0h! 8 5,610 04-05-2013, 18:16
Last Post: SuperNovaAO
  Help pickup mod + spawn fx m4gicaL 1 2,666 03-07-2013, 17:52
Last Post: tadej
  Help No more free spawn influencers! JustDoingThisShit 0 5,085 02-03-2013, 20:21
Last Post: JustDoingThisShit
  Help timer/message for flags hillbilly 31 14,645 01-20-2013, 18:20
Last Post: [Z00MBY] Alex

Forum Jump:


Users browsing this thread:
2 Guest(s)

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