所谓脚本,就是含有bind和alias等命令的集合, 你可以把这个集合存为后缀名为.cfg的文件放在cstrike文件夹下,执行时在控制台输入:exec (脚本文件名).cfg 即可。
下面以复活脚本为例:
alias tspawn "kill; chooseteam; menuselect 6; chooseteam; menuselect 1; menuselect 1"
alias ctspawn "kill; chooseteam; menuselect 6; chooseteam; menuselect 2; menuselect 2"
alias randomspawn "kill; chooseteam; menuselect 6; chooseteam; menuselect 5; menuselect 5
alias revive "txt Respawning;chooseteam;menuselect 6;chooseteam;menuselect 5;randomskin"
alias randomskin "menuselect 5;later 0.1 #slot5;later 0.25 #slot5;later 0.5 slot5;later 1.0 slot5"
alias countdown3 "txt == 3 ==;later 1 txt == 2 ==;later 2 txt == 1 =="
alias waitrevive "countdown3;later 3 if is alive nop else revive"
alias respawn_on "alias respawn_t respawn_off;txt Respawn after dying ON; alias sigdead waitrevive"
alias respawn_off "alias respawn_t respawn_on ;txt Respawn after dying OFF; alias sigdead"
respawn_off
bind z tspawn
bind x ctspawn
要使用上面的语句,首先把他们复制到记事本上,命名为a.cfg,然后放在cstrike文件夹,进入游戏后,按`键打开控制台,输入exec a.cfg,脚本就激活了,按z键复活成T,按X键复活成CT,就这么简单。
[此贴子已经被作者于2004-7-15 9:23:23编辑过]