下面是引用 ryoson 于 2010-01-14 20:19 发表的 :
刚才想试一试弄个插件
将某人有100血时变成250血
结果转不到amxx
#include <amxmodx>
#include <fakemeta>
#include <fun>
#include <cstrike>
#define PLUGIN "250hp"
#define VERSION "1.0"
#define AUTHOR "MyChat数位男女会员:sk@.@"
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("ResetHUD", "hp", "b")
}
public hp(id)
{
new hp = 250 //你要的血量
set_user_health(id,hp)
return PLUGIN_CONTINUE
}
应该可以