Hello and welcome to our community! Is this your first visit?
Register
Enjoy an ad free experience by logging in. Not a member yet? Register.
Results 1 to 8 of 8
  1. #1
    New to the CF scene
    Join Date
    Jul 2012
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts

    Help with a piece of code

    Hello guys, first post here, My name is John and im 20 just to tell you a small bit about me, what im here for is a specific peace of help for a specific type of problem.

    The problem is, i need a piece of code to detect when a String of a script is used on a server, and the server to auto kick them.

    This is how you get the script to work.

    Cheat engine > The Games exe > Scan this line
    private ["_dummy"]; _dummy = [_this,"onload"] execVM "\ca\ui\scripts\dedicatedServerInterface.sqf";
    Then when the value is added, select the value and copy this piece of script onto it
    _abox = "AmmoBoxBig" createVehicle (position player); [_abox] execVM "\MyScripts\cargo.sqf";
    After you have done that process, the final value in cheat engine will look like this
    _abox = "AmmoBoxBig" createVehicle (position player); [_abox] execVM "\MyScripts\cargo.sqf";
    Save the process and quit Cheat engine, then open the game ( Game has to be running while doing the process )

    In the game, Right shift + P will enable this to work, im trying to find a way for it to be hard-wired into the system so when the string is recognised as incorrect the game will either A - Ban you or B Kick you.

    The game's anti cheat will recognise Cheat engine running, but as you are not entering a server with cheat engine open, nothing will happen. As the string has already been attached while you was in the multilayer browser, thus not entering the server where the anti-cheat is activated

    Is there a way for this to be fixed with a small piece of code, if so can anyone help as im fresh out of ideas. And i am not a very advanced coder and i thought posting on the forums and asking a wider audience was my best shot.

    Thank you for reading my post, and i hope we can come up with some ideas.

    John

    Edit, For the /Myscripts/cargo.sqf part, that is the script with all the items this will spawn, and it will spawn 100 of each item in a crate, so it would be 100 of Gun A, Gun B, Gun C, 100 of each type of ammo, 100 of everything in a create in a general 5CM radius of the players current location. and im a bit hesitant to share that, but i can do if needed.

    Edit 2, Another option could be having something detect that and having the box appear in an un-reachable location like in the sky for example.
    Last edited by Tempz1992; 07-23-2012 at 01:21 AM. Reason: Added 2 edit's for clarification

  • #2
    Senior Coder alykins's Avatar
    Join Date
    Apr 2011
    Posts
    1,835
    Thanks
    42
    Thanked 199 Times in 198 Posts
    is the game running your program? you could read the input stream (as I am assuming the game has keyboard interaction) and scan to see if the combination "shift + P" was entered and then act accordingly.

    I code C hash-tag .Net
    Reference: W3C W3CWiki .Net Lib
    Validate: html CSS
    Debug: Chrome FireFox IE

  • #3
    New to the CF scene
    Join Date
    Jul 2012
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by alykins View Post
    is the game running your program? you could read the input stream (as I am assuming the game has keyboard interaction) and scan to see if the combination "shift + P" was entered and then act accordingly.
    Hmm, that's not really time effective for me as i would have a mass amount of logs to go through, that's why i was wondering if there was something i could add to have the auto kick feature or auto ban.

  • #4
    Senior Coder alykins's Avatar
    Join Date
    Apr 2011
    Posts
    1,835
    Thanks
    42
    Thanked 199 Times in 198 Posts
    you're missing what i was asking.... I'm asking if you can read the stream that is going to the program before it goes to the program and detect that key combination-- not by physically reading it, but by intercepting, and then re-outputting... acting like a buffer zone.

    I code C hash-tag .Net
    Reference: W3C W3CWiki .Net Lib
    Validate: html CSS
    Debug: Chrome FireFox IE

  • #5
    New to the CF scene
    Join Date
    Jul 2012
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by alykins View Post
    you're missing what i was asking.... I'm asking if you can read the stream that is going to the program before it goes to the program and detect that key combination-- not by physically reading it, but by intercepting, and then re-outputting... acting like a buffer zone.
    Hmm, im not really sure to be honest with you

  • #6
    New to the CF scene
    Join Date
    Jul 2012
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Hmm, small note, if you do not use the process via cheat-engine and open the game and press Shift + P the anti-cheat will kick you for trying to run a script.

    However, if you open cheat engine and follow the process i posted at the top, then the anti-cheat does not pick up on the script been run when pressing Shift + P

    So, need something that can notice the scripts even after exiting Cheat engine, as the game will not recognise cheat engine once it has been closed, but the scripts already work.

    It's basically like cheat engine is bypassing the security and allowing the scripts to be run, thus not kicking you, wondering if there is a way around this so it notices the script even though cheat engine has been closed.
    Last edited by Tempz1992; 07-24-2012 at 10:35 PM.

  • #7
    Regular Coder primefalcon's Avatar
    Join Date
    Aug 2008
    Location
    /home/primefalcon/
    Posts
    678
    Thanks
    8
    Thanked 39 Times in 39 Posts
    just a tip, when this is not a specific language forum, might help if you mention what language your using.... for 2 reasons, people fluent in said language might look when otherwise they wont, and secondly people not fluent in said language wont waste time by entering thread

  • #8
    New to the CF scene
    Join Date
    Jul 2012
    Posts
    5
    Thanks
    0
    Thanked 0 Times in 0 Posts
    Quote Originally Posted by primefalcon View Post
    just a tip, when this is not a specific language forum, might help if you mention what language your using.... for 2 reasons, people fluent in said language might look when otherwise they wont, and secondly people not fluent in said language wont waste time by entering thread
    C+/C++ would probably be the best language to write it in.


  •  

    Posting Permissions

    • You may not post new threads
    • You may not post replies
    • You may not post attachments
    • You may not edit your posts
    •