/* Plugin generated by AMXX-Studio */
#include <amxmodx>
#include <amxmisc>
#define PLUGIN "Nowy Plugin"
#define VERSION "1.0"
#define AUTHOR "Sn!ff3r"
new hud
public plugin_init() {
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("Health", "Health", "be")
hud = CreateHudSyncObj()
}
public Health(id)
{
static hp
hp = read_data(1)
if(hp >= 255)
{
remove_task(id)
set_hudmessage(255, 170, 0, 0.01, 0.89, 0, 6.0, 12.0)
ShowSyncHudMsg(id, hud, "Twoje hp: %d", hp)
set_task(10.0, "show_health", id)
} else {
remove_task(id)
}
}
public show_health(id)
{
static hp
hp = get_user_health(id)
if(hp >= 255)
{
set_hudmessage(255, 170, 0, 0.01, 0.89, 0, 6.0, 12.0)
ShowSyncHudMsg(id, hud, "Twoje hp: %d", hp)
set_task(10.0, "show_health", id)
}
}
Ale chcę aby pokazywał HP w tym miejscu (screen) oraz aby wyświetlało HP cały czas bo znika na pare sekund i pojawia się znów. Z góry dziękuje dam +