Quote:
Originally Posted by Kia
Does not work.
|
Sure? lol, I've been using that code since years for blocking secondary attack on certain weapons and it works perfect
https://forums.alliedmods.net/showpo...34&postcount=9
please..
Quote:
Originally Posted by yokomo
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_SendWeaponAnim, ent, 0, 0) return HAM_SUPERCEDE; }
|
That code will be called every frame if you press the +attack2 button, it's not recommended and it's ugly also.
__________________