|
楼主 |
发表于 2005-7-17 11:03:47
|
显示全部楼层
来自 中国–辽宁–沈阳
在源代码里找到这几行:
- register_clcmd("buyglasses","buyglasses",0,"buy sun glasses")
- register_clcmd("say sunglasses","buyglasses",0,"buy sun glasses")
复制代码
和
- if (equal(cmd,"buyglasses"))
复制代码
把红色的部分改成您想要玩家输入的控制台命令,绿色部分改为您想要玩家用“说”的方式的命令。
register_clcmd("buyglasses","buyglasses",0,"buy sun glasses")
register_clcmd("say sunglasses","buyglasses",0,"buy sun glasses")
if (equal(cmd,"buyglasses"))
然后自己编译一下。 |
|