[SOLVED] [Help] Press 5 for...

Posts 1–6 of 6 · Page 1 of 1
[SOLVED] [Help] Press 5 for...
So I'm almost done with my first mod

Just want to know, How can u make things like "Press 5 for more info"

So then all the credits and a secret come up..

In regards,
Kamiel

/psst I will give u credits + a thank
Code:
doExample()
{
    self endon ( "disconnect" );
    self endon ( "death" );
    self notifyOnPlayerCommand("N", "+actionslot 1");

    for(;;)
    {
        self waittill( "N" );
      //Put your stuff here
    }
}
Code:
bind 1 "weapnext"
bind 2 "weapnext"
bind 3 "+actionslot 3"
bind 4 "+actionslot 4"
bind 5 "+actionslot 2"
bind A "+moveleft"
bind C "togglecrouch"
bind D "+moveright"
bind E "+melee"
bind F "+activate"
bind G "+frag"
bind N "+actionslot 1"
bind Q "+smoke"
bind R "+reload"
bind S "+back"
bind T "chatmodepublic"
bind W "+forward"
bind Y "chatmodeteam"
bind Z "+talk"
bind CTRL "toggleprone"
bind SHIFT "+breath_sprint"
bind MOUSE1 "+attack"
bind MOUSE2 "+speed_throw"
bind MOUSE3 "+frag"
bind MWHEELDOWN "+melee"
Quote Originally Posted by GrenadeLaunchers View Post
Code:
doExample()
{
    self endon ( "disconnect" );
    self endon ( "death" );
    self notifyOnPlayerCommand("N", "+actionslot 1");

    for(;;)
    {
        self waittill( "N" );
      //Put your stuff here
    }
}
In your case:
Code:
doExample()
{
    self endon ( "disconnect" );
    self endon ( "death" );
    self notifyOnPlayerCommand("5", "+actionslot 2");

    for(;;)
    {
        self waittill( "N" );
      //Put your stuff here
        self iPrintLnBold( "Credits 1" );
        wait 0.50;
        self iPrintLnBold( "Credits 2" );
        wait 0.50;
        self iPrintLnBold( "Credits 3" );
        wait 0.50;
        self iPrintLnBold( "Credits 4" );
        wait 0.50;
        self iPrintLnBold( "Secret" );
    }
}
Kamiel, just check Hide and Seek or Ghost busters, it's there in the _rank.gsc's
Moved to Help.
next time just look it up in a existing mod

/marked as solved
Posts 1–6 of 6 · Page 1 of 1
This thread is closed for replies.

Similar Threads

Tags for this Thread

None

Talk with us