I can't seem to get a hit indicator to work at all. nothing seems to print. here's my code.
PHP Code:
public plugin_init()
{
register_plugin(PLUGIN, VERSION, AUTHOR)
register_event("Damage", "event_damage", "be", "2!0")
g_SyncOb = CreateHudSyncObj()
}
public event_damage(id)
{
new pi_attackerID, p_weapon, p_hitzone
pi_attackerID = get_user_attacker(id, p_weapon, p_hitzone)
new i_damage = read_data(2)
client_print(pi_attackerID, print_chat, "You hit him!")
set_hudmessage(181, 181, 181, 0.0, -0.5, 1, 0.1, 4.0, 0.02, 0.02, -1)
ShowSyncHudMsg(pi_attackerID, g_SyncOb, "X")
return PLUGIN_CONTINUE
}
as you can see all it will do is print an X to where i'd assume would be a little lower than the crosshair. but it doesn't. any ideas?