Jump to content
    1. Welcome to GTAForums!

    1. GTANet.com

    1. GTA Online

      1. Los Santos Drug Wars
      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

Sum help with cleo script


loczek47
 Share

Recommended Posts

Hi , I was trying to teach myself making cleo mods. So I wanted to edit james227UK Squad mod (for private use !) , but I got problems. The first line of text shows and then game crash. Here's edited version of james227UK script :

// This file was decompiled using sascm.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007

 

{$VERSION 3.1.0027}

{$CLEO .cs}

 

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

thread 'SQUAD'

 

:SQUAD_11

wait 0

if

00E1: player 0 pressed_key 10

else_jump @SQUAD_11

Model.Load(#FAM1)

Model.Load(#FAM2)

Model.Load(#FAM3)

Model.Load(#BURRITO)

Model.Load(#BAT)

Model.Load(#COLT45)

Model.Load(#CHROMEGUN)

Model.Load(#MICRO_UZI)

Model.Load(#AK47)

Model.Load(#c*ntGUN)

Model.Load(#ROCKETLA)

Model.Load(#SPRAYCAN)

Model.Load(#MOLOTOV)

0662: NOP "SQUAD"

0662: NOP "BY JAMES227UK"

0662: NOP "COPYRIGHT 2008"

0662: NOP "IF THIS MESSAGE IS REMOVED FROM THE SCRIPT AND THE SCRIPT IS POSTED ON ANOTHER WEBSITE WITHOUT CREDITS"

0662: NOP "YOU WILL BE SENTENCED TO THE MAXIMUM EXTENT"

0662: NOP "MOD STEALING.... ITS A CRIME!"

04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 0.0 50.0 1.0

04C4: store_coords_to [email protected] [email protected] [email protected] from_actor $PLAYER_ACTOR with_offset 0.0 50.0 1.0

04D3: get_nearest_car_path_coords_from [email protected] [email protected] [email protected] type 2 store_to [email protected] [email protected] [email protected]

07AF: $PLAYER_GROUP = player $PLAYER_CHAR group

0630: put_actor $PLAYER_ACTOR in_group $PLAYER_GROUP as_leader

00BC: show_text_highpriority GXT 'sh*t111' time 3000 flag 1

 

:SQUAD_436

wait 0

if

Model.Available(#FAM1)

Model.Available(#FAM2)

Model.Available(#FAM3)

Model.Available(#BURRITO)

Model.Available(#BAT)

Model.Available(#COLT45)

Model.Available(#CHROMEGUN)

Model.Available(#MICRO_UZI)

Model.Available(#AK47)

Model.Available(#c*ntGUN)

Model.Available(#ROCKETLA)

Model.Available(#SPRAYCAN)

Model.Available(#MOLOTOV)

else_jump @SQUAD_436

[email protected] = Car.Create(#BURRITO, [email protected], [email protected], [email protected])

[email protected] = Marker.CreateAboveCar([email protected])

018B: set_marker [email protected] radar_mode 2

[email protected] = Actor.Create(Special, #FAM2, [email protected], [email protected], [email protected])

072A: put_actor [email protected] into_car [email protected] driverseat

01B2: give_actor [email protected] weapon 30 ammo 100000 // Load the weapon model before using this

Actor.Health([email protected]) = 50000

01C8: [email protected] = create_actor_pedtype 23 model #FAM1 in_car [email protected] passenger_seat 0

01B2: give_actor [email protected] weapon 25 ammo 100000 // Load the weapon model before using this

Actor.Health([email protected]) = 50000

01C8: [email protected] = create_actor_pedtype 23 model #FAM2 in_car [email protected] passenger_seat 1

01B2: give_actor [email protected] weapon 28 ammo 100000 // Load the weapon model before using this

Actor.Health([email protected]) = 50000

01C8: [email protected] = create_actor_pedtype 23 model #FAM3 in_car [email protected] passenger_seat 2

01B2: give_actor [email protected] weapon 22 ammo 100000 // Load the weapon model before using this

Actor.Health([email protected]) = 50000

[email protected] = Marker.CreateAboveActor([email protected])

Car.DriveTo([email protected], [email protected], [email protected], [email protected])

 

:SQUAD_723

wait 0

if

01AD: car [email protected] sphere 0 near_point [email protected] [email protected] radius 6.0 6.0

else_jump @SQUAD_723

Marker.Disable([email protected])

05CD: AS_actor [email protected] exit_car [email protected]

05CD: AS_actor [email protected] exit_car [email protected]

05CD: AS_actor [email protected] exit_car [email protected]

05CD: AS_actor [email protected] exit_car [email protected]

0631: put_actor [email protected] in_group $PLAYER_GROUP

0631: put_actor [email protected] in_group $PLAYER_GROUP

0631: put_actor [email protected] in_group $PLAYER_GROUP

0631: put_actor [email protected] in_group $PLAYER_GROUP

00BC: show_text_highpriority GXT 'sh*t!!!' time 3000 flag 1

Car.RemoveReferences([email protected])

0A8C: write_memory 9867536 size 4 value 0 virtual_protect 0

 

:SQUAD_864

wait 0

if and

Actor.Dead([email protected])

Actor.Dead([email protected])

Actor.Dead([email protected])

Actor.Dead([email protected])

else_jump @SQUAD_1000

jump @SQUAD_906

 

:SQUAD_906

Marker.Disable([email protected])

Actor.RemoveReferences([email protected])

Actor.RemoveReferences([email protected])

Actor.RemoveReferences([email protected])

Actor.RemoveReferences([email protected])

Model.Destroy(#FAM1)

Model.Destroy(#FAM2)

Model.Destroy(#FAM3)

Model.Destroy(#BURRITO)

Model.Destroy(#BAT)

Model.Destroy(#COLT45)

Model.Destroy(#CHROMEGUN)

Model.Destroy(#MICRO_UZI)

Model.Destroy(#AK47)

Model.Destroy(#c*ntGUN)

Model.Destroy(#ROCKETLA)

Model.Destroy(#SPRAYCAN)

Model.Destroy(#MOLOTOV)

jump @SQUAD_11

 

:SQUAD_1000

wait 0

if and

00F3: actor $PLAYER_ACTOR near_actor [email protected] radius 2.0 2.0 0 on_foot

00E1: player 0 pressed_key 9

else_jump @SQUAD_1100

00BC: show_text_highpriority GXT 'sh*t222' time 3000 flag 1

wait 0

Actor.Health($PLAYER_ACTOR) = 1500

Actor.Armour($PLAYER_ACTOR) = 1500

00BC: show_text_highpriority GXT 'sh*t333' time 1000 flag 1

jump @SQUAD_1100

 

:SQUAD_1100

wait 0

if

Actor.Dead($PLAYER_ACTOR)

else_jump @SQUAD_1127

jump @SQUAD_906

 

:SQUAD_1127

wait 0

if

00F3: actor $PLAYER_ACTOR near_actor [email protected] radius 2.0 2.0 0 on_foot

00E1: player 0 pressed_key 8

else_jump @SQUAD_864

01B2: give_actor $PLAYER_ACTOR weapon 5 ammo 1 // Load the weapon model before using this

01B2: give_actor $PLAYER_ACTOR weapon 22 ammo 125 // Load the weapon model before using this

01B2: give_actor $PLAYER_ACTOR weapon 25 ammo 50 // Load the weapon model before using this

01B2: give_actor $PLAYER_ACTOR weapon 28 ammo 250 // Load the weapon model before using this

01B2: give_actor $PLAYER_ACTOR weapon 30 ammo 250 // Load the weapon model before using this

01B2: give_actor $PLAYER_ACTOR weapon 33 ammo 50 // Load the weapon model before using this

01B2: give_actor $PLAYER_ACTOR weapon 35 ammo 5 // Load the weapon model before using this

01B2: give_actor $PLAYER_ACTOR weapon 41 ammo 5000 // Load the weapon model before using this

jump @SQUAD_864

Edited by loczek47
Link to comment
Share on other sites

 

Hi , I was trying to teach myself making cleo mods. So I wanted to edit james227UK Squad mod (for private  use !) , but I got problems. The first line of text shows and then game crash. Here's edited version of james227UK script :

// This file was decompiled using sascm.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007

 

 

there are to much conditions in this check:

 

ifModel.Available(#FAM1)Model.Available(#FAM2)Model.Available(#FAM3)Model.Available(#BURRITO)Model.Available(#BAT)Model.Available(#COLT45)Model.Available(#CHROMEGUN)Model.Available(#MICRO_UZI)Model.Available(#AK47)Model.Available(#c*ntGUN)Model.Available(#ROCKETLA)Model.Available(#SPRAYCAN)Model.Available(#MOLOTOV)else_jump @SQUAD_436

 

max = 9, look in sanny help

Link to comment
Share on other sites

if andModel.Available(#FAM1)Model.Available(#FAM2)Model.Available(#FAM3)Model.Available(#BURRITO)Model.Available(#BAT)Model.Available(#COLT45)Model.Available(#CHROMEGUN)Model.Available(#MICRO_UZI)Model.Available(#AK47)jf @SQUAD_436if andModel.Available(#c*ntGUN)Model.Available(#ROCKETLA)Model.Available(#SPRAYCAN)Model.Available(#MOLOTOV)jf @SQUAD_436

 

Link to comment
Share on other sites

Thank you all !

But I fixed it without your help....You know what's the problem ? I was trying to change from Patriot to Burrito , but when I changed [email protected] = Car.Create(#PATRIOT, [email protected], [email protected], [email protected]) to [email protected] = Car.Create(#BURRITO, [email protected], [email protected], [email protected]) my game crashed. I changed the models lines and Car.Create lines from Burrito to default , Patriot. Now it works.

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.