View Single Post
shavit
AlliedModders Donor
Join Date: Dec 2011
Location: Israel
Old 03-12-2015 , 01:33   Re: [CSGO]Any way to force +attack?
Reply With Quote #6

Quote:
Originally Posted by Brrdy View Post
Aww okay so just have it do onplayeruncmd() then have it do the same thing but with a |???
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
__________________
retired
shavit is offline