Raised This Month: $ Target: $400
 0% 

[Req] CSW_SMOKEGRENADE


Post New Thread Reply   
 
Thread Tools Display Modes
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
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 10-22-2013 , 17:41   Re: [Req] CSW_SMOKEGRENADE
Reply With Quote #2

Explain what do you want to do "creating smokegrenade"
__________________
alan_el_more is offline
plazma
Senior Member
Join Date: Oct 2013
Old 10-22-2013 , 17:55   Re: [Req] CSW_SMOKEGRENADE
Reply With Quote #3

remove DMG_NADE and set CSW_SMOKEGRENADE ...
plazma is offline
alan_el_more
Veteran Member
Join Date: Jul 2008
Location: amxmodx-es.com
Old 10-22-2013 , 18:18   Re: [Req] CSW_SMOKEGRENADE
Reply With Quote #4

Smokegrenade doesn't make damage
What are you trying to do?
__________________
alan_el_more is offline
Old 10-23-2013, 03:44
LordOfNothing
This message has been deleted by ConnorMcLeod. Reason: troll, or posting random confusing code, or posting for posts count
Reply


Thread Tools
Display Modes

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