cj360 Posted February 17, 2009 Share Posted February 17, 2009 (edited) Hi me again I made this the other day it works okay till t is pressed it doesn't set the car immune. though it might be the return or the last jumps becuz I don't want label 331 to read 332 except for the jump_if_false. And I'm not sure how to 0674: to work. {$CLEO .cs}03A4: name_thread 'AUDI' :AUDI_110001: wait 500 ms 00D6: if and0038: $ACTIVE_INTERIOR == 0 03EE: player $PLAYER_CHAR controllable 0256: player $PLAYER_CHAR defined 09E7: player $PLAYER_CHAR not_frozen 8741: not actor $PLAYER_ACTOR busted 004D: jump_if_false @AUDI_11 0001: wait 0 ms 0A8D: [email protected] = read_memory 0x00969110 size 4 virtual_protect 0 00D6: if 04A4: [email protected] == 0x32303038 // 2008 004D: jump_if_false @AUDI_11 0A8C: write_memory 0x00969110 size 4 value 0 virtual_protect 0 0247: load_model #SUPERGT 038B: load_requested_models :AUDI_1130001: wait 0 ms 00D6: if 0248: model #SUPERGT available 004D: jump_if_false @AUDI_113 0001: wait 0 ms 0208: [email protected] = random_float_in_ranges -10.0 10.0 0208: [email protected] = random_float_in_ranges -10.0 10.0 04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset [email protected] [email protected] 0.0 000B: [email protected] += 1000.0 02CE: [email protected] = ground_z_at [email protected] [email protected] [email protected] 020C: create_explosion_with_radius 11 at [email protected] [email protected] [email protected] 0001: wait 0 ms 00A5: [email protected] = create_car #SUPERGT at [email protected] [email protected] [email protected] 0674: set_car_model [email protected] numberplate "SUSPECT_" 0249: release_model #SUPERGT :AUDI_331wait 0 msif and00DD: actor $PLAYER_ACTOR driving_car_with_model [email protected] 0AB0: key_pressed 84004D: jump_if_false @AUDI_331wait 0 ms if [email protected] = 0jf @AUDI_33203C0: [email protected] = actor $PLAYER_ACTOR car 0AB1: call_scm_func @SubStrings 1 @txtgod102AA: set_car [email protected] immune_to_nonplayer 1 02AC: set_car [email protected] immunities BP 1 FP 1 EP 1 CP 1 MP 1053F: set_car [email protected] tires_vulnerability 0 jump @AUDI_113:AUDI_3320AB1: call_scm_func @SubStrings 1 @txtgod002AA: set_car [email protected] immune_to_nonplayer 0 02AC: set_car [email protected] immunities BP 0 FP 0 EP 0 CP 0 MP 0053F: set_car [email protected] tires_vulnerability [email protected] = 0return:SubStrings 0A9F: [email protected] = [email protected] += 0x100A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 00062: [email protected] -= [email protected] [email protected] += 4if 0AA9: is_game_version_originaljf @SubStringsV110AA5: call 0x588BE0 num_params 4 pop 4 0 0 0 [email protected] @SubStringsret:SubStringsV110AA5: call 0x5893B0 num_params 4 pop 4 0 0 0 [email protected]:SubStringsret0AB2: ret 0:txtgod00900: "GOD MODE DEACTIVATED":txtgod10900: "GOD MODE ACTIVATED"0000: null_termitator Edited February 18, 2009 by cj360 Link to comment Share on other sites More sharing options...
james227uk Posted February 17, 2009 Share Posted February 17, 2009 I know I'm not helping here, but may I ask why you always put this: //-------------MAIN--------------- It's not necessary Link to comment Share on other sites More sharing options...
cj360 Posted February 17, 2009 Author Share Posted February 17, 2009 meh why not? Link to comment Share on other sites More sharing options...
coin-god Posted February 18, 2009 Share Posted February 18, 2009 meh why not? Well its just a commentary so it dosnt bother. But well, its not the normal way to code xD Link to comment Share on other sites More sharing options...
stripprpimp Posted February 18, 2009 Share Posted February 18, 2009 (edited) and I suppose you hold the rule book on the "normal way to code" eh? ffs- idiotas.. why don't you just post "wow, nice code man, I have no clue of wtf you're trying to do there so I'll just freepost random irrelevant crap.. that way, all the noobs will think I know wtf I'm talking about" xD edit- oops, forgot to add this.. urhrhrhrhr being that nothing's defined to return to.. I would say that's definitely contributing to your dilemma, and from my experiences, the 0674 seems to only work on cars created with a generator Edited February 18, 2009 by stripprpimp Link to comment Share on other sites More sharing options...
james227uk Posted February 18, 2009 Share Posted February 18, 2009 (edited) and I suppose you hold the rule book on the "normal way to code" Yeah, I do actually, I have it here: eh? ffs- idiotas.. why don't you just post "wow, nice code man, I have no clue of wtf you're trying to do there so I'll just freepost random irrelevant crap.. that way, all the noobs will think I know wtf I'm talking about" xD edit- oops, forgot to add this.. urhrhrhrhr being that nothing's defined to return to.. I would say that's definitely contributing to your dilemma, and from my experiences, the 0674 seems to only work on cars created with a generator I don't really know who the f*ck you think you are but it's called helping somone optimize code. Oh, and come back when you actually can code like most of us on the forum. I hate it when noobs sign up and think they are know alls. @CJ360 NICE CODE MAN! /end sarcasm to stripprpimp I'm thinking this is your problem: if [email protected] = 0jf @AUDI_332 For a check, I usually use: 0039: [email protected] == 0 And try adding [email protected] = 0 To the first part, something like this: 0247: load_model #SUPERGT 038B: [email protected] = 0 That's all I can think of really. But one thing, does the text for 'God Mode' show up? Edited February 18, 2009 by james227uk Link to comment Share on other sites More sharing options...
2pacproducer2 Posted February 18, 2009 Share Posted February 18, 2009 (edited) and I suppose you hold the rule book on the "normal way to code" Yeah, your right actually, I have it here: xD And, I think I have already created such mod, try looking in www.2pacmods.ucoz.com , in the gta sa download section, there is a mod when you type CARI the car you are sitting in will be immortal ( dont know the correct word xD ) Anyway, look at my script there, maybe it will help you. Edited February 18, 2009 by 2pacproducer2 Link to comment Share on other sites More sharing options...
stripprpimp Posted February 18, 2009 Share Posted February 18, 2009 yay! 227 actually decides to help instead of be his usual arrogant self-righteous prick self.. oh wait, he didn't decide to help until I came in and ruffled some feathers so scratch the arrogant self-righteous stuff - btw, please explain to me how erasing //something as insignificant as your reflection from the code is "optimizing" it? it isn't- you're just making up lame excuses for the ignorant behavior you display all over these boards - and believe, I knew if I didn't offer up the obvious failures, you'd come back in here and save face -lol, predictable mental simpleton - ay, here's an idea, convince yourself that I'm a noob and I can't code because all you see is that join date buahahaaha -jackass- next time, post your last post first and you won't be made a fool Link to comment Share on other sites More sharing options...
cj360 Posted February 18, 2009 Author Share Posted February 18, 2009 K thx james I'll add that and 2pac no I haven't seen that mod ur talking about but I'll look for it. Link to comment Share on other sites More sharing options...
james227uk Posted February 18, 2009 Share Posted February 18, 2009 (edited) yay! 227 actually decides to help instead of be his usual arrogant self-righteous prick self.. oh wait, he didn't decide to help until I came in and ruffled some feathers so scratch the arrogant self-righteous stuff - btw, please explain to me how erasing //something as insignificant as your reflection from the code is "optimizing" it? it isn't- you're just making up lame excuses for the ignorant behavior you display all over these boards - and believe, I knew if I didn't offer up the obvious failures, you'd come back in here and save face -lol, predictable mental simpleton - ay, here's an idea, convince yourself that I'm a noob and I can't code because all you see is that join date buahahaaha -jackass- next time, post your last post first and you won't be made a fool Only fool here is you you piece of sh*t. And at the end of the day, I don't see you helping either. Infact, I can't see that you helped anyone. And, I can't see any of your mods in the showroom. BTW: I posted my first message on my 5 min break at work, a.k.a, nightshift *reported to moderator for flaming and it's james227uk pimpy. Go and scruffle into the little hole you came from. The last thing this board needs is another noob flamer. My last word on the subject @CJ360 I mentioned it to save you time. I remember before I used to copy the exact amount of -'s ...lol. And here's 2pac's thing: http://2pacmods.ucoz.com/index/0-5 Scroll down to 'The Ultimate Car Mod' Edited February 18, 2009 by james227uk Link to comment Share on other sites More sharing options...
coin-god Posted February 18, 2009 Share Posted February 18, 2009 stripprpimp: Who are you? Nobody. So please stop the nonsense. Link to comment Share on other sites More sharing options...
gtasbigfoot Posted February 18, 2009 Share Posted February 18, 2009 Well, since cj360 posted, the topic to get help, not so people can fight in it, over stupid things. I will help. You're script has many errors, here look at the stuff, I changed, and edited, then you can learn from it: And many other mistakes, I fixed the script, should work now. {$CLEO}03A4: name_thread 'AUDI':AUDI_010001: wait 250 ms00D6: if and0038: $ACTIVE_INTERIOR == 003EE: player $PLAYER_CHAR controllable0256: player $PLAYER_CHAR defined09E7: player $PLAYER_CHAR not_frozen8741: not actor $PLAYER_ACTOR busted004D: jump_if_false @AUDI_010A8D: [email protected] = read_memory 0x00969110 size 4 virtual_protect 000D6: if04A4: [email protected] == 0x32303038 // 2008004D: jump_if_false @AUDI_010A8C: write_memory 0x00969110 size 4 value 0 virtual_protect 00247: load_model #SUPERGT038B: load_requested_models:AUDI_020001: wait 0 ms00D6: if0248: model #SUPERGT available004D: jump_if_false @AUDI_020208: [email protected] = random_float_in_ranges -10.0 10.00208: [email protected] = random_float_in_ranges -12.0 10.004C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset [email protected] [email protected] 0.0020C: create_explosion_with_radius 11 at [email protected] [email protected] [email protected]: wait 750 ms // small wait, so the explode does not blow up the car0674: set_car_model #SUPERGT numberplate "SUSPECT_"00A5: [email protected] = create_car #SUPERGT at [email protected] [email protected] [email protected]: release_model #SUPERGT:AUDI_030001: wait 0 ms00D6: if 0AB0: key_pressed 84004D: jump_if_false @AUDI_030001: wait 250 ms0AB1: call_scm_func @SubStrings 1 @txtgod102AA: set_car [email protected] immune_to_nonplayer 102AC: set_car [email protected] immunities BP 1 FP 1 EP 1 CP 1 MP 1053F: set_car [email protected] tires_vulnerability 0 :AUDI_040001: wait 0 ms // type the cheat again to deactivate0A8D: [email protected] = read_memory 0x00969110 size 4 virtual_protect 000D6: if04A4: [email protected] == 0x32303038 // 2008004D: jump_if_false @AUDI_040A8C: write_memory 0x00969110 size 4 value 0 virtual_protect 00001: wait 250 ms0AB1: call_scm_func @SubStrings 1 @txtgod002AA: set_car [email protected] immune_to_nonplayer 002AC: set_car [email protected] immunities BP 0 FP 0 EP 0 CP 0 MP 0053F: set_car [email protected] tires_vulnerability 10001: wait 250 ms 01C3: remove_references_to_car [email protected] // Like turning a car into any random car 0002: jump @AUDI_01:SubStrings 0A9F: [email protected] = current_thread_pointer000A: [email protected] += 0x100A8D: [email protected] = read_memory [email protected] size 4 virtual_protect 00062: [email protected] -= [email protected]@ += 400D6: if 0AA9: is_game_version_original then 0AA5: call 0x588BE0 num_params 4 pop 4 0 0 0 [email protected] 0AA5: call 0x5893B0 num_params 4 pop 4 0 0 0 [email protected] end0AB2: ret 0:txtgod00900: "GOD MODE DEACTIVATED":txtgod10900: "GOD MODE ACTIVATED"0000: null_termitator @cj360, I recommend you check out my site, there is a Mission Coding forum is English, and there is a lot of information, on scripting in here. James, the pic is nice : ) Link to comment Share on other sites More sharing options...
james227uk Posted February 18, 2009 Share Posted February 18, 2009 @cj360, I recommend you check out my site, there is a Mission Coding forum is English, and there is a lot of information, on scripting in here. The full site is in german until you sign up. James, the pic is nice : ) yay..lol Link to comment Share on other sites More sharing options...
gtasbigfoot Posted February 18, 2009 Share Posted February 18, 2009 @cj360, I recommend you check out my site, there is a Mission Coding forum is English, and there is a lot of information, on scripting in here. The full site is in german until you sign up. I will change that later, sorry about that. Link to comment Share on other sites More sharing options...
cj360 Posted February 19, 2009 Author Share Posted February 19, 2009 (edited) Thnx guys it works! Edited February 19, 2009 by cj360 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