![]() |
|
Help Spawn Message Playing on Respawn? - Printable Version +- ItsMods (https://www.itsmods.com) +-- Forum: Archive (https://www.itsmods.com/Forum-Archive.html) +--- Forum: Archive (https://www.itsmods.com/Forum-Archive--64.html) +--- Thread: Help Spawn Message Playing on Respawn? (/Thread-Help-Spawn-Message-Playing-on-Respawn.html) |
Spawn Message Playing on Respawn? - Killjoy - 07-09-2013 I'm making some mods based off of Yamato's OMA Mod for Beginners (Thanks, BTW, it helped! ), 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 havehttp://pastebin.com/jxcXqUyy RE: Spawn Message Playing on Respawn? - DidUknowiPwn - 07-09-2013 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. RE: Spawn Message Playing on Respawn? - Killjoy - 07-09-2013 (07-09-2013, 17:15)DidUknowiPwn Wrote: OnPlayerSpawned is called every time you spawn.... 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 RE: Spawn Message Playing on Respawn? - Yamato - 07-10-2013 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
}RE: Spawn Message Playing on Respawn? - DidUknowiPwn - 07-10-2013 That too
RE: Spawn Message Playing on Respawn? - Killjoy - 07-11-2013 OMG Yamato your a genius thanks again, it works Much appreciated now I can successfully release my mod! This is so coolIs there a way to do a private release so just a few people can test it and tell me things to improve? Thanks! RE: Spawn Message Playing on Respawn? - DidUknowiPwn - 07-11-2013 Just send the mod as a private message to people who want it? RE: Spawn Message Playing on Respawn? - Killjoy - 07-11-2013 (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! |