What's new

Solved Making a mod menu

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

XiRuLe75X

Enthusiast
Messages
561
Reaction score
124
Points
95
Sin$
0
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.
 
Altruism

Altruism

Selena Gomez <3
Mythical Veteran Fabled Veteran Grammar Nazi
Messages
4,577
Reaction score
1,507
Points
515
Sin$
0
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.
 
Upvote 0
React X

XiRuLe75X

Enthusiast
Messages
561
Reaction score
124
Points
95
Sin$
0
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\"");
}
 
Upvote 0
Altruism

Altruism

Selena Gomez <3
Mythical Veteran Fabled Veteran Grammar Nazi
Messages
4,577
Reaction score
1,507
Points
515
Sin$
0
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.
 
Upvote 0
React X

XiRuLe75X

Enthusiast
Messages
561
Reaction score
124
Points
95
Sin$
0
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:
 
Upvote 0
Altruism

Altruism

Selena Gomez <3
Mythical Veteran Fabled Veteran Grammar Nazi
Messages
4,577
Reaction score
1,507
Points
515
Sin$
0
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
 
Upvote 0
React X

XiRuLe75X

Enthusiast
Messages
561
Reaction score
124
Points
95
Sin$
0
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
 
Upvote 0
React X

React X

Enthusiast
Messages
561
Reaction score
124
Points
95
Sin$
0
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
 
Upvote 0
ExTc iModz

ExTc iModz

Loyalty Means Family
Messages
956
Reaction score
120
Points
165
Sin$
0
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.
 
Upvote 0
Status
Not open for further replies.
Top Bottom
Login
Register