Raised This Month: $ Target: $400
 0% 

Suggestion / Subplugin Request [REQ] Survivor dmg multiplier.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Sn!ff3r
Veteran Member
Join Date: Aug 2007
Location: Poland
Old 01-25-2013 , 04:42   Re: [REQ] Survivor dmg multiplier.
Reply With Quote #7

Just try it
PHP Code:
#include < amxmodx >
#include < hamsandwich >
#include < zombieplague >

new gpCvarSurvivorDamageMulti;

public 
plugin_init( )
{
    
register_plugin"[ZP] Addon: Survivor Damage Multi""1.0""De{a}gLe" );
    
RegisterHamHam_TakeDamage"player""Forward_TakeDamage" );
    
    
gpCvarSurvivorDamageMulti register_cvar"zp_survivor_damage_multi""3.0" );
}

public 
Forward_TakeDamageiVictimiInflictoriAttackerFloat:fDamagesDamageBits )
{
    if(!
is_user_connected(iAttacker))
        return
    
    
    if( 
zp_get_user_survivoriAttacker ) )
    {
        
fDamage *= get_pcvar_floatgpCvarSurvivorDamageMulti )
        
SetHamParamFloat4fDamage );
    }

__________________
Join US - custom Zombie Server - Custom Addons:



Sn!ff3r is offline
Send a message via Skype™ to Sn!ff3r
 


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 21:04.


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