Raised This Month: $ Target: $400
 0% 

Show damage


Post New Thread Reply   
 
Thread Tools Display Modes
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
NiQu
Veteran Member
Join Date: Nov 2009
Old 03-08-2010 , 06:16   Re: Show damage
Reply With Quote #2

why? there's already something like this built into amxmodx or in the stat module.. i dont remember.
__________________
My Projects
  • RoTAPI V0.0.1 ------- Private
    • Progress - [||||||||||]
  • CashMod V0.0.6 ----- Public
    • Progress - [||||||||||]
  • CashMod V0.0.7 ----- Public
    • Progress - [||||||||||]
NiQu is offline
Min2liz
AlliedModders Donor
Join Date: Feb 2008
Location: Street
Old 03-08-2010 , 06:18   Re: Show damage
Reply With Quote #3

I need that if I shoot to anyone and done damage (50hp) it will show for me this how much I done. If there is already anything similar to this, can tell?

Thanks
Min2liz is offline
NiQu
Veteran Member
Join Date: Nov 2009
Old 03-08-2010 , 07:04   Re: Show damage
Reply With Quote #4

Its built right into amxmodx i think.
__________________
My Projects
  • RoTAPI V0.0.1 ------- Private
    • Progress - [||||||||||]
  • CashMod V0.0.6 ----- Public
    • Progress - [||||||||||]
  • CashMod V0.0.7 ----- Public
    • Progress - [||||||||||]
NiQu is offline
SpILL
Veteran Member
Join Date: Oct 2009
Location: Karachi, Pakistan
Old 03-08-2010 , 07:08   Re: Show damage
Reply With Quote #5

Search Keyword "Bullet Damage".
__________________


SpILL is offline
Reply


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


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