fjwave 发表于 2007-4-22 23:41:58

求丢手枪换刀插件AMX

求丢手枪换刀插件
最好是AMX~~
或AMXX带源代码..

qq457417918 发表于 2007-4-23 10:19:59

回复: 求丢手枪换刀插件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]
查看完整版本: 求丢手枪换刀插件AMX