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