下面是引用 tonyyoung 于 2010-04-01 23:09 发表的 :
话说我用来跟BOT玩完全没有反应耶............
应该说系统根本没有去读取这插件
我明明有加到plugins.ini里了啊..............
我也有compile到plugins资料夹里了
进去玩用左键挥刀还是挥得很顺= =
这到底是怎么一回事啊= =?
还是我要只拿刀不拿枪才会有效果?
经你这么一说我才发现…
Rubbish-Nec大…你忘记在「public plugin_init()」里加上
「register_forward(FM_CmdStart, "fwdCmdStart")」了…
下面是引用 calove00 于 2010-04-01 23:17 发表的 :
唔肯定嫁...问下先
点解要用set_uc
唔用set_pev?
在「FM_CmdStart」里就是用"set_uc"啊…
<fakemeta>原文:
复制程式
// These functions are used with the usercmd data structure (FM_CmdStart)
// Get: 0 extra params - Return integer; 1 extra param - by ref float or vector
// Set: Use anything
// Use 0 for uc_handle to specify the global usercmd handle
native get_uc(uc_handle, UserCmd:member, {Float,_}:...);
native set_uc(uc_handle, UserCmd:member, {Float,_}:...);