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

    1. GTANet.com

    1. GTA Online

      1. The Contract
      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

What's wrong with this again!?!?!


Sharppp
 Share

Recommended Posts

{$CLEO .cm}
gosub @Mission
if
wasted_or_busted
then
gosub @Mission_Failed
end
gosub @Mission_Failed
end_thread

:Mission
thread 'LKSCHII'
$409 = 1

// Player Init
select_interior 0
07B4: set_player $PLAYER_CHAR gang_recruitment_enabled 0

fade 0 1000
gosub @Fading

Model.Load(#FAM2)
Model.Load(#FAM1)
Model.Load(#FAM3)
Model.Load(#BALLAS1)
Model.Load(#BALLAS2)
Model.Load(#BALLAS3)
Model.Load(#GREENWOO)
Model.Load(#TAHOMA)
Model.Load(#MAJESTIC)
Model.Load(#CHROMEGUN)
Model.Load(#TEC9)
Model.Load(#COLT45)
038B: load_requested_models

0395: clear_area 1 at 2483.3811 -1656.1223 13.321 radius 3.0

00A5: [email protected] = create_car #GREENWOO at 2483.3811 -1656.1223 13.321
0175: set_car [email protected] Z_angle_to 88.8997
0229: set_car [email protected] primary_color_to 10 secondary_color_to 1

01C8: [email protected] = create_actor_pedtype 24 model #FAM1 in_car [email protected] passenger_seat 0
0223: set_actor [email protected] health_to 200
01B2: give_actor [email protected] weapon 25 ammo 60000 // Load the weapon model before using this
09B5: set_actor [email protected] signal_after_kill 0
081A: set_actor [email protected] weapon_skill_to 2
0526: set_actor [email protected] stay_in_car_when_jacked 1
039E: set_actor [email protected] locked 1 while_in_car
02E2: set_actor [email protected] weapon_accuracy_to 40
07DD: set_actor [email protected] attack_rate 100 // previously known as temper_to
07CB: set_actor [email protected] supporting_fire 1

01C8: [email protected] = create_actor_pedtype 24 model #FAM2 in_car [email protected] passenger_seat 1
0223: set_actor [email protected] health_to 200
01B2: give_actor [email protected] weapon 22 ammo 60000 // Load the weapon model before using this
09B5: set_actor [email protected] signal_after_kill 0
081A: set_actor [email protected] weapon_skill_to 2
0526: set_actor [email protected] stay_in_car_when_jacked 1
039E: set_actor [email protected] locked 1 while_in_car
02E2: set_actor [email protected] weapon_accuracy_to 40
07CB: set_actor [email protected] supporting_fire 1

01C8: [email protected] = create_actor_pedtype 24 model #FAM3 in_car [email protected] passenger_seat 2
0223: set_actor [email protected] health_to 200
01B2: give_actor [email protected] weapon 32 ammo 60000 // Load the weapon model before using this
09B5: set_actor [email protected] signal_after_kill 0
081A: set_actor [email protected] weapon_skill_to 2
0526: set_actor [email protected] stay_in_car_when_jacked 1
039E: set_actor [email protected] locked 1 while_in_car
02E2: set_actor [email protected] weapon_accuracy_to 40
07DD: set_actor [email protected] attack_rate 65 // previously known as temper_to
07CB: set_actor [email protected] supporting_fire 1

01B9: set_actor [email protected] armed_weapon_to 0
01B9: set_actor [email protected] armed_weapon_to 0
01B9: set_actor [email protected] armed_weapon_to 0

00BE: text_clear_all

fade 1 1000
gosub @Fading

02A3: enable_widescreen 0
01B4: set_player $PLAYER_CHAR can_move 1


// [email protected] ========> CHECKPOINT !

[email protected] = 0

while true
wait 0
if or
0118: actor [email protected] dead
0118: actor [email protected] dead
0118: actor [email protected] dead
then
00BC: show_text_highpriority GXT 'LKS_001' time 5000 flag 1
jump @Mission_Failed
end
if
0119: car [email protected] wrecked
then
00BC: show_text_highpriority GXT 'LKS_002' time 5000 flag 1
jump @Mission_Failed
end
if
00DB: actor $PLAYER_ACTOR in_car [email protected]
then
if
075C: marker [email protected] enabled
then
0164: disable_marker [email protected]
0164: disable_marker [email protected]
end
else
if
875C: Not marker [email protected] enabled
then
0186: [email protected] = create_marker_above_car [email protected]
07E0: set_marker [email protected] type_to 1
018A: [email protected] = create_checkpoint_at 2344.8789 -1550.5411 23.8354
end
end
if and
[email protected] == 0
00DB: actor $PLAYER_ACTOR in_car [email protected]
then
[email protected] += 1
00BC: show_text_highpriority GXT 'LKS_004' time 5000 flag 1
end
if and
[email protected] == 1
80DB: not actor $PLAYER_ACTOR in_car [email protected]
then
[email protected] -= 1
00BC: show_text_highpriority GXT 'LKS_001' time 5000 flag 1
end
if and
00DB: actor $PLAYER_ACTOR in_car [email protected]
0100: actor $PLAYER_ACTOR in_sphere 1793.068 -1904.254 12.3989 radius 3.0 3.0 3.0 sphere 1 in_car
then
04BA: set_car [email protected] speed_to 0.0
break
end
end

// Clear Area ===> Battlefield
0395: clear_area 1 at 681.8004 -474.1063 15.5363 radius 10.0

01E8: create_forbidden_for_cars_cube_cornerA 2333.6233 -1573.916 24.0059 cornerB 2517.4536 -1378.9497 28.5383
022B: create_forbidden_for_peds_cube_cornerA 2333.6233 -1573.916 24.0059 cornerB 2517.4536 -1378.9497 28.5383


00A5: [email protected] = create_car #PONY at 0.0 0.0 0.0








:Fading
if
816B: not fading
jf @Fading
return

:Mission_Failed
00BA: show_text_styled GXT "M_FAIL" time 5000 style 1
return

:Mission_Cleanup
mission_cleanup

 

 

======================

 

I know it's not finish 'cause I want to know if it's working before I put much effort into it. Just a newbie in Sanny Builder.

 

I don't know what's wrong with it and always get an error. Can some veterans tell me what needs to be done (scripts). Please!

 

 

Link to comment
Share on other sites

you already got answer here and from me, no need to open this topic

if you can't understand how to fix, then forget it, it's too complicate for newbies, read tutorials and learn coding first

CLEO Script Tutorial

CLEO_Script_Tut

Learn GTA3script in Y minutes

 

 

 

This is not valid:

GOSUB @FADING:FADINGIF    816B:  NOT fadingJF @FADING
A GOSUB is not needed since your script reaches that part of the code anyways and you need a WAIT in the loop.

 

and you need a WAIT in the loop

and you need a WAIT in the loop

and you need a WAIT in the loop

and you need a WAIT in the loop

and you need a WAIT in the loop

and you need a WAIT in the loop

and you need a WAIT in the loop

and you need a WAIT in the loop

 

and you need a WAIT in the loop

and you need a WAIT in the loop

and you need a WAIT in the loop

 

and you need a WAIT in the loop

and you need a WAIT in the loop

and you need a WAIT in the loop

and you need a WAIT in the loop

and you need a WAIT in the loop

 

 

The Basics

// A very important command is WAIT (http://www.gtamodding.com/wiki/0001).// The game is single-threaded, and as such it has to stop updating the game to process scripts, including this one.// To signal the game we're done with the script on this tick, we should use WAIT.WAIT 0    // stops execution and returns on the next tick.WAIT 1000 // stops execution for at least 1000ms.

 

 

 

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 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.