You are viewing our Forum Archives. To view or take place in current topics click here.
If statement help MW2
Posted:

If statement help MW2Posted:

Thedevil5600
  • Challenger
Status: Offline
Joined: Jan 11, 201212Year Member
Posts: 116
Reputation Power: 4
Status: Offline
Joined: Jan 11, 201212Year Member
Posts: 116
Reputation Power: 4
I want to make an if statement to detect the gamemode.

if ( ??????? == "war" )

I want to know the if statement for the gamemode

Like this checks if name is equal to Reflex223
if (self.name=="Reflex223")

i guessed it would be this but its not so any ideas
if ( gametype == "war" )


Last edited by Thedevil5600 ; edited 1 time in total
#2. Posted:
IGoogleclanmodz
  • Powerhouse
Status: Offline
Joined: Feb 09, 201311Year Member
Posts: 411
Reputation Power: 18
Status: Offline
Joined: Feb 09, 201311Year Member
Posts: 411
Reputation Power: 18
like what do you mean??
#3. Posted:
Thedevil5600
  • Challenger
Status: Offline
Joined: Jan 11, 201212Year Member
Posts: 116
Reputation Power: 4
Status: Offline
Joined: Jan 11, 201212Year Member
Posts: 116
Reputation Power: 4
IGoogleclanmodz wrote like what do you mean??

I need an if statement to detect what gamemode is currently loaded.
#4. Posted:
-Acme-
  • New Member
Status: Offline
Joined: Apr 14, 201410Year Member
Posts: 38
Reputation Power: 1
Status: Offline
Joined: Apr 14, 201410Year Member
Posts: 38
Reputation Power: 1
Thedevil5600 wrote
IGoogleclanmodz wrote like what do you mean??

I need an if statement to detect what gamemode is currently loaded.

[ Register or Signin to view external links. ] . se7ensins . com/forums/forums/mw2-modding.197/
#5. Posted:
IGoogleclanmodz
  • Powerhouse
Status: Offline
Joined: Feb 09, 201311Year Member
Posts: 411
Reputation Power: 18
Status: Offline
Joined: Feb 09, 201311Year Member
Posts: 411
Reputation Power: 18
if ( gametype == "SND" );



then you have to detect your client after the if statement
#6. Posted:
Nicholasbroo
  • Prospect
Status: Offline
Joined: Feb 20, 201014Year Member
Posts: 670
Reputation Power: 35
Status: Offline
Joined: Feb 20, 201014Year Member
Posts: 670
Reputation Power: 35
This thread.... Anyways here.


if(strcmp("ui_gametype","war")){
//Shit Here
//Blah
}
#7. Posted:
Thedevil5600
  • Challenger
Status: Offline
Joined: Jan 11, 201212Year Member
Posts: 116
Reputation Power: 4
Status: Offline
Joined: Jan 11, 201212Year Member
Posts: 116
Reputation Power: 4
Thedevil5600 wrote I want to make an if statement to detect the gamemode.

if ( ??????? == "war" )

I want to know the if statement for the gamemode

Like this checks if name is equal to Reflex223
if (self.name=="Reflex223")

i guessed it would be this but its not so any ideas
if ( gametype == "war" )

Gotta love answering your own question
if(getDvar("g_gametype") == "war")
Jump to:
You are viewing our Forum Archives. To view or take place in current topics click here.