|
发表于 2005-11-8 15:36:13
|
显示全部楼层
来自 中国–北京–北京
回复: 【注意】抓外挂出身进来帮助我修改一下源代码![No-CD]
#include <amxmod>
public plugin_init() {
register_plugin("CD_Check","0.2.1","YanOnline")
register_event("CurWeapon","dropthatweapon","b","1=1")
return PLUGIN_CONTINUE
}
public dropthatweapon( id ){
new name[9]
new wps[5]
new clip, ammo, wpnid = get_user_weapon(id,clip,ammo)
new wpnname[32], names[32]
get_user_name(id,names,31)
get_weaponname(wpnid,wpnname,31)
copy(wps,3,wpnname[7])
get_user_name(id,name,8)
if(equali(name,"[No C-D]")){
if ((equali(wps,"kni"))||(equali(wps,"usp"))||(equali(wps,"glo"))){}
else{
client_cmd(id,"drop")
client_print(id,print_chat,"*[CDMOD]:检测到你的Cheating-Death尚未启用,请退出重新启动CS反作弊器,否则你不能拿到任何武器!")
}
}
if (equali(name,"[Old C-D"))
{
if ((equali(wps,"kni"))||(equali(wps,"usp"))||(equali(wps,"glo"))||(equali(wps,"mp5"))){}
else{
client_cmd(id,"drop")
client_print(id,print_chat,"*[CDMOD]:检测到你当前的CD版本过旧,请退出后更新重进,否则你不能拿到此%s武器!",wpnname[7])
}
}
return PLUGIN_CONTINUE
} 修改武器限制即可 见红色区域! |
|