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
    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 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 Mods
    10. GTA Vice City

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

      1. Guides & Strategies
      2. Help & Support
      3. GTA 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

PrakamyaKhare

(Help) CLEO script

Recommended Posts

PrakamyaKhare
Posted (edited)

hello, is there any one who help me in my cleo script, l wrote a script which spawn a ped in cycle at MT chiliad and it drive to top part of the MT chiliad , but when i exist the MT chiliad zone so it no more follow the path it goes towards the ZIG ZAK direction, so how to make it follow the path when i m not in the active zone.

Soory for my bad eng

Here's my script

{$CLEO .csa}

//--------------MAIN------------

thread 'MT'

 

:CLIMB_40

wait 0 

if and

0256:   player $PLAYER_CHAR defined 

0103:   actor $PLAYER_ACTOR in_sphere  -2291.505 -2156.2575 47.613 radius 4.0 4.0 6.0 sphere 0 stopped_in_car 

jf @CLIMB_40 

jump @CLIMB_2

 

:CLIMB_2

0247: load_model #MTBIKE

0247: load_model #BMYMOUN

060A: create_decision_maker_type 4 store_to [email protected] // decision\allowed\m_.ped files 

038B: load_requested_model

jump @CLIMB_3

 

:CLIMB_3

00A5: [email protected] =  create_car #MTBIKE at -2291.505 -2156.2575 47.613

0129: [email protected] = create _actor 23 #BMYMOUN in_car [email protected] driver_seat

060B: set_actor [email protected] decision_maker_to [email protected]

0186: $marker04 = create_marker_above_car [email protected]

05D6: clear_scmpath

wait 1

05D7: add_point_to_scm_path -2145.3659 -2013.3830 94.3297

05D7: add_point_to_scm_path -2101.2158 -1883.7838 110.2050

05D7: add_point_to_scm_path -2224.1213 -2051.5695 119.5782

05D7: add_point_to_scm_path  -2400.598 -2097.1779 118.6154

07E7: AS_assign_scmpath_to_actor [email protected] in_car [email protected] speed 15.0 flags 1 0 1

 

 

:CLIMB_2031

wait 0 

01B4: set_player $PLAYER_CHAR can_move 1 

if 

00EE:   actor [email protected] sphere 0 near_point  -2400.598 -2097.1779 radius 5.0 5.0 in_car 

jump @CLIMB_4

 

:CLIMB_4

05D6: clear_scmpath

wait 1

05D7: add_point_to_scm_path -2600.9938 -1650.7460 340.2745

05D7: add_point_to_scm_path -2584.1047 -1634.7257 347.493

05D7: add_point_to_scm_path -2525.334 -1799.7188 376.7591

05D7: add_point_to_scm_path -2556.8063 -1672.9647 398.2809

05D7: add_point_to_scm_path -2542.7355 -1670.9516 400.9064

07E7: AS_assign_scmpath_to_actor [email protected] in_car [email protected] speed 15.0 flags 1 0 1

 

 

:CLIMB_2032

wait 0 

01B4: set_player $PLAYER_CHAR can_move 1 

if 

00EE:   actor [email protected] sphere 0 near_point -2542.7355 -1670.9516 radius 5.0 5.0 in_car 

jump @CLIMB_5

 

:CLIMB_5

05D6: clear_scmpath

05D7: add_point_to_scm_path -2527.2775 -2072.7556 127.1444

05D7: add_point_to_scm_path -2604.5187 -2083.2717 132.695

05D7: add_point_to_scm_path -2640.8303 -1973.7847 126.6399

05D7: add_point_to_scm_path -2712.7033 -1876.9261 138.6867

05D7: add_point_to_scm_path -2765.917 -1581.7215 141.3753

05D7: add_point_to_scm_path -2754.3750 -1433.5322 140.4818

05D7: add_point_to_scm_path -2530.9638 -1114.4912 177.948

05D7: add_point_to_scm_path -2529.1987 -1145.1240 179.2190

07E7: AS_assign_scmpath_to_actor [email protected] in_car [email protected] speed 15.0 flags 1 0 1

 

:CLIMB_2033

wait 0 

01B4: set_player $PLAYER_CHAR can_move 1 

if 

00EE:   actor [email protected] sphere 0 near_point -2529.1987 -1145.1240  radius 5.0 5.0 in_car 

jump @CLIMB_7

 

:CLIMB_7

05D6: clear_scmpath

wait 1

05D7: add_point_to_scm_path -2661.3146 -1394.1999 255.1087

05D7: add_point_to_scm_path -2570.5998 -1355.8131 265.8281

05D7: add_point_to_scm_path -2348.5075 -1286.5861 308.4708

05D7: add_point_to_scm_path -2575.9436 -1472.268 359.234

05D7: add_point_to_scm_path -2569.9990 -1503.3646 359.167

05D7: add_point_to_scm_path -2241.947 -1465.5234 355.5367

05D7: add_point_to_scm_path -2193.1755 -1717.2554 376.5596

05D7: add_point_to_scm_path -2403.3508 -1455.8100 386.568

07E7: AS_assign_scmpath_to_actor [email protected] in_car [email protected] speed 15.0 flags 1 0 1

 

 

 

:CLIMB_2035

wait 0 

01B4: set_player $PLAYER_CHAR can_move 1 

if 

00EE:   actor [email protected] sphere 0 near_point -2403.3508 -1455.8100 radius 5.0 5.0 in_car 

jump @CLIMB_8

 

:CLIMB_8

05D6: clear_scmpath

wait 1

05D7: add_point_to_scm_path -2490.3601 -1534.8181 393.8728

05D7: add_point_to_scm_path -2435.4152 -1799.5914 411.462

05D7: add_point_to_scm_path -2318.2702 -1624.2811 483.7076

07E7: AS_assign_scmpath_to_actor [email protected] in_car [email protected] speed 15.0 flags 1 0 1

jump @CLIMB_229

 

:CLIMB_229

wait 500 

if 

0118:   actor [email protected] dead 

0118:   actor [email protected] dead 

jf @CLIMB_229 

jump @CLIMB_257 

 

:CLIMB_257

wait 500 

009B: destroy_actor [email protected] 

009B: destroy_actor [email protected] 

wait 8000 

jump @CLIMB_40

end_thread

 
Edited by PrakamyaKhare

Share this post


Link to post
Share on other sites
ZAZ
Posted (edited)


This conditional check is not correct, i doesn't work

if

00EE:   actor 2@ sphere 0 near_point  -2400.598 -2097.1779 radius 5.0 5.0 in_car

jump @CLIMB_4

The else_jump is missing
(jump instruction if condition fail is missing)
(jump_if_false is missing)
here you made it right

if and

0256:   player $PLAYER_CHAR defined

0103:   actor $PLAYER_ACTOR in_sphere  -2291.505 -2156.2575 47.613 radius 4.0 4.0 6.0 sphere 0 stopped_in_car

jf @CLIMB_40


This conditional check is also not correct, i doesn't work

if

00EE:   actor 2@ sphere 0 near_point -2542.7355 -1670.9516 radius 5.0 5.0 in_car

jump @CLIMB_5

 


This conditional check is also not correct, i doesn't work

if

00EE:   actor 2@ sphere 0 near_point -2529.1987 -1145.1240  radius 5.0 5.0 in_car

jump @CLIMB_7

 


This conditional check is also not correct, i doesn't work

if

00EE:   actor 2@ sphere 0 near_point -2403.3508 -1455.8100 radius 5.0 5.0 in_car

jump @CLIMB_8

 


This conditional check is also not correct, "and" is missing
If there're more than one condition, it needs to determine if it means "if and" or "if or"

if

0118:   actor 1@ dead

0118:   actor 2@ dead

jf @CLIMB_229


What Sannybuilder version do you have?
because Sannybuilder should complain the missing "and" when compile
you should have version 3.2.2

Or did you never compile this script?
Also, why do you have this directive at script beginn?

{$CLEO .csa}

Is the script for cleo Android mobile version?
 

 

Edited by ZAZ

Share this post


Link to post
Share on other sites
PrakamyaKhare

I m currently using sb version 3.2.0 

This script is for android sir.

No sb compile the script successfully and it also run without any problem. But the problem is when i comes out from chiliad zone so the car does not follow the path it stuck 

Sorry for my bad eng

Respected ZAZ , can u please rewrite this script without any mistakes for android, please please

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.

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.


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