Quote:
Originally Posted by shavit
pseudo code of the old syntax (I have no idea if they added object-orienated programming yet):
Code:
public Action:OnPlayerRunCmd(client, &buttons)
{
if(!(buttons & IN_ATTACK))
{
buttons |= IN_ATTACK;
return Plugin_Changed;
}
return Plugin_Continue;
}
Sorry if it doesn't work, I didn't use SourceMod in about a year
|
Oh it will. But I hope this guy knows that he needs to add the condition of when to force attack and when to release
buttons &= ~IN_ATTACK will remove the bit.
__________________