Raised This Month: $ Target: $400
 0% 

Efficent way to block secondary Attack of knife


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
yokomo
Surprise Ascot!
Join Date: May 2010
Location: Malaysia
Old 01-06-2014 , 09:01   Re: Efficent way to block secondary Attack of knife
Reply With Quote #7

This will block stab and replace animation to idle.
You need New Hamsandwich module.
PHP Code:
#include <amxmodx>
#include <hamsandwich>

public plugin_init()
{
    
register_plugin("No Stab""0.0.1""wbyokomo")
    
RegisterHam(Ham_Weapon_SecondaryAttack"weapon_knife""OnKnifeSecAtk")
}

public 
OnKnifeSecAtk(ent)
{
    
ExecuteHamB(Ham_CS_Weapon_SendWeaponAniment00)
    return 
HAM_SUPERCEDE;

yokomo 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:06.


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