Raised This Month: $ Target: $400
 0% 

[REQ] Command Help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Torge
Veteran Member
Join Date: Oct 2011
Old 08-11-2012 , 16:51   Re: [REQ] Command Help
Reply With Quote #2

Try it, it's for double damage:

PHP Code:
#include <amxmodx>
#include <hamsandwich>

new cvar_dmg;

public 
plugin_init()
{
         
RegisterHam(Ham_TakeDamage"player""fw_TakeDamage");

         
cvar_dmg register_cvar("zp_dmg""2");
}

public 
fw_TakeDamage(victiminflictorattackerFloat:damage)
{
        if (
get_user_weapon(attacker) == CSW_M4A1)
        {
            
SetHamParamFloat(4damage get_pcvar_float(cvar_dmg))
        }


Last edited by Torge; 08-11-2012 at 16:52.
Torge 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 22:10.


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