View previous topic :: View next topic |
Author |
Message |
Bexian How do I cheat? Reputation: 0
Joined: 08 Jul 2015 Posts: 5
|
Posted: Thu Jul 09, 2015 7:44 am Post subject: Same button Activate/Deactivate Function? |
|
|
Hi, i'm doing a trainer and a function is infinite healt, pratically pressing a button like(F2) it frezze, but i like to add that if i press again F2 when it's freeze, it unfreeze. It's possible to do? i see a lot of trainer that when you press a button it activate the cheat and if you press again the same button it deactivate. Thanks at who help me =)
|
|
Back to top |
|
|
Dark Byte Site Admin Reputation: 458
Joined: 09 May 2003 Posts: 25288 Location: The netherlands
|
Posted: Thu Jul 09, 2015 8:05 am Post subject: |
|
|
Seeing you posted this in the auto assembler tutorial section (Wrong section as it's not a tutorial) I am assuming you're asking about a cheat you wrote in the auto assembler
In your auto assembler script just have a [disable] section where you disable the cheat.
If your script handles more, then use a variable your script looks at.
e.g if addressx=1 then freeze else don't apply cheat
and then use a secondary aa script where you just set the value in the enable and disable part
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
Back to top |
|
|
Bexian How do I cheat? Reputation: 0
Joined: 08 Jul 2015 Posts: 5
|
Posted: Fri Jul 10, 2015 7:42 am Post subject: |
|
|
what i need to insert against of addressx? Because it is a pointer. For the aa script i dont know how to use it i'm learning now. Thanks for the help
|
|
Back to top |
|
|
Syperus Advanced Cheater Reputation: 1
Joined: 05 Jun 2011 Posts: 61
|
Posted: Fri Jul 10, 2015 8:25 am Post subject: |
|
|
I also show how to do this in C++ in my AoB tutorial if you ever decide to write your own trainer http://forum.cheatengine.org/viewtopic.php?t=582654 It's at the bottom of the tut, but here's how to do it
Code: | if(GetAsyncKeyState(VK_F1) & 1)
{
HackStatus = !HackStatus;
if(HackStatus)
{
HackON();
}
else
{
HackOFF();
}
} |
|
|
Back to top |
|
|
Bexian How do I cheat? Reputation: 0
Joined: 08 Jul 2015 Posts: 5
|
Posted: Fri Jul 10, 2015 12:57 pm Post subject: |
|
|
Syperus wrote: | I also show how to do this in C++ in my AoB tutorial if you ever decide to write your own trainer. It's at the bottom of the tut, but here's how to do it
Code: | if(GetAsyncKeyState(VK_F1) & 1)
{
HackStatus = !HackStatus;
if(HackStatus)
{
HackON();
}
else
{
HackOFF();
}
} |
|
ho, Thank you really nice. When i have time i'll try certainly. The only problem is that i'm 14 years old and for me is a bit hard. If i need help i can request you? i'm italien sucsme for bad english
|
|
Back to top |
|
|
Syperus Advanced Cheater Reputation: 1
Joined: 05 Jun 2011 Posts: 61
|
Posted: Fri Jul 10, 2015 1:43 pm Post subject: |
|
|
Bexian wrote: | If i need help i can request you? | Any problems you have just post them and I'll help with what I can, but also others will be able to help too.
|
|
Back to top |
|
|
|