Raised This Month: $ Target: $400
 0% 

How do I change the head dmg


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
kostov
Member
Join Date: Jan 2010
Location: Bulgaria, Sofia
Old 05-10-2010 , 14:06   How do I change the head dmg
Reply With Quote #1

How can this transformed code, so the impact to the head to take more dmg?

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

new CvarFloat

public plugin_init()
{
    
register_plugin("""""")
    
CvarFloat      register_cvar("awp_damage""50");
    
RegisterHam(Ham_TakeDamage,"player","TakeDamage");
}

public 
TakeDamage(victim,inflictor,attacker,Float:damage,damage_bits){
    if(
inflictor && inflictor)
        
SetHamParamFloat(4get_user_weapon(attacker) == CSW_KNIFE get_pcvar_float(CvarFloat) : damage)

kostov 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 03:34.


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