Raised This Month: $ Target: $400
 0% 

How to block grenade throw


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
FromTheFuture
Senior Member
Join Date: Jan 2013
Old 04-23-2013 , 16:18   Re: How to block grenade throw
Reply With Quote #2

I try with Ham_Item_Deploy, but if I have more than one grenade it's does not work.

PHP Code:
    RegisterHamHam_Item_Deploy"weapon_hegrenade""Deploy_Post", .Post true );

public 
Deploy_PostpEntity )
{
    if( !
IsValidPrivateDatapEntity ) )
    {
        return 
HAM_HANDLED;
    }

    new 
id get_pdata_cbasepEntity OFFSET_WEAPONOWNER OFFSET_LINUX_WEAPONS );
        
set_pdata_float(idm_flNextAttackget_gametime( ), OFFSET_LINUX );
    
    
    return 
HAM_IGNORED;

FromTheFuture 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 10:46.


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