Raised This Month: $ Target: $400
 0% 

how to stop grenades damage


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
GhostMan
Senior Member
Join Date: Jun 2012
Old 07-16-2012 , 08:41   how to stop grenades damage
Reply With Quote #1

PHP Code:
public hook_TakeDamage(victimattackeruselessFloat:damagedamagebits) {
 
     if(!
is_user_connected(victim) || !is_user_connected(attacker))
        return 
HAM_IGNORED
    
    
static classname[8]
    
pev(uselesspev_classnameclassnamecharsmax(classname))
    
    if(
g_iTimeLeft 0)
    {
        if((
equal(classname"grenade")))
        {
            return 
HAM_SUPERCEDE
        
}
    }
    return 
HAM_IGNORED

This one doesnt work. If i put (1<<24) its not working too. http://forums.alliedmods.net/showpos...8&postcount=71
Quote:
// For grenade damage (In CS) the bits is equal to (1<<24)
GhostMan 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 15:18.


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