Raised This Month: $ Target: $400
 0% 

Weapon damage


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
~Ice*shOt
Veteran Member
Join Date: Mar 2009
Location: Lithuania
Old 01-02-2010 , 03:44   Weapon damage
Reply With Quote #1

I do xp mod and for 19 level i wanna make a weapon with big damage, i using this:

PHP Code:
damage_weaponR13 register_cvar("damage_R13-GF""5.0"); // damage multiplier R13-F

public Ham_DamageR13(idinflictorattackerFloat:damagedamagebits
{
    if (!
IsPlayer(attacker) || !g_Weapon[attacker])
            return 
HAM_IGNORED

    new 
weapon2 get_user_weapon(attacker__);
    if (
weapon2 == CSW_G3SG1)
    {
        
SetHamParamFloat(4damage get_pcvar_float(damage_weaponR13));
        return 
HAM_HANDLED;
    }
    return 
HAM_IGNORED;

but if my level is 19 g3sg1 do normal damage. I need help for this Plsss help!

Last edited by ~Ice*shOt; 01-02-2010 at 13:43.
~Ice*shOt is offline
Send a message via Skype™ to ~Ice*shOt
 



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 04:12.


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