Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. The Criminal Enterprises
      2. Updates
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Red Dead Online

      1. Blood Money
      2. Frontier Pursuits
      3. Find Lobbies & Outlaws
      4. Help & Support
    3. Crews

    1. Grand Theft Auto Series

      1. Bugs*
      2. St. Andrews Cathedral
    2. GTA VI

    3. GTA V

      1. Guides & Strategies
      2. Help & Support
    4. GTA IV

      1. The Lost and Damned
      2. The Ballad of Gay Tony
      3. Guides & Strategies
      4. Help & Support
    5. GTA San Andreas

      1. Classic GTA SA
      2. Guides & Strategies
      3. Help & Support
    6. GTA Vice City

      1. Classic GTA VC
      2. Guides & Strategies
      3. Help & Support
    7. GTA III

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    8. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    9. Top-Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    1. Red Dead Redemption 2

      1. PC
      2. Help & Support
    2. Red Dead Redemption

    1. GTA Mods

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Red Dead Mods

      1. Documentation
    3. Mod Showroom

      1. Scripts & Plugins
      2. Maps
      3. Total Conversions
      4. Vehicles
      5. Textures
      6. Characters
      7. Tools
      8. Other
      9. Workshop
    4. Featured Mods

      1. Design Your Own Mission
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Rockstar Games

    2. Rockstar Collectors

    1. Off-Topic

      1. General Chat
      2. Gaming
      3. Technology
      4. Movies & TV
      5. Music
      6. Sports
      7. Vehicles
    2. Expression

      1. Graphics / Visual Arts
      2. GFX Requests & Tutorials
      3. Writers' Discussion
      4. Debates & Discussion
    1. Announcements

    2. Support

    3. Suggestions

*DO NOT* SHARE MEDIA OR LINKS TO LEAKED COPYRIGHTED MATERIAL. Discussion is allowed.

Help with fixing some script


P.I.M.P_PL
 Share

Recommended Posts

Hi.

I dont be good in the editing main.scm and i have some script but very bugged.(i have just fixed some weeks ago the double labels bug)but other i cant;/

Its be the code:

 

mission starter:

 

:drift_start Marker.CreateIconAndSphere([email protected],36, 1946.3983, -2141.3047, 13.5482):drift_start_1 wait 0 if and Player.Defined($PLAYER_CHAR) 0102: actor $PLAYER_ACTOR stopped_near_point_on_foot 1946.3983 -2141.3047 13.5482 radius 2.0 2.0 1.0 sphere 0Jf @drift_start_1Marker.Disable([email protected]) if [email protected] == 0then $hiscore = 1000  [email protected] = 1 end 0A94: start_custom_mission "gtal\drift mission"end_thread

 

 

mission:

 

:drift thread 'DRIFT' $ONMISSION = 1 const PLAYER_CAR = [email protected]  TEMP_SCORE = [email protected]  SPEED_BONUS = [email protected]  DRIFT_ANGLE = 8.0 CAR_HEALTH = [email protected] CAR_SPEED = [email protected] SPEED_LIMIT = 10.0 end var [email protected]:car  [email protected]:float [email protected]:float [email protected]:[email protected]:[email protected]:[email protected]:float [email protected]:[email protected]:[email protected]:float [email protected]:[email protected]:[email protected]:[email protected]:[email protected]:[email protected]:int [email protected]:[email protected]:int [email protected]:int$score:int$hiscore:int $TOTAL_TIMER:intend :drift_init wait 0Player.Defined($PLAYER_CHAR)jf @drift increment_mission_attempts #ZR350.Load()06E9: load_car_component #WHEEL_OR1while not #ZR350.Available()wait 0end while 86EA: not car_component #WHEEL_OR1 availablewait 0 end 0506: set_car_model #ZR350 next_variation 0 0 // first param is useless car.Create(PLAYER_CAR,#ZR350,2112.8594, -2467.2852, 13.1098)car.Angle(PLAYER_CAR) = 90.0 06E7: [email protected] = add_car_component #WHEEL_OR1 to_car [email protected] = 0x0 #ZR350.Destroy() 06EB: release_car_component #WHEEL_OR104E4: unknown_refresh_game_renderer_at 2112.8594 -2467.2852camera.SetAtPos(2112.8594, -2467.2852, 13.1098) fade 0 0036A: put_actor $PLAYER_ACTOR in_car PLAYER_CAR$TOTAL_TIMER = 180000wait 1000fade 1 0054C: use_GXT_table 'KICKSTT' 03C3: set_timer_to $TOTAL_TIMER type 1 GXT 'KICK1_T' // global_variable // [email protected] = car.Health(PLAYER_CAR) :drift_loop04F7: status_text $score type 0 line 1 GXT 'KICK1_9' // global_variable // Scorewait 0 [email protected] = TEMP_SCORE gosub @drifted if TEMP_SCORE > [email protected] 01E3: show_text_1number_styled GXT 'number' number [email protected] time 2000 style [email protected] = [email protected] = 0else if [email protected] == 0 then 01BD: [email protected] = current_time_in_msend if [email protected] <= 2000then 01BD: [email protected] = current_time_in_ms [email protected] -= [email protected] else $score += TEMP_SCORE TEMP_SCORE = [email protected] = 0 [email protected] = 0 end end CAR_HEALTH = car.Health(PLAYER_CAR)if CAR_HEALTH < [email protected] TEMP_SCORE = [email protected] = [email protected] = 0 [email protected] = CAR_HEALTH//0A30: repair_car PLAYER_CAR //???????????????? ??? ??????, ???? ?????????? ?????????? ?? ???? ??????????//[email protected] = car.Health(PLAYER_CAR)00BE: text_clear_allwait 1000end if ornot Player.Defined($PLAYER_CHAR)not Actor.Driving($PLAYER_ACTOR) $TOTAL_TIMER == 0 car.Wrecked(PLAYER_CAR)then jump @drift_endend jump @drift_loop:drift_endcar.SetSpeedInstantly(PLAYER_CAR,0.0)car.RemoveReferences(PLAYER_CAR)014F: stop_timer $TOTAL_TIMER00BE: text_clear_all$score += TEMP_SCORE0151: remove_status_text $scoreif $score > $hiscorethen $hiscore = $score01E3: show_text_1number_styled GXT 'KICK_22' number $hiscore time 5000 style 1 // HOB?­ PEKOP?: ~1~00BC: show_text_highpriority GXT 'KICK_23' time 4000 flag 1 // ~s~B? ’O…?‚? PEKOP?!else 01E3: show_text_1number_styled GXT 'KICK1_9' number $score time 5000 style 1 // O4K? ~1~01E3: show_text_1number_styled GXT 'KICK_21' number $hiscore time 5000 style 6 // PEKOP?: ~1~00BC: show_text_highpriority GXT 'KICK_24' time 5000 flag 1 // ~r~BAM HE “?A‚OC€ ’O…?T€ PEKOP?!end $score = 0mission_cleanup 0A92: create_custom_thread "drift mission start.cs"$ONMISSION = 1 end_thread :driftedcar.StorePos(PLAYER_CAR,[email protected],[email protected],[email protected])wait 10 car.StorePos(PLAYER_CAR,[email protected],[email protected],[email protected])[email protected] = car.Angle(PLAYER_CAR)[email protected] = [email protected]@ -= [email protected]@ -= [email protected]@ = [email protected]@ = [email protected]@ = [email protected] [email protected] <= [email protected] >= [email protected] <= 0.0then return end if [email protected] <= [email protected] >= [email protected] >= 0.0 [email protected] >= 0.0 then return end if [email protected] <= 270.0 [email protected] >= [email protected] <= 0.0 [email protected] >= 0.0 then return end if [email protected] >= [email protected] <= [email protected] <= 0.0then return end [email protected] *= [email protected]@ *= [email protected]@ += [email protected]: [email protected] = square_root [email protected]@ /= [email protected]@ = [email protected]@ += [email protected] -= DRIFT_ANGLE02F7: [email protected] = sine [email protected] // (float)02F7: [email protected] = sine [email protected] // (float)[email protected] *= [email protected] *= [email protected] *= 100.00092: [email protected] = float [email protected] to_integer0092: [email protected] = float [email protected] to_integer0092: [email protected] = float [email protected] to_integer02E3: CAR_SPEED = car PLAYER_CAR speedif andCAR_SPEED >= SPEED_LIMIT81F4: not car PLAYER_CAR flipped8119: not car PLAYER_CAR wrecked82BF: not car PLAYER_CAR sunk81F3: not car PLAYER_CAR in_airthen SPEED_BONUS = 1if CAR_SPEED >= 19.0then SPEED_BONUS = 2end if CAR_SPEED >= 31.0then SPEED_BONUS = 3end if CAR_SPEED >= 46.0then SPEED_BONUS = 4end if CAR_SPEED >= 63.0then SPEED_BONUS = 5end if 0031: [email protected] >= 180.0then if or801D: not [email protected] >= [email protected] // (int)001D: [email protected] >= [email protected] // (int)then inc(TEMP_SCORE,SPEED_BONUS)end else if or001D: [email protected] >= [email protected] // (int)801D: not [email protected] >= [email protected] // (int)then inc(TEMP_SCORE,SPEED_BONUS)end end end return

 

 

Ok its be info what it script do:

This script is the drift mission to san andreas and i see in the script it must spawn you in the zr350 but when i enter to marker who be in the map its do nothing.

Please help and bye.

Link to comment
Share on other sites

You allways coming up with nice scripts but you have no clue how to let it work.

These scripts are made by an excellent coder. I am wondering why they wont work.

 

I changed something. Especially I integrate the drift script in the classic mission structure.

 

Important: I renamed the scripts

the missionstarterscript must be named DriftMissionStarter.cs

because at the end of the Driftmission will the DriftMissionStarter thread be created again.

 

00D8: mission_cleanup0A92: create_custom_thread "DriftMissionStarter.cs"0051: return

 

 

the mission script must be named DriftMission.cm stored in subfolder gtal (CLEO\gtal\DriftMission.cm)

because of this:

 

0A94: start_custom_mission "gtal\DriftMission"0A93: end_custom_thread

 

 

the starter thread ends then.

 

 

 

 

 

 

 

 

 

I think its not a good idea to let the thread ending and create again at mission end because

how to set the first $hiscore ?

 

the setting in the starterthread

 

$hiscore = 1000

 

have no effect because the global variable can not communicate between Cleo scripts

it must be used this (4.Post)

it must be set at the very beginning of the thread because it should be read only at one time

and then let the code in the starter thread jumping back to the loopadress instead of thread_ending and creating again.

 

But I kept it in this variation and added a ckeck for the hiscore

 

If the hiscore not be set, its value screws up to astronomics dimensions

So I checked if its greater than 100000

 

if0028:   $hiscore >=  100000  // integer values004D: jump_if_false @drift_init2$hiscore = 450:drift_init2

 

My hiscore was 496 and I set the default hiscore to 450

 

 

 

 

 

 

 

 

 

DriftMissionStarter.cs

 

{$VERSION 3.1.0027}{$CLEO .cs}:drift_start03A4: name_thread "DFST"Marker.CreateIconAndSphere([email protected],36, 1946.3983, -2141.3047, 13.5482):drift_start_1wait 0ifPlayer.Defined($PLAYER_CHAR)Jf @drift_start_1if0102: actor $PLAYER_ACTOR stopped_near_point_on_foot 1946.3983 -2141.3047 13.5482 radius 2.0 2.0 1.0 sphere 0Jf @drift_start_1Marker.Disable([email protected])if [email protected] == 0then$hiscore = 1000  [email protected] = 1end0A94: start_custom_mission "gtal\DriftMission"0A93: end_custom_thread

 

 

 

DriftMission.cm

 

{$VERSION 3.1.0027}{$CLEO .cm}:driftMiss_103A4: name_thread "DRIFT"  0050: gosub @driftMiss_main_1 00D6: if  00112:   wasted_or_busted004D: jump_if_false @driftMiss_end_10050: gosub @driftMiss_fail_1                    :driftMiss_end_10050: gosub @driftMiss_clep_1004E: end_thread:driftMiss_main_10317: increment_mission_attempts//here starts the missionscript0004: $ONMISSION =  1fade 0 0:driftconstPLAYER_CAR = [email protected]  TEMP_SCORE = [email protected]  SPEED_BONUS = [email protected]  DRIFT_ANGLE = 8.0CAR_HEALTH = [email protected]_SPEED = [email protected]_LIMIT = [email protected]:car  [email protected]:[email protected]:[email protected]:[email protected]:[email protected]:[email protected]:[email protected]:[email protected]:[email protected]:[email protected]:[email protected]:[email protected]:[email protected]:[email protected]:[email protected]:[email protected]:[email protected]:[email protected]:int$score:int$hiscore:int$TOTAL_TIMER:intend:drift_initwait 0#ZR350.Load()06E9: load_car_component #WHEEL_OR1while not #ZR350.Available()wait 0endwhile 86EA: not car_component #WHEEL_OR1 availablewait 0end0506: set_car_model #ZR350 next_variation 0 0 // first param is uselesscar.Create(PLAYER_CAR,#ZR350,2112.8594, -2467.2852, 13.1098)car.Angle(PLAYER_CAR) = 90.006E7: [email protected] = add_car_component #WHEEL_OR1 to_car [email protected] = 0x0#ZR350.Destroy()06EB: release_car_component #WHEEL_OR104E4: unknown_refresh_game_renderer_at 2112.8594 -2467.2852camera.SetAtPos(2112.8594, -2467.2852, 13.1098)036A: put_actor $PLAYER_ACTOR in_car PLAYER_CAR$TOTAL_TIMER = 180000$score = 0if0028:   $hiscore >=  100000  // integer values004D: jump_if_false @drift_init2$hiscore = 450:drift_init2wait 1000fade 1 0054C: use_GXT_table 'KICKSTT'03C3: set_timer_to $TOTAL_TIMER type 1 GXT 'KICK1_T' // global_variable // [email protected] = car.Health(PLAYER_CAR)04F7: status_text $score type 0 line 1 GXT 'KICK1_9' // global_variable // Score:drift_loopwait 0ifnot car.Wrecked(PLAYER_CAR)004D: jump_if_false @driftMiss_fail_1if  ornot Actor.Driving($PLAYER_ACTOR)$TOTAL_TIMER == 0004D: jump_if_false @drift_loop10002: jump @drift_end:[email protected] = TEMP_SCOREgosub @driftedifTEMP_SCORE > [email protected]: show_text_1number_styled GXT 'number' number [email protected] time 2000 style [email protected] = [email protected] = 0elseif [email protected] == 0then01BD: [email protected] = [email protected] <= 2000then01BD: [email protected] = [email protected] -= [email protected]$score += TEMP_SCORETEMP_SCORE = [email protected] = [email protected] = 0endendCAR_HEALTH = car.Health(PLAYER_CAR)ifCAR_HEALTH < [email protected]_SCORE = [email protected] = [email protected] = [email protected] = CAR_HEALTH//0A30: repair_car PLAYER_CAR //???????????????? ??? ??????, ???? ?????????? ?????????? ?? ???? ??????????//[email protected] = car.Health(PLAYER_CAR)//00BE: text_clear_allwait 1000end0002: jump @drift_loop:driftedcar.StorePos(PLAYER_CAR,[email protected],[email protected],[email protected])wait 10car.StorePos(PLAYER_CAR,[email protected],[email protected],[email protected])[email protected] = car.Angle(PLAYER_CAR)[email protected] = [email protected]@ -= [email protected]@ -= [email protected]@ = [email protected]@ = [email protected]@ = [email protected] [email protected] <= [email protected] >= [email protected] <= 0.0thenreturnendif [email protected] <= [email protected] >= [email protected] >= [email protected] >= 0.0thenreturnendif [email protected] <= [email protected] >= [email protected] <= [email protected] >= 0.0thenreturnendif [email protected] >= [email protected] <= [email protected] <= [email protected] *= [email protected]@ *= [email protected]@ += [email protected]: [email protected] = square_root [email protected]@ /= [email protected]@ = [email protected]@ += [email protected] -= DRIFT_ANGLE02F7: [email protected] = sine [email protected] // (float)02F7: [email protected] = sine [email protected] // (float)[email protected] *= [email protected] *= [email protected] *= 100.00092: [email protected] = float [email protected] to_integer0092: [email protected] = float [email protected] to_integer0092: [email protected] = float [email protected] to_integer02E3: CAR_SPEED = car PLAYER_CAR speedif andCAR_SPEED >= SPEED_LIMIT81F4: not car PLAYER_CAR flipped8119: not car PLAYER_CAR wrecked82BF: not car PLAYER_CAR sunk81F3: not car PLAYER_CAR in_airthenSPEED_BONUS = 1if CAR_SPEED >= 19.0thenSPEED_BONUS = 2endif CAR_SPEED >= 31.0thenSPEED_BONUS = 3endif CAR_SPEED >= 46.0thenSPEED_BONUS = 4endif CAR_SPEED >= 63.0thenSPEED_BONUS = 5endif0031: [email protected] >= 180.0thenif or801D: not [email protected] >= [email protected] // (int)001D: [email protected] >= [email protected] // (int)theninc(TEMP_SCORE,SPEED_BONUS)endelseif or001D: [email protected] >= [email protected] // (int)801D: not [email protected] >= [email protected] // (int)theninc(TEMP_SCORE,SPEED_BONUS)endendendreturn:drift_endif$score > $hiscorethen$hiscore = $score01E3: show_text_1number_styled GXT 'KICK_22' number $hiscore time 5000 style 1 // HOB?­ PEKOP?: ~1~00BC: show_text_highpriority GXT 'KICK_23' time 4000 flag 1 // ~s~B? ’O…?‚? PEKOP?!else01E3: show_text_1number_styled GXT 'KICK1_9' number $score time 5000 style 1 // O4K? ~1~01E3: show_text_1number_styled GXT 'KICK_21' number $hiscore time 5000 style 6 // PEKOP?: ~1~00BC: show_text_highpriority GXT 'KICK_24' time 5000 flag 1 // ~r~BAM HE “?A‚OC€ ’O…?T€ PEKOP?!end0051: return:driftMiss_fail_100BA: text_styled 'M_FAIL'  5000 ms  10051: return:driftMiss_clep_1car.SetSpeedInstantly(PLAYER_CAR,0.0)car.RemoveReferences(PLAYER_CAR)014F: stop_timer $TOTAL_TIMER//00BE: text_clear_all$score += TEMP_SCORE0151: remove_status_text $score$score = 00004: $ONMISSION =  000D8: mission_cleanup0A92: create_custom_thread "DriftMissionStarter.cs"0051: return

 

Link to comment
Share on other sites

I think its not a good idea to let the thread ending and create again at mission end because

how to set the first $hiscore ?

 

the setting in the starterthread

 

$hiscore = 1000

 

have no effect because the global variable can not communicate between Cleo scripts

it must be used this (4.Post)

 

 

 

thanks for your big help zaz.

And about this global variables between cleo.

But i think it can be between threads in main.scm??

But when the sacky hack the scm block limit i plain to add the threads from .cs files to main.scm

 

Bye.

Link to comment
Share on other sites

I have one question maybe it be can to do menu in who you can choose car with who you have to drift from list who be show in menu(like this who be in the transfender or other tuning shop when you can choose car)??

 

When yes maybe you can help with creating this menu(in this menu for now please insert cars to choose with this names):

zr350 and civic1998(civic1998 is my own new vehicle added with handling id adder and sa limit adjuster)

 

ides of this cars:

zr350 (477)

civic1998 (613)

 

Its the drift mission code(i change only wheel with who it be spawning):

 

driftmissionstarter:

 

:drift_start03A4: name_thread "DFST"Marker.CreateIconAndSphere([email protected],36, 1946.3983, -2141.3047, 13.5482):drift_start_1wait 0ifPlayer.Defined($PLAYER_CHAR)Jf @drift_start_1if0102: actor $PLAYER_ACTOR stopped_near_point_on_foot 1946.3983 -2141.3047 13.5482 radius 2.0 2.0 1.0 sphere 0Jf @drift_start_1Marker.Disable([email protected])if [email protected] == 0then$hiscore = 1000  [email protected] = 1end0A94: start_custom_mission "gtal\DriftMission"0A93: end_custom_thread 

 

 

driftmission:

 

 

:driftMiss_103A4: name_thread "DRIFT"  0050: gosub @driftMiss_main_100D6: if  00112:   wasted_or_busted004D: jump_if_false @driftMiss_end_10050: gosub @driftMiss_fail_1                    :driftMiss_end_10050: gosub @driftMiss_clep_1004E: end_thread:driftMiss_main_10317: increment_mission_attempts//here starts the missionscript0004: $ONMISSION =  1fade 0 0:driftconstPLAYER_CAR = [email protected]  TEMP_SCORE = [email protected]  SPEED_BONUS = [email protected]  DRIFT_ANGLE = 8.0CAR_HEALTH = [email protected]_SPEED = [email protected]_LIMIT = [email protected]:car  [email protected]:[email protected]:[email protected]:[email protected]:[email protected]:[email protected]:[email protected]:[email protected]:[email protected]:[email protected]:[email protected]:[email protected]:[email protected]:[email protected]:[email protected]:[email protected]:[email protected]:[email protected]:int$score:int$hiscore:int$TOTAL_TIMER:intend:drift_initwait 0#ZR350.Load()06E9: load_car_component #Wheel_18_25while not #ZR350.Available()wait 0endwhile 86EA: not car_component #Wheel_18_25 availablewait 0end0506: set_car_model #ZR350 next_variation 0 0 // first param is uselesscar.Create(PLAYER_CAR,#ZR350,2112.8594, -2467.2852, 13.1098)car.Angle(PLAYER_CAR) = 90.006E7: [email protected] = add_car_component #Wheel_18_25 to_car [email protected] = 0x0#ZR350.Destroy()06EB: release_car_component #Wheel_18_2504E4: unknown_refresh_game_renderer_at 2112.8594 -2467.2852camera.SetAtPos(2112.8594, -2467.2852, 13.1098)036A: put_actor $PLAYER_ACTOR in_car PLAYER_CAR$TOTAL_TIMER = 180000$score = 0if0028:   $hiscore >=  100000  // integer values004D: jump_if_false @drift_init2$hiscore = 450:drift_init2wait 1000fade 1 0054C: use_GXT_table 'KICKSTT'03C3: set_timer_to $TOTAL_TIMER type 1 GXT 'KICK1_T' // global_variable // [email protected] = car.Health(PLAYER_CAR)04F7: status_text $score type 0 line 1 GXT 'KICK1_9' // global_variable // Score:drift_loopwait 0ifnot car.Wrecked(PLAYER_CAR)004D: jump_if_false @driftMiss_fail_1if  ornot Actor.Driving($PLAYER_ACTOR)$TOTAL_TIMER == 0004D: jump_if_false @drift_loop10002: jump @drift_end:[email protected] = TEMP_SCOREgosub @driftedifTEMP_SCORE > [email protected]: show_text_1number_styled GXT 'number' number [email protected] time 2000 style [email protected] = [email protected] = 0elseif [email protected] == 0then01BD: [email protected] = [email protected] <= 2000then01BD: [email protected] = [email protected] -= [email protected]$score += TEMP_SCORETEMP_SCORE = [email protected] = [email protected] = 0endendCAR_HEALTH = car.Health(PLAYER_CAR)ifCAR_HEALTH < [email protected]_SCORE = [email protected] = [email protected] = [email protected] = CAR_HEALTH//0A30: repair_car PLAYER_CAR //???????????????? ??? ??????, ???? ?????????? ?????????? ?? ???? ??????????//[email protected] = car.Health(PLAYER_CAR)//00BE: text_clear_allwait 1000end0002: jump @drift_loop:driftedcar.StorePos(PLAYER_CAR,[email protected],[email protected],[email protected])wait 10car.StorePos(PLAYER_CAR,[email protected],[email protected],[email protected])[email protected] = car.Angle(PLAYER_CAR)[email protected] = [email protected]@ -= [email protected]@ -= [email protected]@ = [email protected]@ = [email protected]@ = [email protected] [email protected] <= [email protected] >= [email protected] <= 0.0thenreturnendif [email protected] <= [email protected] >= [email protected] >= [email protected] >= 0.0thenreturnendif [email protected] <= [email protected] >= [email protected] <= [email protected] >= 0.0thenreturnendif [email protected] >= [email protected] <= [email protected] <= [email protected] *= [email protected]@ *= [email protected]@ += [email protected]: [email protected] = square_root [email protected]@ /= [email protected]@ = [email protected]@ += [email protected] -= DRIFT_ANGLE02F7: [email protected] = sine [email protected] // (float)02F7: [email protected] = sine [email protected] // (float)[email protected] *= [email protected] *= [email protected] *= 100.00092: [email protected] = float [email protected] to_integer0092: [email protected] = float [email protected] to_integer0092: [email protected] = float [email protected] to_integer02E3: CAR_SPEED = car PLAYER_CAR speedif andCAR_SPEED >= SPEED_LIMIT81F4: not car PLAYER_CAR flipped8119: not car PLAYER_CAR wrecked82BF: not car PLAYER_CAR sunk81F3: not car PLAYER_CAR in_airthenSPEED_BONUS = 1if CAR_SPEED >= 19.0thenSPEED_BONUS = 2endif CAR_SPEED >= 31.0thenSPEED_BONUS = 3endif CAR_SPEED >= 46.0thenSPEED_BONUS = 4endif CAR_SPEED >= 63.0thenSPEED_BONUS = 5endif0031: [email protected] >= 180.0thenif or801D: not [email protected] >= [email protected] // (int)001D: [email protected] >= [email protected] // (int)theninc(TEMP_SCORE,SPEED_BONUS)endelseif or001D: [email protected] >= [email protected] // (int)801D: not [email protected] >= [email protected] // (int)theninc(TEMP_SCORE,SPEED_BONUS)endendendreturn:drift_endif$score > $hiscorethen$hiscore = $score01E3: show_text_1number_styled GXT 'KICK_22' number $hiscore time 5000 style 1 // HOB?­ PEKOP?: ~1~00BC: show_text_highpriority GXT 'KICK_23' time 4000 flag 1 // ~s~B? ?O???? PEKOP?!else01E3: show_text_1number_styled GXT 'KICK1_9' number $score time 5000 style 1 // O4K? ~1~01E3: show_text_1number_styled GXT 'KICK_21' number $hiscore time 5000 style 6 // PEKOP?: ~1~00BC: show_text_highpriority GXT 'KICK_24' time 5000 flag 1 // ~r~BAM HE ??A?OC? ?O??T? PEKOP?!end0051: return:driftMiss_fail_100BA: text_styled 'M_FAIL'  5000 ms  10051: return:driftMiss_clep_1car.SetSpeedInstantly(PLAYER_CAR,0.0)car.RemoveReferences(PLAYER_CAR)014F: stop_timer $TOTAL_TIMER//00BE: text_clear_all$score += TEMP_SCORE0151: remove_status_text $score$score = 00004: $ONMISSION =  000D8: mission_cleanup0A92: create_custom_thread "DriftMissionStarter.cs"0051: return

 

 

and thanks for reduce buggs(look your up post) now its work great;)

Edited by P.I.M.P_PL
Link to comment
Share on other sites

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 account

Sign in

Already have an account? Sign in here.

Sign In Now
 Share

  • 1 User Currently Viewing
    0 members, 0 Anonymous, 1 Guest

×
×
  • Create New...

Important Information

By using GTAForums.com, you agree to our Terms of Use and Privacy Policy.