TUN3R Posted August 10, 2010 Share Posted August 10, 2010 I need a script that changes the color's on the car, all of them, including the secret ones. Kinda like the one from S0beit. I don't wanna use S0beit cause it's for lamesters. Where can I find... or how can I make one? Link to comment Share on other sites More sharing options...
yair1221 Posted August 10, 2010 Share Posted August 10, 2010 (edited) :cwait ifplayer.defined($player_char)jf @cifplayer.controllable($player_char)jf @cifactor.driving($player_actor)03C0: 0 = actor $PLAYER_ACTOR car :1wait 0if andactor.incar($player_actor, [email protected])0AB0: key_pressed 96jf @1:2wait 003F3: get_car 0 primary_color_to [email protected] secondary_color_to [email protected] if04B7: 139 >= [email protected] // any >= @jf @primaryif04B7: 139 >= [email protected] // any >= @jf @secondary03F3: get_car 0 primary_color_to [email protected] secondary_color_to [email protected] 0087: [email protected] = [email protected] // (float) 0087: [email protected] = [email protected] // (float) 000A: [email protected] += 1000A: [email protected] += 10229: set_car [email protected] primary_color_to [email protected] secondary_color_to [email protected] @c:primarywait 00006: [email protected] = 1 jump @2:secondarywait 00006: [email protected] = 1 jump @2 it is untested, i created it in the post(and sanny builder opcode search, but the script was made here) BTW: this belongs to III Modding Edited August 10, 2010 by yair1221 Link to comment Share on other sites More sharing options...
TUN3R Posted August 10, 2010 Author Share Posted August 10, 2010 Ok... so how do I use it? Which keys I mean. Link to comment Share on other sites More sharing options...
yair1221 Posted August 10, 2010 Share Posted August 10, 2010 first you need to put it as a script(with header-thread and all:) {$cleo}thread 'Color':cwaitifplayer.defined($player_char)jf @cifplayer.controllable($player_char)jf @cifactor.driving($player_actor)03C0: 0 = actor $PLAYER_ACTOR car:1wait 0if andactor.incar($player_actor, [email protected])0AB0: key_pressed 96jf @1:2wait 003F3: get_car 0 primary_color_to [email protected] secondary_color_to [email protected]: 127 >= [email protected] // any >= @jf @primaryif04B7: 127 >= [email protected] // any >= @jf @secondary03F3: get_car 0 primary_color_to [email protected] secondary_color_to [email protected]: [email protected] = [email protected] // (float)0087: [email protected] = [email protected] // (float)000A: [email protected] += 1000A: [email protected] += 10229: set_car [email protected] primary_color_to [email protected] secondary_color_to [email protected] @c:primarywait 00006: [email protected] = 1jump @2:secondarywait 00006: [email protected] = 1 jump @2 put it in sanny builder and press F6 Choose the location of the CLEO folder now you need to enter a car and press 0 Link to comment Share on other sites More sharing options...
TUN3R Posted August 11, 2010 Author Share Posted August 11, 2010 ''Not enough actual parameters. Expected 1 params.'' Link to comment Share on other sites More sharing options...
TUN3R Posted August 12, 2010 Author Share Posted August 12, 2010 Bumpz. Link to comment Share on other sites More sharing options...
yair1221 Posted August 12, 2010 Share Posted August 12, 2010 {$cleo}thread 'Color':cwaitifplayer.defined($player_char)jf @cifplayer.controllable($player_char)jf @cifactor.driving($player_actor)03C0: 0 = actor $PLAYER_ACTOR car:1wait 0if andactor.incar($player_actor, [email protected])0AB0: key_pressed 96jf @1:2wait 003F3: get_car 0 primary_color_to [email protected] secondary_color_to [email protected]: 127 >= [email protected] // any >= @jf @primaryif04B7: 127 >= [email protected] // any >= @jf @secondary03F3: get_car 0 primary_color_to [email protected] secondary_color_to [email protected]: [email protected] = [email protected] // (float)0087: [email protected] = [email protected] // (float)000A: [email protected] += 1000A: [email protected] += 10229: set_car [email protected] primary_color_to [email protected] secondary_color_to [email protected] @c:primarywait 00006: [email protected] = 1jump @2:secondarywait 00006: [email protected] = 1 jump @2 sorry dude it was my mistake one small problem Link to comment Share on other sites More sharing options...
TUN3R Posted August 13, 2010 Author Share Posted August 13, 2010 Ok... how do I fix it ? Link to comment Share on other sites More sharing options...
yair1221 Posted August 13, 2010 Share Posted August 13, 2010 already did the last code put it in sanny builder and compile Link to comment Share on other sites More sharing options...
TUN3R Posted August 13, 2010 Author Share Posted August 13, 2010 already didthe last code put it in sanny builder and compile I tried. Same thing... Link to comment Share on other sites More sharing options...
BnB Posted August 13, 2010 Share Posted August 13, 2010 {$cleo}thread 'Color':cwait 0ifplayer.defined($player_char)jf @cifplayer.controllable($player_char)jf @cifactor.driving($player_actor)03C0: 0 = actor $PLAYER_ACTOR car:1wait 0if andactor.incar($player_actor, [email protected])0AB0: key_pressed 96jf @1:2wait 003F3: get_car 0 primary_color_to [email protected] secondary_color_to [email protected]: 127 >= [email protected] // any >= @jf @primaryif04B7: 127 >= [email protected] // any >= @jf @secondary03F3: get_car 0 primary_color_to [email protected] secondary_color_to [email protected]: [email protected] = [email protected] // (float)0087: [email protected] = [email protected] // (float)000A: [email protected] += 1000A: [email protected] += 10229: set_car [email protected] primary_color_to [email protected] secondary_color_to [email protected] @c:primarywait 00006: [email protected] = 1jump @2:secondarywait 00006: [email protected] = 1 @yair1221 When you post a code make sure it's right Link to comment Share on other sites More sharing options...
yair1221 Posted August 13, 2010 Share Posted August 13, 2010 im sorry i told you i havent checked it i built it in 'create post' not sanny builder well, i used the opcode search Link to comment Share on other sites More sharing options...
MAD BOSS Posted August 13, 2010 Share Posted August 13, 2010 yair, one tip: Try it, before you buy it Link to comment Share on other sites More sharing options...
TUN3R Posted August 15, 2010 Author Share Posted August 15, 2010 So back where we started from Link to comment Share on other sites More sharing options...
yair1221 Posted August 15, 2010 Share Posted August 15, 2010 this one is tested {$CLEO}thread 'color':cwait 0ifactor.Driving($player_actor)jf @cif0AB0: key_pressed 16jf @c03C0: [email protected] = actor $PLAYER_ACTOR car 0229: set_car [email protected] primary_color_to 0 secondary_color_to 0:1wait 50003F3: get_car [email protected] primary_color_to [email protected] secondary_color_to [email protected] if136 >= [email protected] @[email protected] += 10229: set_car [email protected] primary_color_to [email protected] secondary_color_to [email protected] @1:colorwait [email protected] = 0jump @1 i tested it right now Link to comment Share on other sites More sharing options...
TUN3R Posted August 16, 2010 Author Share Posted August 16, 2010 Yeah the mod does compile but when I press 0 nothing happens. I tried Num 0 (with Num Lock on) too. Link to comment Share on other sites More sharing options...
BnB Posted August 16, 2010 Share Posted August 16, 2010 {$CLEO .cs}thread 'PCCLR'[email protected] = 0 // (int) car [email protected] = 0 // (int) primary [email protected] = 0 // (int) secondary colour:STARTwait 20 if0256: player $PLAYER_CHAR definedjf @STARTif03EE: player $PLAYER_CHAR controllablejf @STARTif00DF: actor $PLAYER_ACTOR drivingjf @STARTif and84AB: not actor $PLAYER_ACTOR driving_plane84A9: not actor $PLAYER_ACTOR driving_heli84A7: not actor $PLAYER_ACTOR driving_boat847A: not actor $PLAYER_ACTOR driving_bikejf @START03C0: [email protected] = actor $PLAYER_ACTOR car:LOOPwait 20 if0256: player $PLAYER_CHAR defined jf @CLEANUPif8119: not car [email protected] wreckedjf @CLEANUP00D6: if00DB: actor $PLAYER_ACTOR in_car [email protected] @CLEANUP03F3: get_car [email protected] primary_color_to [email protected] secondary_color_to [email protected]: key_pressed 96jf @LOOPif [email protected] > 128 // 128 is the last car colour; to run the script in a loop it starts with 0 again after reaching value 128jf @CHANGE_COLOUR0006: [email protected] = 0:CHANGE_COLOUR000A: [email protected] += 10229: set_car [email protected] primary_color_to [email protected] secondary_color_to [email protected] 100jump @LOOP:CLEANUP01C3: remove_references_to_car [email protected] // Like turning a car into any random car0006: [email protected] = 00006: [email protected] = 0wait 1000 jump @START The code is made by The_Siggi Link to comment Share on other sites More sharing options...
yair1221 Posted August 16, 2010 Share Posted August 16, 2010 Yeah the mod does compile but when I press 0 nothing happens. I tried Num 0 (with Num Lock on) too. cant be i tested it right now with many cars it works Link to comment Share on other sites More sharing options...
TUN3R Posted August 16, 2010 Author Share Posted August 16, 2010 (edited) Yeah the mod does compile but when I press 0 nothing happens. I tried Num 0 (with Num Lock on) too. cant be i tested it right now with many cars it works Hmm. Maybe it's cause of my keyboard. How can I change the key? EDIT: @BnB Yours works. But it applies the same color to all slots. Example: Phoenix body and stripe have the same color. It would also be helpful if I could browse between colors both ascending and descending. Also, tested in SA-MP and it doesn't apply the secret colors. Anyway it works, so thanks EDIT 2: Nvm. As it seems the colors don't get synced in SA-MP at all... Edited August 16, 2010 by TUN3R Link to comment Share on other sites More sharing options...
yair1221 Posted August 16, 2010 Share Posted August 16, 2010 CLEO is a gift in SA MP... i create a script to repair my car when i press a button, and then i go PARTY!! invincible!! Link to comment Share on other sites More sharing options...
TUN3R Posted August 16, 2010 Author Share Posted August 16, 2010 CLEO is a gift in SA MP...i create a script to repair my car when i press a button, and then i go PARTY!! invincible!! I need this for aesthetic reasons... if I didn't mind cheating I would use S0beit. Link to comment Share on other sites More sharing options...
yair1221 Posted August 16, 2010 Share Posted August 16, 2010 Link to comment Share on other sites More sharing options...
TUN3R Posted August 17, 2010 Author Share Posted August 17, 2010 Well at least now I won't have to replace existing colors with my custom ones and have lime green cars spawning in SA Link to comment Share on other sites More sharing options...
TUN3R Posted August 18, 2010 Author Share Posted August 18, 2010 I found a way to sync it in SA-MP. It only works for ether carcolor1, 2 or 3 but not all. Just apply the color and go in TF, then change one of the colors. 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