Answered How do you change the game type?

ryan

Veteran
Messages
12
Reaction score
4
Points
793
I Am Making a menu and i was wondering how to change the gamemode from FFA to TDM or something like that. Does anyone know how to do that like in TCM V8 or Anarchy Private?

I Had a idea but i dont know if it will work but this is my idea:
ChangeToTDM()
{
self iprintlnbold("Changing Game Mode To TDM");
wait 1;
setdvar("g_gametype","tdm");
map_restart(true);
}
 

Craze

Alt + F4
Messages
229
Reaction score
163
Points
903
I Am Making a menu and i was wondering how to change the gamemode from FFA to TDM or something like that. Does anyone know how to do that like in TCM V8 or Anarchy Private?

I Had a idea but i dont know if it will work but this is my idea:
ChangeToTDM()
{
self iprintlnbold("Changing Game Mode To TDM");
wait 1;
setdvar("g_gametype","tdm");
map_restart(true);
}
have you checked the Dvar is right? And are you sure that team deathmatch is called tdm (in code)?
 

ryan

Veteran
Messages
12
Reaction score
4
Points
793
i have not checked the dvar. And idk if that is what tdm is called in code. I also saw a post on something where a person did setdvar("g_gametype","gametyper here");
so i did something like that
 

ryan

Veteran
Messages
12
Reaction score
4
Points
793
i found both of the dvar dump and names of the and they are both "g_gametype" and it is "tdm" do you know how to code that to make it work?
 

The Dark Side

Former Staff Member
Messages
1,007
Reaction score
784
Points
993
The closest i got to this is something like this.

Code:
dogamemode(g)
{
    setDvar("g_gametype", g);
    setDvar("ls_gametype", g);
    level.gametype = g;
  
    map_restart(false);
}

But its still buggy. That includes the one in Anarchy Private. :/
 

ryan

Veteran
Messages
12
Reaction score
4
Points
793
dorathekiller97 im not begging but is there anyway i can get the combat axe aimbot? if not i under stand
And BTW sick menu
 

iTahhr

Well-Known Member
Messages
248
Reaction score
119
Points
243
dorathekiller97 im not begging but is there anyway i can get the combat axe aimbot? if not i under stand
And BTW sick menu
i have this code i didnt make it tho might be buggy :grinning:
 
Top