1. Oxide for Rust Legacy has been discontinued and is no longer supported. No updates or additions will be made, and Rust Legacy-specific plugin submissions will no longer be accepted. We recommend upgrading to the latest version of Rust as able.
    Dismiss Notice

Solved Detecting F5 keypress?

Discussion in 'Legacy Discussion' started by Ave Satane, Aug 17, 2015.

  1. Ave Satane

    Ave Satane Naked Wanderer

    Как сделать так чтобы, когда игроки нажимают на клавишу F5 или Вставить их кикало с сервера?

    How to make so that when players press F5 or Insert them kick from the server?
     
  2. Wulf

    Wulf Community Admin Community Admin Oxide Developer

    You can't really, there's no way to know if they hit that key, as only bound keys are sent to the server.
     
  3. Axiomaticonpc

    Axiomaticonpc Naked Wanderer

    Get VERecoilTest. Then go into the code and change this:
    rust.RunClientCommand(targetuser, "input.bind Up F4 None");
    rust.RunClientCommand(targetuser, "input.bind Down F4 None");
    rust.RunClientCommand(targetuser, "input.bind Left F4 None");
    rust.RunClientCommand(targetuser, "input.bind Right F4 None");
    rust.RunClientCommand(targetuser, "input.bind Fire Mouse0 W");
    rust.RunClientCommand(targetuser, "input.bind AltFire F4 none");
    rust.RunClientCommand(targetuser, "input.bind Sprint F4 none");
    rust.RunClientCommand(targetuser, "input.bind Duck F4 None");
    rust.RunClientCommand(targetuser, "input.bind Jump F4 None");
    rust.RunClientCommand(targetuser, "input.bind Inventory 7 None");


    Into this:
    rust.RunClientCommand(targetuser, "input.bind Up F4 None");
    rust.RunClientCommand(targetuser, "input.bind Down F2 F2");
    rust.RunClientCommand(targetuser, "input.bind Left F4 None");
    rust.RunClientCommand(targetuser, "input.bind Right F4 None");
    rust.RunClientCommand(targetuser, "input.bind Fire Mouse0 W");
    rust.RunClientCommand(targetuser, "input.bind AltFire F4 none");
    rust.RunClientCommand(targetuser, "input.bind Sprint F4 None");
    rust.RunClientCommand(targetuser, "input.bind Duck F4 None");
    rust.RunClientCommand(targetuser, "input.bind Jump F5 F5");
    rust.RunClientCommand(targetuser, "input.bind Inventory F4 None");

    Then do the /recoiltest on a player, and ask them to shoot their gun. If they jump, then it will mean they are opening the menu to turn off their no recoil (Steven Hacks AKA suicide hacks) if they walk backwards, then it means they are using A3MON! Hope I could help!

    Simple really.

    PS: You can change the code of the "Fire Mouse0" code to: rust.RunClientCommand( targetuser, "input.bind Fire Mouse0 W"); so that way instead of asking them to shoot, just tell them to walk forward, follow you, etc. Seems less obvious you are testing them :p
     
  4. Sloxo

    Sloxo Wood Hoarder

    A3MON doesnt have any option do disable no recoil so binding F2 into run backward is for nothing because you also know that they are using A3mon when you see their no recoil ;)

    BUT, HOWEVER! You are a fucking genius, really! thank you for that post, that way its possible to detect aimjunkies hack when you simply use
    rust.RunClientCommand(targetuser, "input.bind Down Insert Insert");

    now when they are moving backward they are really trying to disable their norecoil

    thank you very much that helps a lot
     
  5. dadiao

    dadiao Naked Wanderer

    I need to download the address, Thank you very much.
     
  6. DraB

    DraB Shack Builder Plugin Developer

    @Sloxo I'm confused on this aimjunkies thing ? :p
     
  7. DraB

    DraB Shack Builder Plugin Developer

    @Sloxo Also the newer versions of a3mon have a option for no recoil.
     
  8. Sloxo

    Sloxo Wood Hoarder

    @DraB bad old times, without good anti cheats... this post was on january, i (re) opened the server dezember 2015, this was the time where i decided to not make a vanilla server again because, well you know why
    --- Double Post Merged, Aug 22, 2016 ---
    oh and as far as i know there are only 3 public a3mon versions out there which everyone can get:
    the original jul 2014 release with no recoil hack - which you cant disable
    the december 2014 release from some guy who just removed completely the no recoil hack
    and the update of the december 2014 where the only difference is that the date is correct (1may)

    never saw a public version where you can toggle no recoil but you probably know it better. anyways, F2 binding is still not required to detect these A3MON versions if an real admin is testing, as long as a3mons biggest fail got not patched