Can I put in FakeClientCommand +attack?
I tried it and it's not working is it just something wrong that I'm doing or is it not possible to do?
It gives me this error on the console:
Code:
Unknown command: +attack
Unknown command: -attack
The code:
PHP Code:
int weapon = GetEntPropEnt(i, Prop_Send, "m_hActiveWeapon");
if (weapon != -1)
{
int index = GetEntProp(weapon, Prop_Send, "m_iItemDefinitionIndex");
if((index == 43) || (index == 44) || (index == 45) || (index == 46) || (index == 48))
{
FakeClientCommand(i, "+attack");
FakeClientCommand(i, "-attack");
}
}