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)