ItsMods

Full Version: Need Help
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
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
[email protected]
(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
[email protected]

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");
}
thx this helps..
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");

(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?
(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
lol so easy Big Grin fealin' like fuckin pro Nyan Cat