What's new

Solved Help with Toggling

  • Thread starter The Last Hackor
  • Start date
  • Views 367
Status
Not open for further replies.
T

The Last Hackor

Enthusiast
Messages
62
Reaction score
11
Points
55
im am trying to toggle jump height in a mod menu... not a bind one a regular mod menu...
how could I do this with making on option like this

SUPER JUMP ON/OFF

so i could activate it and shut if off all on the same option

i want to toggle the super jump between these to options

999 and 39

dvar for jump height is
Code:
jump_height


i will +rep for help
 
Stiffler

-Tanskin-

Enthusiast
Messages
352
Reaction score
89
Points
85
Just do
Code:
toggle <dvar> <values>
and I believe you can have as many values as you want.

Example:
Code:
toggle jump_height 39 999
 
Upvote 0
T

The Last Hackor

Enthusiast
Messages
62
Reaction score
11
Points
55
Just do
Code:
toggle <dvar> <values>
and I believe you can have as many values as you want.

Example:
Code:
toggle jump_height 39 999
but i am not talking about for infections i am talking about a mod menu on a jtag
 
Upvote 0
Stiffler

-Tanskin-

Enthusiast
Messages
352
Reaction score
89
Points
85
but i am not talking about for infections i am talking about a mod menu on a jtag
Ohhhhh...then either do something like this
Code:
t_J(){
if(!self.IsJ){
setDvar("jump_height",999);
self.IsJ = true;
}
else {
setDvar("jump_height",39);
self.IsJ = false;
}
}

or this.

http://www.se7ensins.com/forums/topic/426073-toggle-dvars/
 
Upvote 0
T

The Last Hackor

Enthusiast
Messages
62
Reaction score
11
Points
55
Ohhhhh...then either do something like this
Code:
t_J(){
if(!self.IsJ){
setDvar("jump_height",999);
self.IsJ = true;
}
else {
setDvar("jump_height",39);
self.IsJ = false;
}
}

or this.

http://www.se7ensins.com/forums/topic/426073-toggle-dvars/
thanks that worked!
 
Upvote 0
M

MediaPhamous

Enthusiast
Messages
36
Reaction score
1
Points
55
im glad someone was able to help you out but dont double post something
 
Upvote 0
Status
Not open for further replies.

Similar threads

D
Replies
3
Views
306
KmE ScOpELeSs
K
ElipTic Gaming
Replies
5
Views
300
renegade770
renegade770
I
Replies
1
Views
269
Hypnotoad
Hypnotoad
Delta331
Replies
18
Views
830
Public Static Void
P
Top Bottom
Login
Register