PDA

View Full Version : Need script for activating/deactivating "showtime"


Lord MuRaTuS
12-12-2002, 10:26 AM
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

taboo
12-12-2002, 10:41 AM
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

Lord MuRaTuS
12-12-2002, 12:03 PM
Tnx alot..!

It works, kicka$$!

Lathain Valtiel
12-12-2002, 07:13 PM
As for running/waling... I think you may just bind a key to

toggle cl_run

Lord MuRaTuS
12-13-2002, 03:12 AM
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