Raised This Month: $ Target: $400
 0% 

Editing Bullet Damage From Amx_Super


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Stressful
Senior Member
Join Date: Feb 2011
Old 06-15-2011 , 22:11   Editing Bullet Damage From Amx_Super
Reply With Quote #1

How do I edit the sma file to , I only want to see my damage done to my enemy . Instead of my damage done and my enemy's damage done .
PHP Code:
public on_damage(id)
{
    if(!
get_pcvar_num(bulletdamage))
        return 
PLUGIN_HANDLED

    
new attacker get_user_attacker(id)
#if defined DAMAGE_RECIEVED

    
if ( is_user_connected(id) && is_user_connected(attacker) )
    {
        new 
damage read_data(2)

        
set_hudmessage(255000.450.5020.14.00.10.1, -1)
        
ShowSyncHudMsg(idg_MsgSync2"-%i^n"damage)

#else
    
if ( is_user_connected(attacker) )
    {
        new 
damage read_data(2)
#endif
        
set_hudmessage(0100200, -1.00.5520.14.00.020.02, -1)
        
ShowSyncHudMsg(attackerg_MsgSync"-%i^n"damage)
    }
    return 
PLUGIN_CONTINUE

__________________
Stressful 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 23:30.


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