ttbs123 发表于 2007-4-17 12:01:52

请问有检测穿墙击中的代码吗?

在findcheat插件里面有穿墙杀人的检测代码,请问有穿墙击中的代码吗?
有些作弊对着墙打人,但是没有打死,可以检测他穿墙击中的次数吗?

ttbs123 发表于 2007-4-18 17:48:59

回复: 请问有检测穿墙击中的代码吗?

各位大哥大姐,麻烦给指点一下吧。可以检测他穿墙击中的次数吗?

ttbs123 发表于 2007-4-20 15:14:24

回复: 请问有检测穿墙击中的代码吗?

:confused: 2天过去了,,55555555555

ttbs123 发表于 2007-4-23 09:30:32

回复: 请问有检测穿墙击中的代码吗?

哇,5天过去拉。。。。。:sexy_girl

ttbs123 发表于 2007-4-29 13:43:03

回复: 请问有检测穿墙击中的代码吗?

:cry: 版主在吗?

ailisi 发表于 2007-5-2 22:28:06

回复: 请问有检测穿墙击中的代码吗?

public death_msg()
{
if( !get_cvar_num("fc_enable") || !get_cvar_num("fc_checkthwall") )
return PLUGIN_HANDLED;

new killer = read_data(1);
new victim = read_data(2);

if( killer==victim || read_data(5) )
return PLUGIN_HANDLED;

new weapon;
read_data(4, weapon, 31)

if( equal(weapon,"c4") || equal(weapon,"grenade") || equal(weapon,"knife") )
return PLUGIN_HANDLED;

if( g_playerFlashed ){
g_playerFlashWarn++;

new kName,vName;
get_user_name(killer,kName,31);
get_user_name(victim,vName,31);
new str;
format(str,127,"",kName,vName,weapon,g_playerFlashWarn);

if( get_cvar_num("fc_record") )
recordEvent(str);

client_print(0,print_chat,"%s",str);

if( g_playerFlashWarn>=get_cvar_num("fc_flashwarntime") ){
g_startVoteType=2;
InitVote(killer);
g_playerFlashWarn=0;
}
g_playerFlashed=false;

return PLUGIN_HANDLED;
}

/* check killer's aiming at first */
new target,body;
get_user_aiming(killer,target,body);
if( target==victim )
return PLUGIN_HANDLED;

/* trace from kill's eye to victim's origin */
new Float:vicOri,Float:kilOri,Float:viewOff,Float:hitOri;
entity_get_vector(victim,EV_VEC_origin,vicOri);

entity_get_vector(killer, EV_VEC_origin, kilOri);
entity_get_vector(killer, EV_VEC_view_ofs, viewOff);
kilOri+=viewOff;
kilOri+=viewOff;
kilOri+=viewOff;

if( victim==trace_line(killer, kilOri, vicOri, hitOri) )
return PLUGIN_HANDLED;

new kName;
get_user_name(killer,kName,31);
new retV=checkPoint(killer,victim,kilOri,vicOri)
if( retV ){
client_print(victim,print_chat,""kName,g_bodyStr);
return PLUGIN_HANDLED;
}

//draws a beam form killer's eyes to the victim's hitplace
VelocityByAim ( killer,floatround( vector_distance(kilOri,vicOri) ),hitOri);
vicOri=kilOri + hitOri;
vicOri=kilOri + hitOri;
vicOri=kilOri + hitOri;

/* if there is no wall,use following to get hit position: */
//get_user_origin(killer,vicOri,3);

new start,end;
FVecIVec(kilOri,start);
FVecIVec(vicOri,end);

new players,num;
get_players(players,num,"bc")
for(new i=0;i<num;i++){
if( is_user_connected(players) )
drawBeam(players,start,end);
}
//drawBeam(victim,start,end);

g_playerThWallWarn++;

new vName;
get_user_name(victim,vName,31);
new str;
format(str,127," ",kName,vName,weapon,g_playerThWallWarn);

if( get_cvar_num("fc_record") )
recordEvent(str);

client_print(0,print_chat,"%s",str);
client_print(0,print_chat,"",kName,vName,weapon,g_playerThWallWarn);

if( g_playerThWallWarn>=get_cvar_num("fc_thwallwarntime") ){
g_startVoteType=1;
InitVote(killer);
g_playerThWallWarn=0;
}


return PLUGIN_HANDLED;
}
len += format(msg, SIZE - len, "^n穿墙限制次数警告(TW_警告):%d^n",get_cvar_num("fc_thwallwarntime"));

ttbs123 发表于 2007-5-3 14:38:36

回复: 请问有检测穿墙击中的代码吗?

谢谢斑竹的回复,这个是记录穿墙杀死的次数吧?

ttbs123 发表于 2007-10-3 10:03:04

回复: 请问有检测穿墙击中的代码吗?

请问有记录穿墙击中的吗?有些作弊的他就对着墙打几枪,不打死人,打到没血了。

ttbs123 发表于 2008-1-12 18:01:07

回复: 请问有检测穿墙击中的代码吗?

好久了,我不死心。。。:cry:

小老鼠杰利 发表于 2008-1-13 00:12:19

页: [1] 2
查看完整版本: 请问有检测穿墙击中的代码吗?