...

View Full Version : Help with a piece of code



Tempz1992
07-23-2012, 02:16 AM
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.

alykins
07-23-2012, 02:24 PM
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.

Tempz1992
07-23-2012, 11:39 PM
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.

alykins
07-24-2012, 02:57 PM
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.

Tempz1992
07-24-2012, 03:45 PM
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 :confused:

Tempz1992
07-24-2012, 07:39 PM
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.

primefalcon
07-25-2012, 12:04 AM
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

Tempz1992
07-26-2012, 04:13 PM
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.



EZ Archive Ads Plugin for vBulletin Copyright 2006 Computer Help Forum