Raised This Month: $ Target: $400
 0% 

Block AWP Primary Attack


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
DavidJr
Senior Member
Join Date: Apr 2012
Old 10-30-2013 , 07:01   Block AWP Primary Attack
Reply With Quote #1

PHP Code:
RegisterHam(Ham_Weapon_PrimaryAttack"weapon_awp""fwd_Attack1")

public 
fwd_Attack1(ent) return HAM_HANDLED 
neither SUPERCEDE nor HANDLED works. Why?
DavidJr is offline
Bos93
Veteran Member
Join Date: Jul 2010
Old 10-30-2013 , 07:22   Re: Block AWP Primary Attack
Reply With Quote #2

m_flNextAttack + SUPERCEDE
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
DavidJr
Senior Member
Join Date: Apr 2012
Old 10-30-2013 , 08:29   Re: Block AWP Primary Attack
Reply With Quote #3

Thanks, but m_flNextAttack is for both Primary and Secondary, so I try with m_flNextPrimaryAttack but not work

Last edited by DavidJr; 10-30-2013 at 08:30.
DavidJr is offline
SpeeDeeR
Veteran Member
Join Date: Mar 2010
Location: Bulgaria
Old 10-30-2013 , 14:50   Re: Block AWP Primary Attack
Reply With Quote #4

Code:
#define	m_flNextPrimaryAttack			46

RegisterHam(Ham_Weapon_PrimaryAttack, "weapon_awp", "FwdAwpPrimaryAttack")

public FwdAwpPrimaryAttack(iEnt)
{
	set_pdata_float(iEnt, m_flNextPrimaryAttack, 9999.9, 4);
	
	return HAM_SUPERCEDE;
}

Last edited by SpeeDeeR; 10-30-2013 at 14:50.
SpeeDeeR 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 23:20.


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