Mam pytanie:
jak zmnienić, żeby można byo mieć więcej HP niż 1099 na start?
Mam diablo mod`a i zainstalowalem HUD HP ale na start mam tylko 1099 HP.
#include <amxmodx>
#define PLUGIN "Health Display"
#define VERSION "1.0"
#define AUTHOR "LeviN"
new g_HudSyncObj
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_message(get_user_msgid("Health"), "Message_Health")
g_HudSyncObj = CreateHudSyncObj()
}
public Message_Health(iMsgId, MSG_DEST, id)
{
new iHealth = get_user_health(id)
if(iHealth > 255) // credit to vittu
{
set_msg_arg_int(1, ARG_BYTE, 255)
}
set_hudmessage(200, 100, 0, 0.25, 0.75, 1500, 0.05, 1500.0, 0.1, 1.0, -1)
ShowSyncHudMsg(id, g_HudSyncObj, "Health: %d", iHealth)
}
Z góry dzięki za odpowiedź.