Raised This Month: $ Target: $400
 0% 

[HELP] Code for Damage Multiplier


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
shadow.hk
Senior Member
Join Date: Dec 2008
Location: WA, Australia
Old 06-29-2009 , 21:32   Re: [HELP] Code for Damage Multiplier
Reply With Quote #7

I don't think he meant to put that <font> thing. Just do as he said before,

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 );
    }

With...

PHP Code:
// ------
new g_ExtraDamage33 ];

/* rest of your code */

case 8:// Extra Dmg Class
        
{
            
StripUserWeapons(id)
            
cs_set_user_defuse (id1)
            
            
give_item id"weapon_knife" )
            
            
            
g_ExtraDamageid ] = 1;
            
client_print(idprint_chat,"%s You have chosen the Extra Damage Class."PREFIX); 

Last edited by shadow.hk; 06-29-2009 at 21:33. Reason: ...
shadow.hk is offline
Send a message via MSN to shadow.hk
 



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