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:
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
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:
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??
- 1useful
- 0not useful
#3. Posted:
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.
- 0useful
- 0not useful
#4. Posted:
Status: Offline
Joined: Apr 14, 201410Year Member
Posts: 38
Reputation Power: 1
#5. Posted:
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
- 0useful
- 0not useful
#6. Posted:
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
}
- 0useful
- 0not useful
#7. Posted:
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")
- 0useful
- 0not useful
You are viewing our Forum Archives. To view or take place in current topics click here.