Raised This Month: $32 Target: $400
 8% 

Suggestion / Subplugin Request [REQ] Survivor dmg multiplier.


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Bacau.AlphaCs.Ro
BANNED
Join Date: Dec 2012
Old 01-24-2013 , 06:55   [REQ] Survivor dmg multiplier.
Reply With Quote #1

I want to multiple survivor damange [~x3] for ZPA.
I find a plugin but i take errors...
Bacau.AlphaCs.Ro is offline
ANTICHRISTUS
kingdom of weird stuff
Join Date: Jun 2010
Location: My kingdom is not in thi
Old 01-24-2013 , 08:23   Re: [REQ] Survivor dmg multiplier.
Reply With Quote #2

Quote:
Originally Posted by Bacau.AlphaCs.Ro View Post
I find a plugin but i take errors...
then ask in that plugin's thread, or in the zpa thread even if author isn't active anymore.
__________________
ANTICHRISTUS is offline
Bacau.AlphaCs.Ro
BANNED
Join Date: Dec 2012
Old 01-24-2013 , 09:26   Re: [REQ] Survivor dmg multiplier.
Reply With Quote #3

But,You can create/find a similar plugin ?

Last edited by Bacau.AlphaCs.Ro; 01-24-2013 at 09:26.
Bacau.AlphaCs.Ro is offline
ANTICHRISTUS
kingdom of weird stuff
Join Date: Jun 2010
Location: My kingdom is not in thi
Old 01-24-2013 , 10:09   Re: [REQ] Survivor dmg multiplier.
Reply With Quote #4

if I was able to do it, I would have already did it .

an advice, search the right keywords from your first post (firstly) only in titles. maybe I already saw and forgot it.
__________________

Last edited by ANTICHRISTUS; 01-24-2013 at 10:11.
ANTICHRISTUS is offline
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
Bacau.AlphaCs.Ro
BANNED
Join Date: Dec 2012
Old 01-24-2013 , 23:32   Re: [REQ] Survivor dmg multiplier.
Reply With Quote #6

Cause:
Code:
L 01/25/2013 - 06:06:16: [AMXX] Displaying debug trace (plugin "zombie_plague_advance_v1-6-1.amxx")
L 01/25/2013 - 06:06:16: [AMXX] Run time error 4: index out of bounds 
L 01/25/2013 - 06:06:16: [AMXX]    [0] zombie_plague_advance_v1-6-1.sma::native_get_user_survivor (line 11374)
L 01/25/2013 - 06:06:16: Unhandled dynamic native error
L 01/25/2013 - 06:06:16: [AMXX] Run time error 10 (plugin "s.amxx") (native "zp_get_user_survivor") - debug not enabled!
L 01/25/2013 - 06:06:16: [AMXX] To enable debug mode, add "debug" after the plugin name in plugins.ini (without quotes).
Bacau.AlphaCs.Ro is offline
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
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
Reply


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 02:17.


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