[Problem/Pytanie z HUD'em]
One ShooT
19.03.2020
Witam mam problem z HUD chcę dodać żeby było widoczne w HUD
- Forum
- Nick
-HP
- I posiadane Euro
Może ktoś wie ja to zrobić bo przy kompilacji błędy cały czas wywalają
One ShooT
19.03.2020
#include <amxmodx> #define PLUGIN "Health Display" #define VERSION "1.0" #define AUTHOR "test" 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) { if(!is_user_alive(id)) return; new Time[9]; new iHealth = get_user_health(id) new czas = get_time("%H:%M:%S",Time,8) if(iHealth > 255) // credit to vittu { set_msg_arg_int(1, ARG_BYTE, 255) } set_hudmessage(255, 255, 255, 0.25, 0.75, 2, 0.05, 1000.0, 0.1, 3.0, -1) ShowSyncHudMsg(id, g_HudSyncObj, ".:DD2+BF2:.^n|Forum: ******|^n|Godzina : %s|^n|GG H@ : *******|^n|TimeHealth: %d|^n", czas,iHealth) }