|
发表于 2007-4-18 00:49:37
|
显示全部楼层
来自 中国–安徽–滁州
回复: 需求Cs1.5服防O4炸服for amx插件
#include <amxmod>
#include <amxmisc>
public plugin_init() {
register_plugin("drop weapon","1.0","hnroc")
register_clcmd("drop","dropMenu",0)
}
public dropMenu(id) {
new clip, ammo, wpnid=get_user_weapon(id,clip,ammo)
new wpnname[32]
get_weaponname(wpnid,wpnname,31)
if(equali(wpnname,"weapon_knife") || equali(wpnname,"weapon_hegenade") || equali(wpnname,"weapon_smokegrenade") || equali(wpnname,"weapon_flashbang")){
return PLUGIN_CONTINUE
}
else{
engclient_cmd(id,"drop",wpnname)
engclient_cmd(id,"weapon_knife")
return PLUGIN_HANDLED
}
return PLUGIN_CONTINUE
}
hnroc 已经给了源码了,
没事多翻翻贴子,别什么都在发贴求助!
在AMX0.95下转换就行了 |
|