Quantcast
Jump to content
Search In
  • More options...
Find results that contain...
Find results in...
    1. Welcome to GTAForums!

    1. Red Dead Redemption 2

      1. PC
      2. Gameplay
      3. Missions
      4. Help & Support
    2. Red Dead Online

      1. Gameplay
      2. Find Lobbies & Outlaws
      3. Help & Support
      4. Frontier Pursuits
    1. Crews & Posses

      1. Recruitment
    2. Events

    1. GTA Online

      1. Diamond Casino & Resort
      2. DLC
      3. Find Lobbies & Players
      4. Guides & Strategies
      5. Vehicles
      6. Content Creator
      7. Help & Support
    2. Grand Theft Auto Series

    3. GTA 6

    4. GTA V

      1. PC
      2. Guides & Strategies
      3. Help & Support
    5. GTA IV

      1. Episodes from Liberty City
      2. Multiplayer
      3. Guides & Strategies
      4. Help & Support
      5. GTA IV Mods
    6. GTA Chinatown Wars

    7. GTA Vice City Stories

    8. GTA Liberty City Stories

    9. GTA San Andreas

      1. Guides & Strategies
      2. Help & Support
      3. GTA SA Mods
    10. GTA Vice City

      1. Guides & Strategies
      2. Help & Support
      3. GTA VC Mods
    11. GTA III

      1. Guides & Strategies
      2. Help & Support
      3. GTA III Mods
    12. Top Down Games

      1. GTA Advance
      2. GTA 2
      3. GTA
    13. Wiki

      1. Merchandising
    1. GTA Modding

      1. GTA V
      2. GTA IV
      3. GTA III, VC & SA
      4. Tutorials
    2. Mod Showroom

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

      1. DYOM
      2. OpenIV
      3. GTA: Underground
      4. GTA: Liberty City
      5. GTA: State of Liberty
    1. Red Dead Redemption

    2. Rockstar Games

    1. Off-Topic

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

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

    2. Forum Support

    3. Site Suggestions

Sign in to follow this  
trickstar34

How to make street race's

Recommended Posts

trickstar34

How do you make a street race where you can choose the vehicle you want (the car your in when reach the start mark). I just need someone to show code for a basic race to do this, because I couldnt really figure it out, and when I searched for it, I couldnt find anything.

Share this post


Link to post
Share on other sites
PatrickW

The code for most of the races in San Andreas in in the mission: CPRACE.

 

If you put enough effort into it, you should be able to determine how it works and how you can change the vehicles and checkpoint locations.

Share this post


Link to post
Share on other sites
trickstar34

Which line is it?

Share this post


Link to post
Share on other sites
herbie49

Use the search function.

Share this post


Link to post
Share on other sites
trickstar34

oops, i forgot about that blush.gif

Share this post


Link to post
Share on other sites
trickstar34

What does type mean?

 

 

06D5: [email protected] = create_racing_checkpoint_at $TEMPVAR_FLOAT_1 $TEMPVAR_FLOAT_2 $TEMPVAR_FLOAT_3 point_to $TEMPVAR_FLOAT_1 $TEMPVAR_FLOAT_2 $TEMPVAR_FLOAT_3 type [email protected] radius 6.0

 

Share this post


Link to post
Share on other sites
Dutchy3010

That's the type of the checkpoint, for example a corona, a plain column or a column with an arrow.

 

You can also test the various values yourself. wink.gif

Share this post


Link to post
Share on other sites
trickstar34

I cant find anything to see if the player has passed it, what is it?

Share this post


Link to post
Share on other sites
Dutchy3010

There are many opcodes for that, for example:

 

00EE:   actor $PLAYER_ACTOR 0 near_point 2067.4 -1831.2 radius 15.0 15.0 in_car 

 

Share this post


Link to post
Share on other sites
ZAZ

 

What does type mean?

 

 

06D5: [email protected] = create_racing_checkpoint_at $TEMPVAR_FLOAT_1 $TEMPVAR_FLOAT_2 $TEMPVAR_FLOAT_3 point_to $TEMPVAR_FLOAT_1 $TEMPVAR_FLOAT_2 $TEMPVAR_FLOAT_3 type [email protected] radius 6.0

 

the first 3 params are the spawnlocation of the rcp, the second 3 params are the spawnlocation of the next rcp in the CPRACE which let the arrow turn into direction of next rcp

in your exemple are the first 3 the same as the second 3

in this case the arrow have a default direction or the rcp have none arrow because its an rcp type without orientation

 

the exemple below makes more sense:

 

06D5: [email protected] = create_racing_checkpoint_at -2026.1396 138.857 28.8 point_to 1026.1396 138.857 28.8 type 0 radius 6.0

type 0 is the cylinder with arrow

also if it is a ring it get the orientation from the second 3 params

 

And there is also an additional angle opcode for the rcp

 

06D5: [email protected] = create_racing_checkpoint_at -2026.1396 138.857 28.8 point_to -2026.1396 138.857 28.8 type 0 radius 6.00996: set_racing_checkpoint [email protected] Z_angle_to 180.0

 

but its bit confusing because the arrows angle then is warped by 90 degrees

Share this post


Link to post
Share on other sites
trickstar34

after changing traffic density, how do you put it back to normal?

Share this post


Link to post
Share on other sites
trickstar34

how do you add a icon on the map where the checkpoint is on the map?

Share this post


Link to post
Share on other sites
cj360

To make a icon use

 

0570: [email protected] = create_asset_radar_marker_with_icon 35 at x y z 018B: set_marker [email protected] radar_mode 2

 

Just replace 35 with the icon of your choice a list is in sannybuilder>help and replace xyz with the cords, and for 018B 1 is hide 2 is show.

Share this post


Link to post
Share on other sites
ZAZ

 

how do you add a icon on the map where the checkpoint is on the map?

 

Icon for race start or checkpoint to find the racecheckpoint?

 

 

018A: [email protected] = create_checkpoint_at -2026.1396 138.857 28.80165: set_marker [email protected] color_to  0

 

Share this post


Link to post
Share on other sites
PatrickW
after changing traffic density, how do you put it back to normal?

Setting the traffic density to 1.0 reverts it back to the normal situation.

Share this post


Link to post
Share on other sites
trickstar34

how do you add a timer (like in End of the Line) where if time runs out you fail, I tried searching race timer, but nothing came up.

Share this post


Link to post
Share on other sites
trickstar34

Why wont this compile?

 

EDIT: I figured it out, I left out the opcode.

Edited by trickstar34

Share this post


Link to post
Share on other sites
Dutchy3010

Because you forgot the opcode before every:

 

[email protected] = create_checkpoint_at -1986.4241 270.4849 34.8159

 

 

And please try to fix your code yourself once. After you compiled, you will see were the fault is. When you can't compile, you can also try "help", which you can find together with the error.

Share this post


Link to post
Share on other sites
trickstar34

I do, its just when I try it doesnt work.

 

How do you add a timer like in End of the Line?

Share this post


Link to post
Share on other sites
Dutchy3010

Can you at least show us what you tried? If have the feeling that you just want us to script your code, and that certainly isn't the way to do it.

 

Use the following opcodes and try to create something yourself:

 

03C3: set_timer_with_text_to $8007 type 1 text 'RM4_34'  // Time

 

 

0890: enable_sound_when_timer $253 reach 3 seconds // global_variable 

 

 

014F: stop_timer $8007 

 

 

If it doesn't work, post your code and we'll try to fix it.

Share this post


Link to post
Share on other sites
trickstar34

This is what I tried:

 

 

014E: set_timer_to 240 type 1

 

 

I've never used a timer before, so this might have wrong code. But yea it crashed when I tried it. Also I'm not having you script it, I have the mission all finished except for the timer. Its got like 300 lines of code.

Edited by trickstar34

Share this post


Link to post
Share on other sites
trickstar34

Here, it crashes when I enter the car. (when the timer starts)

 

I do know its the timer, because before I added it I could get through the whole mission.

 

I didnt waste my time adding what happens when time runs out because it doesnt work anyway, so whats wrong? (I'm guessing I replaced variables with the wrong thing)

 

 

{$CLEO .cs}thread "Wang":RESTART 00D6: if 0038:   $STEAL_TOTAL_PASSED_MISSIONS == 4  004D: jump_if_false @LOCKED 0002: jump @SPHERE :SPHERE0001: wait 0 ms  00FF:   actor $PLAYER_ACTOR sphere 1 in_sphere -1963.6982 296.51 35.4687 radius 2.0 2.0 2.0 on_foot 004D: jump_if_false @SPHERE//02AB: set_actor $PLAYER_ACTOR immunities BP 1 FP 1 EP 1 CP 1 MP 1   0247: load_model #URANUS  06E9: load_car_component #NTO_B_TW06E9: load_car_component #SPL_A_U_B06E9: load_car_component #RBMP_A_U06E9: load_car_component #FBMP_A_U06E9: load_car_component #EXH_A_U06E9: load_car_component #RF_A_U06E9: load_car_component #WG_L_A_U06E9: load_car_component #WHEEL_SR2038B: load_requested_models :MODEL_LOAD00D6: if or8248:   not model #URANUS available86EA:   not car_component #NTO_B_TW available86EA:   not car_component #SPL_A_U_B available86EA:   not car_component #RBMP_A_U available86EA:   not car_component #FBMP_A_U available86EA:   not car_component #EXH_A_U available86EA:   not car_component #RF_A_U available86EA:   not car_component #WG_L_A_U available86EA:   not car_component #WHEEL_SR2 available  004D: jump_if_false @START 0001: wait 0 ms 0002: jump @MODEL_LOAD:[email protected] = Car.Create(#URANUS, -1940.746, 244.9602, 41.0469)Car.Angle([email protected]) = 86.795506ED: set_car [email protected] paintjob 206E7: [email protected] = add_car_component #NTO_B_TW to_car [email protected]: [email protected] add_car_component #SPL_A_U_B to_car [email protected]: [email protected] = add_car_component #RBMP_A_U to_car [email protected]: [email protected] = add_car_component #FBMP_A_U to_car [email protected]: [email protected] = add_car_component #EXH_A_U to_car [email protected]: [email protected] = add_car_component #RF_A_U to_car [email protected]: [email protected] = add_car_component #WG_L_A_U to_car [email protected]: [email protected] = add_car_component #WHEEL_SR2 to_car [email protected]: set_car_model #URANUS numberplate "GO_SPEED"0224: set_car [email protected] health_to 10000227: [email protected] = car [email protected] health0186: [email protected] = create_marker_above_car [email protected]: set_marker [email protected] color_to 2  0376: [email protected] = create_random_actor_at -1943.746 243.9602 42.0469 0430: put_actor [email protected] into_car [email protected] passenger_seat 00526: set_actor [email protected] stay_in_car 10638: AS_actor [email protected] stay_put 1  repeatwait 0if8256:   not player $PLAYER_CHAR definedthen 0002: jump @FAILEDenduntil 00DB:   actor $PLAYER_ACTOR in_car [email protected]([email protected])03C3: [email protected] set_timer_with_text_to 240 type 1 text 'RM4_34' // Check 106D5: [email protected] = create_racing_checkpoint_at -1985.199 288.4045 34.6178 point_to -2018.9 289.7902 34.3764 type 0 radius 6.0018A: [email protected] = create_checkpoint_at -1985.199 288.4045 34.6178repeatwait 0if [email protected] <= 990thenjump @FAILEDenduntil 00EE:   actor $PLAYER_ACTOR 0 near_point -1985.199 288.4045 radius 15.0 15.0 in_car0164: disable_marker [email protected] 06D6: disable_racing_checkpoint [email protected]// Check 206D5: [email protected] = create_racing_checkpoint_at -2018.9 289.7902 34.3764 point_to -2101.3279 208.3867 35.2868 type 0 radius 6.0018A: [email protected] = create_checkpoint_at -2018.9 289.7902 34.3764repeatwait 0if [email protected] <= 950thenjump @FAILEDenduntil 00EE:   actor $PLAYER_ACTOR 0 near_point -2018.9 289.7902 34.3764 radius 15.0 15.0 in_car 0164: disable_marker [email protected]: disable_racing_checkpoint [email protected]// Check 306D5: [email protected] = create_racing_checkpoint_at -2101.3279 208.3867 35.2868 point_to -2146.6987 272.5797 35.1719 type 0 radius 6.0018A: [email protected] = create_checkpoint_at -2101.3279 208.3867 35.2868repeatwait 0if [email protected] <= 950thenjump @FAILEDenduntil 00EE:   actor $PLAYER_ACTOR 0 near_point -2101.3279 208.3867 35.2868 radius 15.0 15.0 in_car 0164: disable_marker [email protected]: disable_racing_checkpoint [email protected]// Check 406D5: [email protected] = create_racing_checkpoint_at -2146.6987 272.5797 35.1719 point_to -2140.116 802.6387 69.4141 type 0 radius 6.0018A: [email protected] = create_checkpoint_at -2146.6987 272.5797 35.1719repeatwait 0if [email protected] <= 950thenjump @FAILEDenduntil 00EE:   actor $PLAYER_ACTOR 0 near_point -2146.6987 272.5797 35.1719 radius 15.0 15.0 in_car 0164: disable_marker [email protected]: disable_racing_checkpoint [email protected]// Check 506D5: [email protected] = create_racing_checkpoint_at -2146.6987 272.5797 35.1719 point_to -2140.116 802.6387 69.4141 type 0 radius 6.0018A: [email protected] = create_checkpoint_at -2146.6987 272.5797 35.1719repeatwait 0if [email protected] <= 950thenjump @FAILEDenduntil 00EE:   actor $PLAYER_ACTOR 0 near_point -2146.6987 272.5797 35.1719 radius 15.0 15.0 in_car 0164: disable_marker [email protected]: disable_racing_checkpoint [email protected]// Check 606D5: [email protected] = create_racing_checkpoint_at -2140.116 802.6387 69.4141 point_to -2004.3624 808.8326 45.1677 type 0 radius 6.0018A: [email protected] = create_checkpoint_at -2140.116 802.6387 69.4141repeatwait 0if [email protected] <= 950thenjump @FAILEDenduntil 00EE:   actor $PLAYER_ACTOR 0 near_point -2140.116 802.6387 69.4141 radius 15.0 15.0 in_car 0164: disable_marker [email protected]: disable_racing_checkpoint [email protected]// Check 706D5: [email protected] = create_racing_checkpoint_at -2004.3624 808.8326 45.1677 point_to -2003.9357 1053.9492 55.2037 type 0 radius 6.0018A: [email protected] = create_checkpoint_at -2004.3624 808.8326 45.1677repeatwait 0if [email protected] <= 950thenjump @FAILEDenduntil 00EE:   actor $PLAYER_ACTOR 0 near_point -2004.3624 808.8326 45.1677 radius 15.0 15.0 in_car 0164: disable_marker [email protected]: disable_racing_checkpoint [email protected] // Check 806D5: [email protected] = create_racing_checkpoint_at -2003.9357 1053.9492 55.2037 point_to -1884.8763 1065.053 44.9308 type 0 radius 6.0018A: [email protected] = create_checkpoint_at -2003.9357 1053.9492 55.2037repeatwait 0if [email protected] <= 950thenjump @FAILEDenduntil 00EE:   actor $PLAYER_ACTOR 0 near_point -2003.9357 1053.9492 55.2037 radius 15.0 15.0 in_car 0164: disable_marker [email protected]: disable_racing_checkpoint [email protected]// Check 906D5: [email protected] = create_racing_checkpoint_at -1884.8763 1065.053 44.9308 point_to -1718.5847 1292.1412 6.6781 type 0 radius 6.0018A: [email protected] = create_checkpoint_at -1884.8763 1065.053 44.9308repeatwait 0if [email protected] <= 950thenjump @FAILEDenduntil 00EE:   actor $PLAYER_ACTOR 0 near_point -1884.8763 1065.053 44.9308 radius 15.0 15.0 in_car 0164: disable_marker [email protected]: disable_racing_checkpoint [email protected]// Check 1006D5: [email protected] = create_racing_checkpoint_at -1718.5847 1292.1412 6.6781 point_to -1559.5513 516.3074 6.6659 type 0 radius 6.0018A: [email protected] = create_checkpoint_at -1718.5847 1292.1412 6.6781repeatwait 0if [email protected] <= 950thenjump @FAILEDenduntil 00EE:   actor $PLAYER_ACTOR 0 near_point -1718.5847 1292.1412 6.6781 radius 15.0 15.0 in_car 0164: disable_marker [email protected]: disable_racing_checkpoint [email protected]// Check 1106D5: [email protected] = create_racing_checkpoint_at -1559.5513 516.3074 6.6659 point_to -1799.661 -111.7546 5.1413 type 0 radius 6.0018A: [email protected] = create_checkpoint_at -1559.5513 516.3074 6.6659repeatwait 0if [email protected] <= 950thenjump @FAILEDenduntil 00EE:   actor $PLAYER_ACTOR 0 near_point -1559.5513 516.3074 6.6659 radius 15.0 15.0 in_car 0164: disable_marker [email protected]: disable_racing_checkpoint [email protected]// Check 1206D5: [email protected] = create_racing_checkpoint_at -1799.661 -111.7546 5.1413 point_to -2007.7626 -67.9869 34.8036 type 0 radius 6.0018A: [email protected] = create_checkpoint_at -1799.661 -111.7546 5.1413repeatwait 0if [email protected] <= 950thenjump @FAILEDenduntil 00EE:   actor $PLAYER_ACTOR 0 near_point -1799.661 -111.7546 5.1413 radius 15.0 15.0 in_car 0164: disable_marker [email protected]: disable_racing_checkpoint [email protected]// Check 1306D5: [email protected] = create_racing_checkpoint_at -2007.7626 -67.9869 34.8036 point_to -1987.0758 288.7804 34.0906 type 0 radius 6.0018A: [email protected] = create_checkpoint_at -2007.7626 -67.9869 34.8036repeatwait 0if [email protected] <= 950thenjump @FAILEDenduntil 00EE:   actor $PLAYER_ACTOR 0 near_point -2007.7626 -67.9869 34.8036 radius 15.0 15.0 in_car 0164: disable_marker [email protected]: disable_racing_checkpoint [email protected]// Check 1406D5: [email protected] = create_racing_checkpoint_at -1987.0758 288.7804 34.0906 point_to -1986.4241 270.4849 34.8159 type 0 radius 6.0018A: [email protected] = create_checkpoint_at -1987.0758 288.7804 34.0906repeatwait 0if [email protected] <= 950thenjump @FAILEDenduntil 00EE:   actor $PLAYER_ACTOR 0 near_point -1987.0758 288.7804 34.0906 radius 15.0 15.0 in_car 0164: disable_marker [email protected]: disable_racing_checkpoint [email protected]: stop_timer [email protected]// Finish018A: [email protected] = create_checkpoint_at -1986.4241 270.4849 34.8159repeatwait 0until 00FE:   actor $PLAYER_ACTOR sphere 1 in_sphere -1986.4241 270.4849 34.8159 radius 6.0 6.0 6.00164: disable_marker [email protected]:PASSED0394: play_music 1 01E3: show_text_1number_styled GXT 'M_PASS' number 85000 time 5000 style 10109: player $PLAYER_CHAR money += 85000jump @end_1:FAILED01E3: show_text_1number_styled GXT 'M_FAIL' number -50000 time 5000 style 1  // ~r~MISSION FAILED!0109: player $PLAYER_CHAR money += -50000jump @end:end_10633: AS_actor $PLAYER_ACTOR exit_car0526: set_actor [email protected] stay_in_car 00638: AS_actor [email protected] stay_put 00633: AS_actor [email protected] exit_car05CB: AS_actor [email protected] enter_car [email protected] as_driver 10000 msrepeatwait 0until 00DB:   actor [email protected] in_car [email protected] :endactor.RemoveReferences([email protected])Car.RemoveReferences([email protected]):LOCKED0A93: end_custom_thread 

 

Share this post


Link to post
Share on other sites
Dutchy3010

 

if [email protected] <= 990

 

First, and probably the reason for your crash, this isn't an opcode! There isn't an opcode with "<" in it, only with ">".

Second, this won't work, because [email protected] will always be the same as when you started (it checks only once the car health). You have to put "0227: [email protected] = car [email protected] health" also in a loop.

 

Oh, and don't use [email protected], because that is a timer itself. So just after the moment you use that opcode, it is another value (in microseconds).

Share this post


Link to post
Share on other sites
trickstar34

so if I change the variable to [email protected] the timer will work?

 

EDIT: it still crashes

 

Also like I said, the <= has nothing to do with it, because if I decompile it it will say:

 

 

if [email protected] not > 990

 

 

and worked just fine until I added the clock.

Edited by trickstar34

Share this post


Link to post
Share on other sites
Dutchy3010

Straight from the main, compare it to your code.

 

03C3: set_timer_to $1923 type 1 GXT 'BB_19' // global_variable  // Time

 

 

03C3: [email protected] set_timer_with_text_to 240 type 1 text 'RM4_34' 

 

1) [email protected] doesn't belong there.

2) 240 isn't right, because it uses a global variable as input.

Share this post


Link to post
Share on other sites
trickstar34

I thought you cant use global variables with CLEO?

 

Also, how would I put it in a variable then?

Share this post


Link to post
Share on other sites
PatrickW

 

I thought you cant use global variables with CLEO?

 

Also, how would I put it in a variable then?

Maybe you can use a local variable instead.

 

The main problem is, that you have to supply a variable, who's content wil be used as timer value. After this opcode, you can use the variable to assign a new value to the timer, or retrieve the current value of the timer.

Share this post


Link to post
Share on other sites
trickstar34

Thats what my enitial problem with the timer was, I tried it with [email protected], but it wont work. Can somebody show me a CLEO mod that has a timer, thats basicly how I learned scripting was changing mods I downloaded.

Share this post


Link to post
Share on other sites
Wesser

 

I thought you cant use global variables with CLEO?

 

Also, how would I put it in a variable then?

Well, Seemann said we shouldn't use any global variables in cleo script but I don't think so. It isn't permitted but to make something you have to use global variables like the timer opcode. Anyways, it would crash your pc but I never had one.

Share this post


Link to post
Share on other sites
ZAZ

 

I never had one.

I have experince with bugs and crashs because of globals.

But I also use sometimes globals if I need it because a local wont work.

It should be a exception and you must hope that it work without problems by other users.

Well, Seemann wrote that globals of CustomVariables.ini work

I tested $AMMU_Seller for status bar in my mission script and got a bug as I visited Ammunation.

 

@trickstar34

You can make a timer with local [email protected] or [email protected]

I show you with 2 scripts:

1. the simple script "timeout" which show how the local [email protected] works and how to display the value

2. the advanced script "Showtime" which caculates the values of [email protected] to show a countdown in blue text_draw

For both scripts you must run around the Doherty garage. The markers shows the position of the spheres for the location check

By start in first sphere you have 4 seconds to reach the second sphere, than 5 seconds to reach the third sphere

at last 4 seconds to reach the last sphere.

I hope you will see the spheres.

 

 

{$CLEO .cs}:Timeout_1// --- [email protected] and [email protected] are allways running as script timer in ms and you can catch its valuethread 'Timeout' 018A: [email protected] = create_checkpoint_at -2026.2032 139.4361 28.8:Timeout_3//------------------------------------------------------- first loopwait 0 if0256:   player $PLAYER_CHAR defined jf @Timeout_303F0: enable_text_draw 1045A: text_draw_1number  500.0  200.0 'NUMBER' [email protected]:   actor $PLAYER_ACTOR  1 (in-sphere)near_point -2026.2032 139.4361 28.83 radius  2.5  2.5  5.5jf @Timeout_3Marker.Disable([email protected])018A: [email protected] = create_checkpoint_at -2057.0911 139.3797 [email protected] = 0// set the timer to 0:Timeout_5//------------------------------------------------------- second loopwait 0 if0256:   player $PLAYER_CHAR defined jf @Timeout_repeat03F0: enable_text_draw 1045A: text_draw_1number  500.0  200.0 'NUMBER' [email protected]@ >  4000// check if timer is bigger than 4000msjf @Timeout_7jump @Timeout_repeat:Timeout_7if00FE:   actor $PLAYER_ACTOR  1 (in-sphere)near_point -2057.0911 139.3797 28.83 radius  2.5  2.5  5.5jf @Timeout_5Marker.Disable([email protected])018A: [email protected] = create_checkpoint_at -2063.8882 184.6683 [email protected] = 0// set the timer to 0:Timeout_9//------------------------------------------------------- third loopwait 0 if0256:   player $PLAYER_CHAR defined jf @Timeout_repeat03F0: enable_text_draw 1045A: text_draw_1number  500.0  200.0 'NUMBER' [email protected]@ >  5000// check if timer is bigger than 4000msjf @Timeout_11jump @Timeout_repeat:Timeout_11if00FE:   actor $PLAYER_ACTOR  1 (in-sphere)near_point -2063.8882 184.6683 28.843 radius  2.5  2.5  5.5jf @Timeout_9Marker.Disable([email protected])018A: [email protected] = create_checkpoint_at -2024.1184 180.6013 [email protected] = 0// set the timer to 0:Timeout_13//------------------------------------------------------- fourth loopwait 0 if0256:   player $PLAYER_CHAR defined jf @Timeout_repeat03F0: enable_text_draw 1045A: text_draw_1number  500.0  200.0 'NUMBER' [email protected]@ >  5000// check if timer is bigger than 5000msjf @Timeout_15jump @Timeout_repeat:Timeout_15if00FE:   actor $PLAYER_ACTOR  1 (in-sphere)near_point -2024.1184 180.6013 28.8359 radius  2.5  2.5  5.5jf @Timeout_1300BA: show_text_styled GXT 'M_PASSD' time 5000 style 1Marker.Disable([email protected])03F0: enable_text_draw 00A93: end_custom_thread//- end by success:Timeout_repeat//-----------------------refresh00BA: show_text_styled GXT 'M_FAIL' time 5000 style 103F0: enable_text_draw 0Marker.Disable([email protected])018A: [email protected] = create_checkpoint_at -2026.2032 139.4361 28.80002: jump @Timeout_3

 

 

 

{$CLEO .cs}:Showtime_1thread 'Showtime' 018A: [email protected] = create_checkpoint_at -2026.2032 139.4361 28.8:Showtime_3//------------------------------------------------------- first loopwait 0 if0256:   player $PLAYER_CHAR defined jf @Showtime_3if00FE:   actor $PLAYER_ACTOR  1 (in-sphere)near_point -2026.2032 139.4361 28.83 radius  2.5  2.5  5.5jf @Showtime_3Marker.Disable([email protected])018A: [email protected] = create_checkpoint_at -2057.0911 139.3797 [email protected] = [email protected] = 4000//----countdownt start value in ms054C: use_GXT_table 'RACETOR':Showtime_5//------------------------------------------------------- second loopwait 0 if0256:   player $PLAYER_CHAR defined jf @Showtime_repeatgosub @Showtime_text_draw//---------- gosub to the display [email protected] >  4000//-- must be equal to the previous countdownt start valuejf @Showtime_7jump @Showtime_repeat:Showtime_7if00FE:   actor $PLAYER_ACTOR  1 (in-sphere)near_point -2057.0911 139.3797 28.83 radius  2.5  2.5  5.5jf @Showtime_5Marker.Disable([email protected])018A: [email protected] = create_checkpoint_at -2063.8882 184.6683 [email protected] = [email protected] = 5000//----countdownt start value in ms:Showtime_9//------------------------------------------------------- third loopwait 0 if0256:   player $PLAYER_CHAR defined jf @Showtime_repeatgosub @Showtime_text_draw//---------- gosub to the display [email protected] >  5000//-- must be equal to the previous countdownt start valuejf @Showtime_11jump @Showtime_repeat:Showtime_11if00FE:   actor $PLAYER_ACTOR  1 (in-sphere)near_point -2063.8882 184.6683 28.843 radius  2.5  2.5  5.5jf @Showtime_9Marker.Disable([email protected])018A: [email protected] = create_checkpoint_at -2024.1184 180.6013 [email protected] = [email protected] = 5000//----countdownt start value in ms:Showtime_13//------------------------------------------------------- fourth loopwait 0 if0256:   player $PLAYER_CHAR defined jf @Showtime_repeatgosub @Showtime_text_draw//---------- gosub to the display [email protected] >  5000//-- must be equal to the previous countdownt start valuejf @Showtime_15jump @Showtime_repeat:Showtime_15if00FE:   actor $PLAYER_ACTOR  1 (in-sphere)near_point -2024.1184 180.6013 28.8359 radius  2.5  2.5  5.5jf @Showtime_1300BA: show_text_styled GXT 'M_PASSD' time 5000 style 1Marker.Disable([email protected])03F0: enable_text_draw 00A93: end_custom_thread//- end by success:Showtime_repeat//-----------------------refresh00BA: show_text_styled GXT 'M_FAIL' time 5000 style 103F0: enable_text_draw 0Marker.Disable([email protected])018A: [email protected] = create_checkpoint_at -2026.2032 139.4361 28.80002: jump @Showtime_3:Showtime_text_draw//------------------------------- subscript0085: [email protected] = [email protected] // make a local equal to the timer [email protected] 0085: [email protected] = [email protected] // make one more local equal to the timer [email protected]  0085: [email protected] = [email protected] // make a local equal to the countdownt start value which show the [email protected] /= [email protected] /= 10000062: [email protected] -= [email protected] 0085: [email protected] = [email protected] // make one more local equal to the countdownt start value which show parts of seconds [email protected] /= [email protected] /= 1000062: [email protected] -= [email protected]: enable_text_draw 10340: set_text_draw_RGBA 0 64 255 255 033F: set_text_draw_letter_size 0.45 2.7033E: set_draw_text_position 450.0  200.0 GXT 'TIMER'0340: set_text_draw_RGBA 0 64 255 255 033F: set_text_draw_letter_size 0.5 3.0045A: text_draw_1number  520.0  200.0 'NUMBER' [email protected]: set_text_draw_RGBA 0 64 255 255 033F: set_text_draw_letter_size 0.5 3.0045A: text_draw_1number  550.0  200.0 'NUMBER' [email protected]

 

 

 

Edited by ZAZ

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

  • 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.