Quantcast

Jump to content

» «
Photo

GTA SA/VC/III: How to create a cheat code!

1 reply to this topic
bananaking13
  • bananaking13

    if you like anime, you're an insecure tasty-ass fruit

  • Members
  • Joined: 22 Feb 2017
  • Seychelles

#1

Posted 17 March 2017 - 08:19 PM

Hesoyam, Rocketman, monstermash... Some of the greatest GTA memories were writing cheat codes on a papers, and losing the paper would mean you go to a website and keep writing.

 

Now here is how you can make a cheat code:

We'll open up with our first line. We'll open a thread: Keypress1.

 

:KEYPRESS1
 
Now we put if or.
 
:KEYPRESS1
if or
 
Next up is the letter we pick. For a list of letter codes, open the spoiler
 
Spoiler
 
We're going to do the cheat code "BOATMAN", which will make your lung affinity maxed out. 
 
So the next part of the code you have to get the player to wait 0 ms to prevent a crash loop, then jf the KEYPRESS1 thread. after that you jump to KEYPRESS2. For perfect example look at this..interesting thing below
:KEYPRESS1
if or
0420:   key_pressed 66 //B
 wait 0 ms
jf @KEYPRESS1
jump @KEYPRESS2

See, here we execute the first letter. B. Now for the next, which is O.

 

When you do all the letters except first and last, you have to do a different formula. The first and last one are different too.

:KEYPRESS2
while true
if or
0420:   key_pressed 79  // O
 wait 0 ms
jf @KEYPRESS2
jump @KEYPRESS3

:KEYPRESS3
while true
if or
0420:   key_pressed 65  // A
 wait 0 ms
jf @KEYPRESS3
jump @KEYPRESS4

:KEYPRESS4
while true
if or
0420:   key_pressed 84  // T
 wait 0 ms
jf @KEYPRESS4
jump @KEYPRESS5

:KEYPRESS5
while true
if or
0420:   key_pressed 77  // M
 wait 0 ms
jf @KEYPRESS5
jump @KEYPRESS6

:KEYPRESS6
while true
if or
0420:   key_pressed 65  // A
 wait 0 ms
jf @KEYPRESS6
jump @KEYPRESS7

Here we have finished the entire cheat code line but only one thing is left: the closing line

:KEYPRESS11
while true
if or
0420:  key_pressed 78  // N
 wait 0 ms  
jf KEYPRESS11
07AA: show_permanent_text_box 'Cheat Activated.'
07AA: change_integer_stat 225 to 1000  // lung capacity 

Explanation to everything post-jf KEYPRESS11

07AA: show_permanent_text_box 'Cheat Activated.'

Now SA does not think that this is a cheat code: All it does is you write it and a small effect happens. So to make the player say "yeah that's a cheat code!" you do this.

07AA: change_integer_stat 225 to 1000  // lung capacity 

Now this basically just does the code effect. The ID for lung capacity is 225. The maximum level is 1000. Not hard, right?

  • Arrow likes this

GR33N
  • GR33N

    Skin Maker

  • Members
  • Joined: 24 Aug 2010

#2

Posted 18 March 2017 - 11:04 PM

Nice tutorial, but I'm left with 2 questions now. :D
1. Is this a cleo script?
2. Where is the code for the original cheats located? [I want to see the code for the orignal cheats from GTA: VC]





1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users