Raised This Month: $ Target: $400
 0% 

No knife HIT


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Author Message
kulers2010
Junior Member
Join Date: Oct 2011
Location: Latvia
Old 07-10-2012 , 11:39   No knife HIT
Reply With Quote #1

No hit attack 1 and 2

Quote:
public Fwd_PlayerPreThink(id)
{
static temp, weapon;
weapon = get_user_weapon(id, temp, temp);

if(weapon == CSW_KNIFE)
{
if(get_user_team(id) == 2)
{
//Code whitch not allow hit with attack1
static button;
button = pev(id, pev_button);
if(button & IN_ATTACK)
{
button = (button & ~IN_ATTACK ) | IN_ATTACK2;
set_pev(id, pev_button, button);
}
}
else
{
//Code whitch not allow hit with attack 1 or attack2
}
}
}
WRead this where i write, i dont know what need write (//Code whitch not allow hit with attack 1 or attack2)
kulers2010 is offline
Send a message via Skype™ to kulers2010
 


Thread Tools
Display Modes

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 15:14.


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