Raised This Month: $ Target: $400
 0% 

Suggestion / Subplugin Request [REQ] Survivor dmg multiplier.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
WaLkMaN
Senior Member
Join Date: Oct 2010
Location: Varna, Bulgaria
Old 01-25-2013 , 15:47   Re: [REQ] Survivor dmg multiplier.
Reply With Quote #8

Quote:
Originally Posted by Sn!ff3r View Post
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 )
    }

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


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