View Single Post
D.Moder
I uploaded 2 great gameplay plugins here
Join Date: Sep 2009
Location: Sin city
Old 03-12-2015 , 08:26   Re: [CSGO]Any way to force +attack?
Reply With Quote #7

Quote:
Originally Posted by shavit View Post
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.
__________________
Creator of COD-Life (Half COD, Half Life)
https://forums.alliedmods.net/showthread.php?t=261162
twitter: @D_Moder_61216
D.Moder is offline