下面是引用 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
}
應該可以