KnightProwl Posted November 15, 2008 Share Posted November 15, 2008 (edited) hello, i was wondering, how would i go about doing this, cause i want to make my own codes for my batman mod now, cause no on else will, and so, id figure id start with something simple, ok, this is what i want to know, is it possible, to make a cheat code to change into certain clothes, haircuts, ect, and then with the same cheat, deactivate and and go back to your normal clothes, if so, can someone tell me what opcodes to look for, and then, help me with my code if there are any mistakes, also, id just like to say, that since i cannot find a coder atm, and probably never will find a true coder, and since its up to me now, i guess you can just help me with what i need, i mean, ill make the code, or try to do my best on it, then, some pro coder can tell me where im wrong, and then ill eventually have all the codes and all the missions, ect.., cause now im serious about coding, cause i cant find anyone to help me anymore, so ill learn myself, anyways, plz, once i find an example cheat ill start on my own, anyways, thanks for all the support and fans of my batman mod, anyways, ttyl, peace KP [EDIT] - ok guys, here is my, well, sorta working code, idk what i did or didnt do, but no crashes, but he auto spawns in all of the suits, making the game slow and non respondent, i want to make it to where you can change suits by pressing a button, not auto be in all suits, so plz, anyone willing to tell me where i am wrong, plz tell me, anyways, here is my code below, anyways, ttyl, peace guys // This file was decompiled using sascm.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007{$VERSION 3.1.0027}{$CLEO .cs}//-------------MAIN---------------03A4: name_thread 'BATSUITS' 0001: wait 0 ms 00D6: if 0256: player $PLAYER_CHAR defined 004D: jump_if_false @BATSUITS_39 :BATSUITS_390001: wait 0 ms 00D6: if 00E1: player 0 pressed_key 49 087B: set_player $PLAYER_CHAR clothes_texture "SHELLSUIT" model "TRACKYTOP1" body_part 0 087B: set_player $PLAYER_CHAR clothes_texture "SHELLSUITTR" model "TRACKTR" body_part 2 087B: set_player $PLAYER_CHAR clothes_texture "BIKER" model "BIKER" body_part 3 087B: set_player $PLAYER_CHAR clothes_texture "HOCKEY" model "HOCKEYMASK" body_part 16 070D: rebuild_player $PLAYER_CHAR 0793: save_player_clothes 0001: wait 0 ms 00D6: if 00E1: player 0 pressed_key 49 0794: restore_player_clothes 004D: jump_if_false @BATSUITS_190 :BATSUITS_1900001: wait 0 ms 00D6: if 00E1: player 0 pressed_key 50 087B: set_player $PLAYER_CHAR clothes_texture "COUNTRYTR" model "COUNTRYTR" body_part 17 087B: set_player $PLAYER_CHAR clothes_texture "TIMBERGREY" model "BASK1" body_part 3 087B: set_player $PLAYER_CHAR clothes_texture "HELMET" model "HELMET" body_part 16 070D: rebuild_player $PLAYER_CHAR 0793: save_player_clothes 0001: wait 0 ms 00D6: if 00E1: player 0 pressed_key 50 0794: restore_player_clothes 004D: jump_if_false @BATSUITS_312 :BATSUITS_3120001: wait 0 ms 00D6: if 00E1: player 0 pressed_key 51 087B: set_player $PLAYER_CHAR clothes_texture "CORNROWS" model "CORNROWS" body_part 1 087B: set_player $PLAYER_CHAR clothes_texture "TIMBERGREY" model "BASK1" body_part 3 087B: set_player $PLAYER_CHAR clothes_texture "GARAGELEG" model "GARAGETR" body_part 17 070D: rebuild_player $PLAYER_CHAR 0793: save_player_clothes 0001: wait 0 ms 00D6: if 00E1: player 0 pressed_key 51 0794: restore_player_clothes 004D: jump_if_false @BATSUITS_437 :BATSUITS_4370001: wait 0 ms 00D6: if 00E1: player 0 pressed_key 52 087B: set_player $PLAYER_CHAR clothes_texture "GIMPLEG" model "GIMPLEG" body_part 17 070D: rebuild_player $PLAYER_CHAR 0793: save_player_clothes 0001: wait 0 ms 00D6: if 00E1: player 0 pressed_key 52 0794: restore_player_clothes 0002: jump @BATSUITS_39 Edited November 15, 2008 by KnightProwl Link to comment Share on other sites More sharing options...
coin-god Posted November 15, 2008 Share Posted November 15, 2008 thread 'LUNAR' while [email protected] = -229907 // +32bits; next 4 bytes/chars in the last keypresses block008B: [email protected] = &0([email protected],1i)0085: [email protected] = [email protected] div([email protected], 0x100)mul([email protected], 0x100)0062: [email protected] -= [email protected] // 5th char is the last in the second block:if [email protected] == 0x4C // test if L is the 5th pressed keythen [email protected] = -229908 008B: [email protected] = &0([email protected],1i) if [email protected] == 0x554E4152 // test if player also typed UNAR after that then 03E5: text_box 'CHEAT1' // Cheat activated TYype here the code you want to run when the cheat is typed. end endwait 1000end Its the script i use sometimes to make custome Cheat Codes, Seeman explained it more . In My Sig you can go to Mem Hacking and see it. Link to comment Share on other sites More sharing options...
Caixa Posted November 16, 2008 Share Posted November 16, 2008 Hi, I need a simple help and don't want open a ney topic...were I found how modify this part of code: 04A4: [email protected] == 1095648338 // @ == any To a word of my prefence?I dont find the codes for keypad I'm modifying a 3rd party script for my own use Thanks Link to comment Share on other sites More sharing options...
ZAZ Posted November 16, 2008 Share Posted November 16, 2008 KnightProwl, you made misstakes with the key_press codes 00E1: is the original key_press code and wont work with 49, 50, 51 or 52 only 00E1: player 0 pressed_key 0 till 00E1: player 0 pressed_key 19 is possible you need the cleo opcode 0AB0 0AB0: key_pressed 49//---- key 1 CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
coin-god Posted November 16, 2008 Share Posted November 16, 2008 Hi, I need a simple help and don't want open a ney topic...were I found how modify this part of code: 04A4: [email protected] == 1095648338 // @ == any To a word of my prefence?I dont find the codes for keypad I'm modifying a 3rd party script for my own use Thanks Sanny builder has the list of Hex keys in the HELP. Below the CLEO help. Look for it. Link to comment Share on other sites More sharing options...
Caixa Posted November 16, 2008 Share Posted November 16, 2008 Hi, I need a simple help and don't want open a ney topic...were I found how modify this part of code: 04A4: [email protected] == 1095648338 // @ == any To a word of my prefence?I dont find the codes for keypad I'm modifying a 3rd party script for my own use Thanks Sanny builder has the list of Hex keys in the HELP. Below the CLEO help. Look for it. I found, tomorow I try, thanks! But...the first letter of the original cheat is A and the total is ANDROM or ANDRO...the code is 1095648338 the first numbers wasn't to be 41 or 65? Link to comment Share on other sites More sharing options...
KnightProwl Posted November 17, 2008 Author Share Posted November 17, 2008 (edited) ok guys, ive almost got this, so far, i can change into each suit, but, i cant change out of them :S, all i need now is a code to change out of each suit, anyways, here is the new code that is almost working, thanks and peace guys // This file was decompiled using sascm.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007{$VERSION 3.1.0027}{$CLEO .cs}//-------------MAIN---------------03A4: name_thread 'BATSUITS' :BATSUITS_190001: wait 0 ms 00D6: if 0256: player $PLAYER_CHAR defined 004D: jump_if_false @BATSUITS_19 :BATSUITS_390001: wait 0 ms 00D6: if 0AB0: key_pressed 49 004D: jump_if_false @BATSUITS_39 087B: set_player $PLAYER_CHAR clothes_texture "SHELLSUIT" model "TRACKYTOP1" body_part 0 087B: set_player $PLAYER_CHAR clothes_texture "SHELLSUITTR" model "TRACKTR" body_part 2 087B: set_player $PLAYER_CHAR clothes_texture "BIKER" model "BIKER" body_part 3 087B: set_player $PLAYER_CHAR clothes_texture "HOCKEY" model "HOCKEYMASK" body_part 16 070D: rebuild_player $PLAYER_CHAR 0001: wait 0 ms 00D6: if 0AB0: key_pressed 49 0794: restore_player_clothes 004D: jump_if_false @BATSUITS_191 :BATSUITS_1910001: wait 0 ms 00D6: if 0AB0: key_pressed 50 004D: jump_if_false @BATSUITS_191 087B: set_player $PLAYER_CHAR clothes_texture "COUNTRYTR" model "COUNTRYTR" body_part 17 087B: set_player $PLAYER_CHAR clothes_texture "TIMBERGREY" model "BASK1" body_part 3 087B: set_player $PLAYER_CHAR clothes_texture "CORNROWS" model "CORNROWS" body_part 1 070D: rebuild_player $PLAYER_CHAR 0001: wait 0 ms 00D6: if 0AB0: key_pressed 50 0794: restore_player_clothes 004D: jump_if_false @BATSUITS_318 :BATSUITS_3180001: wait 0 ms 00D6: if 0AB0: key_pressed 51 004D: jump_if_false @BATSUITS_318 087B: set_player $PLAYER_CHAR clothes_texture "HELMET" model "HELMET" body_part 16 087B: set_player $PLAYER_CHAR clothes_texture "TIMBERGREY" model "BASK1" body_part 3 087B: set_player $PLAYER_CHAR clothes_texture "GARAGELEG" model "GARAGETR" body_part 17 070D: rebuild_player $PLAYER_CHAR 0001: wait 0 ms 00D6: if 0AB0: key_pressed 51 0794: restore_player_clothes 004D: jump_if_false @BATSUITS_440 :BATSUITS_4400001: wait 0 ms 00D6: if 0AB0: key_pressed 52 004D: jump_if_false @BATSUITS_440 087B: set_player $PLAYER_CHAR clothes_texture "GIMPLEG" model "GIMPLEG" body_part 17 070D: rebuild_player $PLAYER_CHAR 0001: wait 0 ms 00D6: if 0AB0: key_pressed 52 0794: restore_player_clothes 0002: jump @BATSUITS_19 Edited November 17, 2008 by KnightProwl Link to comment Share on other sites More sharing options...
james227uk Posted November 17, 2008 Share Posted November 17, 2008 thread 'LUNAR' while [email protected] = -229907 // +32bits; next 4 bytes/chars in the last keypresses block008B: [email protected] = &0([email protected],1i)0085: [email protected] = [email protected] div([email protected], 0x100)mul([email protected], 0x100)0062: [email protected] -= [email protected] // 5th char is the last in the second block:if [email protected] == 0x4C // test if L is the 5th pressed keythen [email protected] = -229908 008B: [email protected] = &0([email protected],1i) if [email protected] == 0x554E4152 // test if player also typed UNAR after that then 03E5: text_box 'CHEAT1' // Cheat activated TYype here the code you want to run when the cheat is typed. end endwait 1000end Its the script i use sometimes to make custome Cheat Codes, Seeman explained it more . In My Sig you can go to Mem Hacking and see it. Your sig is disabled Link to comment Share on other sites More sharing options...
ZAZ Posted November 19, 2008 Share Posted November 19, 2008 ok guys, ive almost got this, so far, i can change into each suit, but, i cant change out of them :S, all i need now is a code to change out of each suit, anyways, here is the new code that is almost working, thanks and peace guys This remove the bodypart 2 0784: $PLAYER_CHAR 0 0 2070D: rebuild_player $PLAYER_CHAR other way is to store first the current skin with 0793: save_player_clothes then change clothes and later you can rebuild CJ to the saved skin 0794: restore_player_clothes070D: rebuild_player $PLAYER_CHAR CLEO MODS CLEO Script Tutorial Link to comment Share on other sites More sharing options...
coin-god Posted November 19, 2008 Share Posted November 19, 2008 thread 'LUNAR' while [email protected] = -229907 // +32bits; next 4 bytes/chars in the last keypresses block008B: [email protected] = &0([email protected],1i)0085: [email protected] = [email protected] div([email protected], 0x100)mul([email protected], 0x100)0062: [email protected] -= [email protected] // 5th char is the last in the second block:if [email protected] == 0x4C // test if L is the 5th pressed keythen [email protected] = -229908 008B: [email protected] = &0([email protected],1i) if [email protected] == 0x554E4152 // test if player also typed UNAR after that then 03E5: text_box 'CHEAT1' // Cheat activated TYype here the code you want to run when the cheat is typed. end endwait 1000end Its the script i use sometimes to make custome Cheat Codes, Seeman explained it more . In My Sig you can go to Mem Hacking and see it. Your sig is disabled Oh Really Well you can see my PROFILE where it is displayed. Link to comment Share on other sites More sharing options...
shindogg Posted March 7, 2011 Share Posted March 7, 2011 player 0 pressed_key 49 player 0 pressed_key 50 player 0 pressed_key 51 player 0 pressed_key 52 ok sorry for the bump but i have a valid question: what buttons do those keys correspond to? i cant figure it out so help me god. i only know the keys 0-19 so could somebody please tell me all of the other keys and what they mean? for whoever tells me first. Link to comment Share on other sites More sharing options...
TheSiggi Posted March 7, 2011 Share Posted March 7, 2011 http://www.gtaforums.com/index.php?showtopic=471350 Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now