【注意】抓外挂出身进来帮助我修改一下源代码![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
new wps
new clip, ammo, wpnid = get_user_weapon(id,clip,ammo)
new wpnname, names
get_user_name(id,names,31)
get_weaponname(wpnid,wpnname,31)
copy(wps,3,wpnname)
get_user_name(id,name,8)
if(equali(name,"")){
if ((equali(wps,"kni"))||(equali(wps,"usp"))||(equali(wps,"glo"))){}
else{
client_cmd(id,"drop")
client_print(id,print_chat,"*:检测到你的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,"*:检测到你当前的CD版本过旧,请退出后更新重进,否则你不能拿到此%s武器!",wpnname)
}
}
return PLUGIN_CONTINUE
}
请帮助修改后 只能拿刀就行了!先谢谢您了!修改后把源代码贴在下面!谢谢!
回复: 【注意】抓外挂出身进来帮助我修改一下源代码![No-CD]
试试看!~~看有效果没?回复: 【注意】抓外挂出身进来帮助我修改一下源代码![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
new wps
new clip, ammo, wpnid = get_user_weapon(id,clip,ammo)
new wpnname, names
get_user_name(id,names,31)
get_weaponname(wpnid,wpnname,31)
copy(wps,3,wpnname)
get_user_name(id,name,8)
if(equali(name,"")){
if ((equali(wps,"kni"))||(equali(wps,"usp"))||(equali(wps,"glo"))){}
else{
client_cmd(id,"drop")
client_print(id,print_chat,"*:检测到你的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,"*:检测到你当前的CD版本过旧,请退出后更新重进,否则你不能拿到此%s武器!",wpnname)
}
}
return PLUGIN_CONTINUE
}修改武器限制即可 见红色区域!
回复: 【注意】抓外挂出身进来帮助我修改一下源代码![No-CD]
是不是把红色部分删除就行了?回复: 【注意】抓外挂出身进来帮助我修改一下源代码![No-CD]
Post by xiaolysh是不是把红色部分删除就行了?
恩 虽然我没用过这个插件 但按你所说的要求是这样修改的。
回复: 【注意】抓外挂出身进来帮助我修改一下源代码![No-CD]
好,非常感谢,,我测试一下,,谢谢您!回复: 【注意】抓外挂出身进来帮助我修改一下源代码![No-CD]
Post by 抓外挂出身试试看!~~看有效果没?
不错,这个可以用,我现在需要一个AMX的,麻烦你编译一个给我,我编译的不可用,不知道为何?我修改后的源代码直接不可以编译!是那里出错了?
页:
[1]