|
发表于 2011-1-22 05:40:54
|
显示全部楼层
来自 中国–云南–昆明
本帖最后由 zhangwei3080 于 2011-1-22 05:47 编辑
lzh.amxx核心代码简易版 (还是有这个BUG问题的) 要没有BUG的就联系我把QQ:383010351
#include <amxmodx>
new lastWeap[33]
new DQWeap[33]
public plugin_init()
{
server_cmd("alias name")
register_clcmd("lastinv","MyLast")
register_event("CurWeapon","SwitchWeapon","be","1=1")
}
public MyLast(id)
{
if (!is_user_alive(id))
return PLUGIN_HANDLED
static WName[32]
get_weaponname(lastWeap[id],WName,31)
engclient_cmd(id,WName)
return PLUGIN_HANDLED
}
public SwitchWeapon(id)
{
new tmp = read_data(2)
if (DQWeap[id]!= tmp)
{
lastWeap[id] = DQWeap[id]
DQWeap[id] = tmp
}
return PLUGIN_CONTINUE
} |
|