Raised This Month: $ Target: $400
 0% 

Help


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
plazma
Senior Member
Join Date: Oct 2013
Old 10-22-2013 , 16:25   Help
#1

how to create here a
PHP Code:
CSW_SMOKEGRENADE 
?

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

const DMG_NADE = (1<<24)

public 
plugin_init()
{
    
register_plugin"No Self-Nade + Damage""1.1""Wrecked" )
    
    
RegisterHamHam_TakeDamage"player""HamTakeDamagePre")
}

public 
HamTakeDamagePrevicinfattFloat:dmgdmgbits )
{
    if( 
dmgbits DMG_NADE )
    {
        if( 
vic == att )
            return 
HAM_SUPERCEDE;
            
        new 
Float:newdmg dmg // use this variable to change the dmg
        
        
SetHamParamFloat4newdmg )
    }
    
    return 
HAM_IGNORED;


Last edited by plazma; 10-22-2013 at 16:27.
plazma 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 23:18.


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