What's new

Solved Making a mod menu

  • Thread starter React X
  • Start date
  • Views 453
Status
Not open for further replies.
R

XiRuLe75X

Enthusiast
Messages
561
Reaction score
124
Im using droseum20's tutorial on how to make a mod menu and you know how the dll_load has this


Code:
                        if (Scroll == 3)
                        {
                            SV(-1,0, "s r_fullbright \"1\"");
                            SV(-1,0, "c \"Cartoon = ^2ON\"");
                        }

Well if i want multiple dvars to activate when selecting an option on the menu. Would I need to add a new server command line thing or can i just it like this.

Code:
                        if (Scroll == 3)
                        {
                            SV(-1,0, "s r_fullbright \"1;s g_TeamIcon_Axis cardicon_prestige10_02;\"");
                            SV(-1,0, "c \"Cartoon = ^2ON\"");
                        }

or

Code:
                        if (Scroll == 3)
                        {
                           SV(-1,0, "s r_fullbright \"1\"")
                            SV(-1,0, "s g_TeamIcon_Axis cardicon_prestige10_02\"");
                            SV(-1,0, "c \"Cartoon = ^2ON\"");
                        }
or will either work?

Sorry i'm still learning.
 
A

Altruism

Selena Gomez <3
Messages
4,577
Reaction score
1,506
None will work the way you want it to. The correct format is
Code:
if (Scroll == 3)
{
SV(-1,0, "s DVAR_HERE \"Value here\""); 
}
So for setting the Dvar "g_TeamIcon_Axis" use:
Code:
 if (Scroll == 3)
{
SV(-1,0, "s g_TeamIcon_Axis \"cardicon_prestige10_02\"");
}

I also advise that you have a minimal knowledge of c++, which it appears you are lacking. If you need anything else, just quote me and I'll be glad to help.
 
R

XiRuLe75X

Enthusiast
Messages
561
Reaction score
124
None will work the way you want it to. The correct format is
Code:
if (Scroll == 3)
{
SV(-1,0, "s DVAR_HERE \"Value here\"");
}
So for setting the Dvar "g_TeamIcon_Axis" use:
Code:
 if (Scroll == 3)
{
SV(-1,0, "s g_TeamIcon_Axis \"cardicon_prestige10_02\"");
}

I also advise that you have a minimal knowledge of c++, which it appears you are lacking. If you need anything else, just quote me and I'll be glad to help.
Alright thanks. And if i want multiple dvars to activate, should i make a new SV line or just add it?

Code:
 if (Scroll == 3)
{
SV(-1,0, "s g_TeamIcon_Axis \"cardicon_prestige10_02;s ADD_DVAR \"Value\"");
}
 
A

Altruism

Selena Gomez <3
Messages
4,577
Reaction score
1,506
Alright thanks. And if i want multiple dvars to activate, should i make a new SV line or just add it?

Code:
 if (Scroll == 3)
{
SV(-1,0, "s g_TeamIcon_Axis \"cardicon_prestige10_02;s ADD_DVAR \"Value\"");
}
You need to make a new line. The character command "s" is for a single Dvar and value. Other characters besides "s" can be used to add text on screen, make icons for killstreaks, challenges, ranks, etc. appear on screen and some other things such as visions can be found here.
 
R

XiRuLe75X

Enthusiast
Messages
561
Reaction score
124
You need to make a new line. The character command "s" is for a single Dvar and value. Other characters besides "s" can be used to add text on screen, make icons for killstreaks, challenges, ranks, etc. appear on screen and some other things such as visions can be found here.
Thanks :smile:
 
A

Altruism

Selena Gomez <3
Messages
4,577
Reaction score
1,506
I'm trying to do xp infections, unlock all , 11th, some online infections, etc.
Oh, as a mod menu. Well I guess it does save some time in the long run and, if I had more time, I'd be doing the same thing you currently are :tongue:

So I suggest you:
1. Learn basic c++
2. Understand activeaction and how Dvars work (basically)
3. Then attempt the mod menu
Activeaction explanation here.

The rest of your questions can be answered in the morning because I'm going to bed now. See ya tomorrow xD
 
R

XiRuLe75X

Enthusiast
Messages
561
Reaction score
124
Oh, as a mod menu. Well I guess it does save some time in the long run and, if I had more time, I'd be doing the same thing you currently are :tongue:

So I suggest you:
1. Learn basic c++
2. Understand activeaction and how Dvars work (basically)
3. Then attempt the mod menu
Activeaction explanation here.

The rest of your questions can be answered in the morning because I'm going to bed now. See ya tomorrow xD
Alright thanks lol. Im going to bed also. Cya
 
R

React X

Enthusiast
Messages
561
Reaction score
124
How do i use the "J" character command for setting unlock all in c++? I keep tryig different ways but i keep getting errors when loading my dll.
How do i end it or start it?
Is it like


SV(-1,0, "J UNLOCK ALL CODE... J UNLOCK ALL CODE");

Help me, lol
 
E

ExTc iModz

Loyalty Means Family
Messages
956
Reaction score
120
I don't know much about coding in C++ about mw2, but I'm big with it on other games on PC. If you want start learning I suggest going here-->http://www.cprogramming.com/tutorial.html It's alot better to know what your doing then just guessing, sorry if I'm not helping<3.
 
S

SnappiestJack

Contributor
Messages
2,942
Reaction score
642
Yup thats the basis of it.
 
Status
Not open for further replies.
Top Bottom