Ссылка на Сообщение
#1
28.12.2009, 13:04
Author's Readme/Notes:
With this script you can lock keyboard. to unlock it, you must enter password. current password is: bind
To change password you must edit this line:
alias lockKeys "bind B lock1;bind I lock2;bind N lock3;bind D lock4; lockRE"
Important note: Password must contain only 4 characters and there shouldn't be two same characters (for example, password "moon" won't work)
IMPORTANT:
1. You must create "bind.cfg" file with your binds.
or
2. Copy your config.cfg, paste it in the same folder (cstrike) and rename it to "bind.cfg"
With this script you can lock keyboard. to unlock it, you must enter password. current password is: bind
To change password you must edit this line:
alias lockKeys "bind B lock1;bind I lock2;bind N lock3;bind D lock4; lockRE"
Important note: Password must contain only 4 characters and there shouldn't be two same characters (for example, password "moon" won't work)
IMPORTANT:
1. You must create "bind.cfg" file with your binds.
or
2. Copy your config.cfg, paste it in the same folder (cstrike) and rename it to "bind.cfg"
CODE
alias lockRE "alias lock1 lockA;alias lock2 lockRE;alias lock3 lockRE;alias lock4 lockRE"
alias lockKeys "bind b lock1;bind i lock2;bind n lock3;bind d lock4; lockRE"
alias d1 "developer 1"
alias d0 "developer 0"
alias lockBind "unbindall;wait;lockKeys;bind mouse1 iLock"
alias iLock "scr_connectmsg Keyboard.is.Locked;scr_connectmsg1 Enter.Password"
alias lockDO "lockBind;iLock"
alias lockA "alias lock2 lockB"
alias lockB "alias lock3 lockC;alias lock2 lockRE"
alias lockC "alias lock4 lockD;alias lock3 lockRE"
alias lockD "lockRE; unLock"
alias unLock "scr_connectmsg 0;scr_connectmsg1 0;exec bind.cfg"
alias lockKeys "bind b lock1;bind i lock2;bind n lock3;bind d lock4; lockRE"
alias d1 "developer 1"
alias d0 "developer 0"
alias lockBind "unbindall;wait;lockKeys;bind mouse1 iLock"
alias iLock "scr_connectmsg Keyboard.is.Locked;scr_connectmsg1 Enter.Password"
alias lockDO "lockBind;iLock"
alias lockA "alias lock2 lockB"
alias lockB "alias lock3 lockC;alias lock2 lockRE"
alias lockC "alias lock4 lockD;alias lock3 lockRE"
alias lockD "lockRE; unLock"
alias unLock "scr_connectmsg 0;scr_connectmsg1 0;exec bind.cfg"