• Right click instantly
    1 replies, posted
So I've been working on my dead ringer for a year now and my dead ringer works fine for me. If I right click using another weapon then it activates/deactivates it. Here's my code : For _,p in pairs(player.GetAll()) do If p:Keydown( IN_ATTACK2 ) the p:SetNWBool( "Status", 2) And it works fine for me on my server but if anyone on my server/ I join a server with my addon tries to right click I have to spam just to get it to work. Anyone have any suggestions on how to make it instant?
You don't need to iterate thru all players. You can use http://wiki.garrysmod.com/page/GM/KeyPress with IN_ATTACK2 value
Sorry, you need to Log In to post a reply to this thread.