Autopistol help
Hello guys, i have a autopistol added to my hack, but the problem its supposed to be AUTOPISTOL but it works for all weapons, like ak47 etc. So i wondered, how would i make something like Is fire weapon check
Here is the code:
Here is the code:
Code:
if (pCmd->buttons & IN_ATTACK)
{
static bool bAttack = false;
if (bAttack) pCmd->buttons |= IN_ATTACK;
else
pCmd->buttons &= ~IN_ATTACK;
bAttack = !bAttack;
}
}
