Raised This Month: $ Target: $400
 0% 

hit indicator


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Liverwiz
Veteran Member
Join Date: Feb 2010
Location: Maryland
Old 04-30-2012 , 16:40   hit indicator
Reply With Quote #1

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(PLUGINVERSIONAUTHOR)
    
register_event("Damage""event_damage""be""2!0")
    
    
g_SyncOb CreateHudSyncObj()
}

public 
event_damage(id)
{
    new 
pi_attackerIDp_weaponp_hitzone
    pi_attackerID 
get_user_attacker(idp_weaponp_hitzone)

    new 
i_damage read_data(2)
    
    
client_print(pi_attackerIDprint_chat"You hit him!")
    
    
set_hudmessage(1811811810.0, -0.510.14.00.020.02, -1)
    
ShowSyncHudMsg(pi_attackerIDg_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?

Last edited by Liverwiz; 04-30-2012 at 16:41.
Liverwiz is offline
 


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 07:54.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode