Jump to content

Home

Need script for activating/deactivating "showtime"


Lord MuRaTuS

Recommended Posts

Posted

Ok I have 2 keys on the keyboard bound to "cg_drawtimer 1" and "cg_drawtimer 0", the keys are Q and R. For showing time/unshowing it.

 

Now I wonder how I will bind a script to one key only, for example Q, so when I press it ONCE, the timer will show, and when I press it again, it will not be showed ? How is this done?

 

I also need same kinda script but for running/walking, if its possible.

 

Thanks in advance

Posted

This should toggle the timer on and off with the q key. I would think that you could use the same basic script for a crouch toggle using +movedown and -movedown.

 

set TimerSwitch_1 "cg_drawtimer 1; set TimerSwitch vstr TimerSwitch_2"

set TimerSwitch_2 "cg_drawtimer 0; set TimerSwitch vstr TimerSwitch_1"

set TimerSwitch vstr TimerSwitch_1

bind q vstr TimerSwitch

Posted

MMXP: Thanks, but I made it working by +speed and -speed.

 

//runtoggle

set Runtoggle_1 "+speed; set Runtoggle vstr Runtoggle_2"

set Runtoggle_2 "-speed; set Runtoggle vstr Runtoggle_1"

set Runtoggle vstr Runtoggle_1

bind kp_enter vstr Runtoggle

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...