Raised This Month: $ Target: $400
 0% 

Editing Bullet Damage From Amx_Super


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Stressful
Senior Member
Join Date: Feb 2011
Old 06-16-2011 , 09:42   Re: Editing Bullet Damage From Amx_Super
Reply With Quote #1

This is from amx_super .
PHP Code:
#if defined DAMAGE_RECIEVED
    
new g_MsgSync2
#endif    
    
gmsgDamage get_user_msgid("Damage")

    
register_event("Damage""on_damage""b""2!0""3=0""4!0")

    
bulletdamage register_cvar("bullet_damage","1");

public 
on_damage(id)
{
    if(!
get_pcvar_num(bulletdamage))
        return 
PLUGIN_HANDLED

    
new attacker get_user_attacker(id)
#if defined DAMAGE_DONE

    
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
Reply



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