求丢手枪换刀插件AMX
求丢手枪换刀插件最好是AMX~~
或AMXX带源代码..
回复: 求丢手枪换刀插件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
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
}http://www.dt-club.net/forum/thread/90/35063.htm
AMXX的希望你用的上
页:
[1]