|
发表于 2008-5-22 21:52:40
|
显示全部楼层
来自 中国–广东–惠州
回复: 有开枪时调用的函数?
[php]
register_forward(FM_CmdStart,"fwd_CmdStart")
public fwd_CmdStart(id, uc_handle, seed) {
if(!is_user_alive(id)) return FMRES_IGNORED
new buttons = get_uc(uc_handle,UC_Buttons)
if(buttons & IN_ATTACK) {
//..........
}
return FMRES_HANDLED
}
[/php] |
|