Raised This Month: $ Target: $400
 0% 

[Req] CSW_SMOKEGRENADE


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
plazma
Senior Member
Join Date: Oct 2013
Old 10-22-2013 , 16:36   [Req] CSW_SMOKEGRENADE
Reply With Quote #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;

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


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