Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Request Need Help
#1
Hi guys i read throu the forum, i need to write a welcome screen in the middle of the hud for about 5 seconds which appears on first spawn could you please help me with that? I know how to insert a text but its permanently...

THX
M@C
Reply

#2
(06-02-2011, 09:50)mac1981 Wrote: Hi guys i read throu the forum, i need to write a welcome screen in the middle of the hud for about 5 seconds which appears on first spawn could you please help me with that? I know how to insert a text but its permanently...

THX
M@C

I made this for mw2.. it should work fine
Change the CAPS thing to your text/sound/icon
Ohh and dont forget: If you use for example _rank.gsc then just put
Code:
player thread showMOTD();
after
Code:
level waittill("connected", player);
and delete the init() and onPlayerConnect() part

Code:
init()
{
    level thread onPlayerConnect();
}

onPlayerConnect()
{
    while(1)
    {
        level waittill("connected", player);
        player thread showMOTD();
    }
}

showMOTD()
{
    self endon("motd_done");
    self waittill("spawned_player");
    
    wait 1;
    
    notifyData = spawnstruct();
    notifyData.glowColor = (0.8, 0.3, 0.3);
    notifyData.iconName = ICON HERE ;
    notifyData.sound =  SOUND ALIAS HERE ;
    notifyData.titleText =  HEADER HERE ;
    notifyData.duration = 10;
    notifyData.notifyText = LINE ONE HERE ;
    notifyData.notifyText2 = LINE 2 HERE;

    wait 1;
        
    self thread maps\mp\gametypes\_hud_message::notifyMessage( notifyData );
    
    self notify("motd_done");
}
(08-10-2011, 12:58)Pozzuh Wrote:
Se7en Wrote:Stealed, from cod4 mod ...
look who's talking

[Release] Old School Mod v2.2
[Release] Scroll menu

Reply

#3
thx this helps..
Reply

#4
its too big code. try this


self thread maps\mp\gametypes\_hud_message::hintMessage("PUT YOUR TEXT HERE");

put it "onPlayerSpawned" just after

self waittill("spawned_player");

[Image: r212360a129ce9b84444093b6cd2699013a1fbn155.png]
Reply

#5
(06-04-2011, 20:57)G-Man Wrote: its too big code. try this


self thread maps\mp\gametypes\_hud_message::hintMessage("PUT YOUR TEXT HERE");

put it "onPlayerSpawned" just after

self waittill("spawned_player");

Does hintMessage work in Black Ops?
YouTube 1:Azumikkel- Modding
YouTube 2:DerpShark- Gaming Entertainment
Website:Jensby.me
Contact: im[at]jensby.me
Reply

#6
(06-04-2011, 21:06)AZUMIKKEL Wrote:
(06-04-2011, 20:57)G-Man Wrote: its too big code. try this


self thread maps\mp\gametypes\_hud_message::hintMessage("PUT YOUR TEXT HERE");

put it "onPlayerSpawned" just after

self waittill("spawned_player");

Does hintMessage work in Black Ops?

yea man xD
Reply

#7
lol so easy Big Grin fealin' like fuckin pro Nyan Cat
[Image: r212360a129ce9b84444093b6cd2699013a1fbn155.png]
Reply



Forum Jump:


Users browsing this thread:
5 Guest(s)

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