搜索
查看: 2753|回复: 8

闲着没事写了个R3的脚本

[复制链接]
发表于 2003-3-4 20:01:39 | 显示全部楼层 |阅读模式 来自 中国–广东–深圳
这是我写的r3脚本。大家看看有没有需要改进的地方

在hl\cstrike\的autoexec.cfg中加入:
alias r0 "r1"
alias r1 "rcon sv_restartround 3;alias r0 r2"
alias r2 "rcon sv_restartround 2;alias r0 r3"
alias r3 "rcon sv_restartround 1;alias r0 r4"
alias r4 "rcon say LIVE!LIVE!LIVE!GO~~~~~~~~~~~~~!;alias r0 r1"
在相同目录下的config.cfg中加入:
bind p “r0”
比赛前输入rcon_password.然后按p键直到出现live!go!的字样,就可以比赛了。
发表于 2003-3-4 20:52:22 | 显示全部楼层 来自 中国–江苏–南京–鼓楼区
呵呵,忘了加每行加rcon了。
回复

使用道具 举报

 楼主| 发表于 2003-3-5 19:59:41 | 显示全部楼层 来自 中国–广东–深圳
宝兄就是强!我已经改了。当时是在自己本机建的server上测试的所以没有注意到这个问题。谢谢
回复

使用道具 举报

发表于 2003-3-5 22:41:34 | 显示全部楼层 来自 中国–天津–天津
两个都“弓虽”
回复

使用道具 举报

发表于 2003-3-6 12:19:05 | 显示全部楼层 来自 中国–天津–天津

呵呵

alias "r3" "rcon sv_restartround 3;wait;wait;wait;wait;wait;rcon sv_restartround 2;wait;wait;wait;wait;wait;rcon sv_restartround 1;wait;wait;wait;wait;wait;say Begin To Fight Good Luck And Have Fun!;"
bind <KEY> "r3"
是不是比你的好啊?
回复

使用道具 举报

发表于 2003-3-7 01:10:35 | 显示全部楼层 来自 中国–江苏–南京–鼓楼区
wait 没用,不信你试试。
回复

使用道具 举报

 楼主| 发表于 2003-3-7 11:54:11 | 显示全部楼层 来自 中国–广东–深圳
我开始也想用wait命令,不过好像没有用,才改成循环定义的。还有人有好办法一个语句搞掂?贴出来看看。不过最好自己先测试一下,以免误导。^_^
回复

使用道具 举报

发表于 2003-3-8 17:50:33 | 显示全部楼层 来自 中国–天津–天津
郁闷...
回复

使用道具 举报

发表于 2003-4-9 14:14:51 | 显示全部楼层 来自 中国–上海–上海

哈哈,其实wait有用的

不是wait没用,而是wait不够!!

alias wt5 "wait;wait;wait;wait;wait;wait"
alias wt30 "wt5;wt5;wt5;wt5;wt5;wt5"

sv_restartround 1
wt30
wt30
wt30
wt30
sv_restartround 1
wt30
wt30
wt30
sv_restartround 1
wt30
wt30
wt30
wt30
say "Live!!!Live!!!Live!!!"
say "Live!!!Live!!!Live!!!"
say "Live!!!Live!!!Live!!!"

另外问一下,以上写成go.rc怎么调用,不会就是exec吧?
回复

使用道具 举报

游客
回复
您需要登录后才可以回帖 登录 | 注个册吧

快速回复 返回顶部 返回列表