Raised This Month: $51 Target: $400
 12% 

Block secondary knife attack for a certain time


Post New Thread Reply   
 
Thread Tools Display Modes
DeMNiX
Veteran Member
Join Date: Nov 2011
Location: Russia
Old 07-23-2018 , 04:35   Re: Block secondary knife attack for a certain time
Reply With Quote #21

Quote:
RegisterHam(Ham_Weapon_PrimaryAttack, "weapon_knife", "fw_Knife_PrimaryAttack");
RegisterHam(Ham_Weapon_SecondaryAttack, "weapon_knife", "fw_Knife_SecondaryAttack_Post", true);
facepalm
stop use both hooks
just use post status
u dont needed to block pre, because offset will block attack

Spoiler



this variant is valid
https://forums.alliedmods.net/showpo...9&postcount=19

just add some code in it
__________________
My channel with test codes
https://www.youtube.com/user/demnix03

Zombie Riot [Scenario & bots-zombie 11.11.2023]
https://youtu.be/8ZZan-aq2sc

Last edited by DeMNiX; 07-23-2018 at 04:38.
DeMNiX is offline
Celena Luna
Veteran Member
Join Date: Aug 2013
Location: Nagazora
Old 07-23-2018 , 04:39   Re: Block secondary knife attack for a certain time
Reply With Quote #22

Quote:
Originally Posted by DeMNiX View Post
facepalm
stop use both hooks
just use post status
u dont needed to block pre, because offset will block attack

Spoiler



this variant is valid
https://forums.alliedmods.net/showpo...9&postcount=19

just add some code in it
Noted
I wrote "bullshit" stuff but I will know what I did wrong and learn from it.
So please don't be so harsh on me ==
__________________
My plugin:

Last edited by Celena Luna; 07-23-2018 at 04:47.
Celena Luna is offline
Reply



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


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