apakah yang salah dari plugin yang daku coba buat ini :(
#include <amxmodx>
#include <amxmisc>
#include <fun>
#include <berton>
#define PLUGIN "HUD"
#define VERSION "1.0"
#define AUTHOR "IRFAN"
public plugin_init() {
register_plugin("HUD", "0.2", "irfan")
register_event("Health", "event_Health", "be")
}
public client_putinserver(id)
{
set_task(1.0,"drawPNG",id)
set_task(1.0,"drawhealth",id)
}
//----------------------------------------------------------------------------------------------
public drawPNG(id)
{
BX_DrawPNG(id, "hud", 255, 255, 255, 1.0, 0, 0, 0, 0.0, 0.0, 0, 2)
}
//-----------------------------------------------------------------------------------------
public event_Health(id)
{
new hp_hud[33]
BX_InitFont(id, "arial", 0, 0, 0, 20, 1);
formatex(hp_hud,31,"Health Point %03d Remaining", get_user_health(id))
BX_DrawFont(id, hp_hud, 255, 255, 255, 0.7, 1, 0.5, 0.985, 0, 1)
}
problem:
-hp cuma muncul setelah kena damage
gimana cara fixnya ya???
maap kalo acak2kan, first time bikin thread :D
help me please.... :D