Raised This Month: $ Target: $400
 0% 

Show damage


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Min2liz
AlliedModders Donor
Join Date: Feb 2008
Location: Street
Old 03-08-2010 , 06:14   Show damage
Reply With Quote #1

Hi,

I trying to do that script show how much damage I done for another player.

Here is a code:

PHP Code:
#include <amxmodx>
#include <amxmisc>
#include <fakemeta_util>

public plugin_init() {
      
        
register_event("Damage""eDamage""b""2!0""3=0""4!0")

        
// Damage stuff
    
g_hudmsg1 CreateHudSyncObj()    
    
g_hudmsg2 CreateHudSyncObj()
}
public 
eDamage(id) {
       if (
PlayerDamage[id]) {
        static 
attackerattacker get_user_attacker(id)
        static 
damagedamage read_data(2)          
        
set_hudmessage(255000.450.5020.14.00.10.1, -1)
        
ShowSyncHudMsg(idg_hudmsg2"%i^n"damage)      
        
set_hudmessage(0100200, -1.00.5520.14.00.020.02, -1)
        
ShowSyncHudMsg(attackerg_hudmsg1"%i^n"damage)            
       }

PlayerDamage[id] == 1

but this show for me only if someone did damage to me and display, but not what I did for another player. If I throw HE to my self, it's show how much I done damage to my self (victim), and how much done (attacker).

That's wrong with this one? Anyone maybe can help?
Min2liz is offline
 



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 08:48.


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