Raised This Month: $ Target: $400
 0% 

Suggestion / Subplugin Request [REQ] Survivor dmg multiplier.


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
TheDS1337
Veteran Member
Join Date: Jun 2012
Old 01-24-2013 , 11:55   Re: [REQ] Survivor dmg multiplier.
Reply With Quote #5

You need this ?
Code:
#include < amxmodx >
#include < hamsandwich >
#include < zombieplague >

new gpCvarSurvivorDamageMulti;

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

public Forward_TakeDamage( iVictim, iInflictor, iAttacker, Float:fDamage, sDamageBits )
{
	if( zp_get_user_survivor( iAttacker ) )
	{
		fDamage *= get_pcvar_float( gpCvarSurvivorDamageMulti )
		SetHamParamFloat( 4, fDamage );
	}
}
Enjoy it,
TheDS1337 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