Raised This Month: $ Target: $400
 0% 

Double Damage


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
Napoleon_be
Veteran Member
Join Date: Jul 2011
Location: Belgium
Old 01-11-2020 , 08:16   Double Damage
Reply With Quote #1

I'm trying to set double damage when a certain boolean is true
PHP Code:
new bool:bHasWeapon[33]; 
Is this the way to do it or is there a better way? I've found this from a post of 2011 which is why i'm asking since it might be outdated.

PHP Code:
public PreDoubleDamage(idInflictorAttackerFloat:DamageDamagebits)
{
    if(!(
<= Attacker <= get_maxplayers()) || Attacker != Inflictor || !bHasWeapon[Attacker])
    {
        return 
HAM_IGNORED;
    }
    
    
SetHamParamFloat(4Damage 2); 
    return 
HAM_HANDLED;

Original thread: https://forums.alliedmods.net/showthread.php?t=174279
__________________

Last edited by Napoleon_be; 01-11-2020 at 08:19.
Napoleon_be is offline
Send a message via Skype™ to Napoleon_be
 


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:56.


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