Raised This Month: $ Target: $400
 0% 

I need help with my plugin


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
JusTGo
Veteran Member
Join Date: Mar 2013
Old 09-02-2019 , 15:34   Re: I need help with my plugin
Reply With Quote #10

You don't need ExecuteHamB, its used only when you want to apply a custom damage for new weapon / effect, you just want to edit the current weapon damage,

First you need to create a variable to hold player power level
and then based on that level change the damage in the forward

something like this :

PHP Code:
new g_PlayerPower[MAX_PLAYERS+1]

public 
tkDamage1(victimattackerinflictorFloat:damage)
{
    if(
g_PlayerPower[attacker] == 1)
    {
        
SetHamParamFloat(450.0)
    }
    else if(
g_PlayerPower[attacker] == 2)
    {
        
SetHamParamFloat(4100.0)
    }
    
// etc ....

__________________

Last edited by JusTGo; 09-02-2019 at 15:35.
JusTGo 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 17:19.


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