Raised This Month: $ Target: $400
 0% 

[HELP] Code for Damage Multiplier


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Exolent[jNr]
Veteran Member
Join Date: Feb 2007
Location: Tennessee
Old 06-29-2009 , 21:52   Re: [HELP] Code for Damage Multiplier
Reply With Quote #8

Quote:
Originally Posted by shadow.hk View Post
PHP Code:
#include < amxmodx >
#include < fakemeta >
#include < hamsandwich >

#define MULTIPLY    2.0

public plugin_init ( )
    
RegisterHam Ham_TakeDamage"player""ham_player_damage" );
    
public 
ham_player_damage e_Victime_Inflictore_AttackerFloat:f_Damagem_DamageBits )
{
    if ( 
g_ExtraDamage[e_Attacker] && m_DamageBits & ( DMG_NEVERGIB DMG_BULLET ) )
    {
        
pev e_Victimpev_dmg_takef_Damage );
        
SetHamParamFloat 4f_Damage MULTIPLY );
    }

Should be:

PHP Code:
#include < amxmodx >
#include < fakemeta >
#include < hamsandwich >

#define MULTIPLY    2.0

new g_iMaxPlayers;

public 
plugin_init ( )
{
    
RegisterHam Ham_TakeDamage"player""ham_player_damage" );
    
    
g_iMaxPlayers get_maxplayers( );
}
    
public 
ham_player_damage e_Victime_Inflictore_AttackerFloat:f_Damagem_DamageBits )
{
    if ( 
<= e_Attacker <= g_iMaxPlayers && g_ExtraDamage[e_Attacker] && m_DamageBits & ( DMG_NEVERGIB DMG_BULLET ) )
    {
        
pev e_Victimpev_dmg_takef_Damage );
        
SetHamParamFloat 4f_Damage MULTIPLY );
    }

__________________
No private work or selling mods.
Quote:
Originally Posted by xPaw View Post
I love you exolent!
Exolent[jNr] 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 15:42.


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