Jump to content

Home

Need script for activating/deactivating "showtime"


Lord MuRaTuS

Recommended Posts

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

Link to comment
Share on other sites

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

Link to comment
Share on other sites

Archived

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

×
×
  • Create New...