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. GTA San Andreas

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

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

      1. Classic GTA III
      2. Guides & Strategies
      3. Help & Support
    4. Bugs*

    1. Grand Theft Auto Series

      1. 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. Portable Games

      1. GTA Chinatown Wars
      2. GTA Vice City Stories
      3. GTA Liberty City Stories
    6. 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

      1. GTANet 20th Anniversary
    2. Support

    3. Suggestions

what's wrong with this script


crashoverride93
 Share

Recommended Posts

crashoverride93

What's wrong with this script?

 

It seems to freeze apon entering a car I think it has something to do with end not being there but sanny complains when I try to add them.

 

{$CLEO .cs}

0000: PHIIPC

:PHIIPC_00

WAIT 100

IF

0256: player $PLAYER_CHAR defined

REPEAT UNTIL TRUE

 

 

WHILE TRUE

WAIT 100

IF OR

00E0: player $PLAYER_CHAR driving

0443: player $PLAYER_CHAR in_a_car

JF @PHIIPC_01

REPEAT UNTIL TRUE

 

 

WHILE TRUE

WAIT 100

00DA: [email protected] = player $PLAYER_CHAR car

IF OR

0ADB: [email protected] = car_model #POLICE name

0ADB: [email protected] = car_model #ENFORCER name

0ADB: [email protected] = car_model #FBICAR name

0ADB: [email protected] = car_model #BARRACKS name

0ADB: [email protected] = car_model #RHINO name

JF @PHIIPC_01

WHILE TRUE

WAIT 100

IF

0442: player $PLAYER_CHAR in_car [email protected]

jf @PHIIPC_01

01F7: set_player $PLAYER_CHAR ignored_by_cops_state_to 1

01F0: set_max_wanted_level_to 0

jump @PHIIPC_00

 

 

:PHIIPC_01

IF OR

80E0: not player $PLAYER_CHAR driving

8443: not player $PLAYER_CHAR in_a_car

80DA: not [email protected] = player $PLAYER_CHAR car

8ADB: not [email protected] = car_model #POLICE name

8ADB: not [email protected] = car_model #ENFORCER name

8ADB: not [email protected] = car_model #FBICAR name

8ADB: not [email protected] = car_model #BARRACKS name

8ADB: not [email protected] = car_model #RHINO name

jf @PHIIPC_00

01F7: set_player $PLAYER_CHAR ignored_by_cops_state_to 0

01F0: set_max_wanted_level_to 6

jump @PHIIPC_00

 

I know I mixed high and low level formats but that's because I don't know how to otherwise go about jump if false to another condition.

Edited by crashoverride93
Link to comment
Share on other sites

Don't works for SA, it's a VC cleo script
after recompiling by VC mode you'll get this

{$CLEO .cs}//-------------MAIN---------------0000: NOP :NONAME_2wait 100 if    Player.Defined($PLAYER_CHAR)wait 100 if or00E0:   player $PLAYER_CHAR driving 0443:   player $PLAYER_CHAR in_a_car jf @NONAME_144 wait 100 00DA: [email protected] = player $PLAYER_CHAR car if or0ADB: [email protected] = car_model #POLICE name 0ADB: [email protected] = car_model #ENFORCER name 0ADB: [email protected] = car_model #FBICAR name 0ADB: [email protected] = car_model #BARRACKS name 0ADB: [email protected] = car_model #RHINO name jf @NONAME_144 wait 100 if 0442:   player $PLAYER_CHAR in_car [email protected] jf @NONAME_144 01F7: set_player $PLAYER_CHAR ignored_by_cops_state_to 1 01F0: set_max_wanted_level_to 0 jump @NONAME_2 :NONAME_144if or80E0:   not player $PLAYER_CHAR driving 8443:   not player $PLAYER_CHAR in_a_car 80DA:   not [email protected] = player $PLAYER_CHAR car 8ADB:   not [email protected] = car_model #POLICE name 8ADB:   not [email protected] = car_model #ENFORCER name 8ADB:   not [email protected] = car_model #FBICAR name 8ADB:   not [email protected] = car_model #BARRACKS name 8ADB:   not [email protected] = car_model #RHINO name jf @NONAME_2 01F7: set_player $PLAYER_CHAR ignored_by_cops_state_to 0 01F0: set_max_wanted_level_to 6 jump @NONAME_2

after recompiling by SA mode you'll get this

 

// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013{$CLEO .cs}//-------------MAIN---------------0000: NOP :NONAME_2wait 100 if    Player.Defined($PLAYER_CHAR)wait 100 if or00E0: 0443: else_jump @NONAME_110 wait 100 00DA: if or0ADB: [email protected] = car_model #ENFORCER name 0ADB: [email protected] = car_model #BARRACKS name 0ADB: [email protected] = car_model #RHINO name else_jump @NONAME_110 wait 100 if 0442: else_jump @NONAME_110 01F7: set_player $PLAYER_CHAR ignored_by_cops 1 01F0: set_max_wanted_level_to 0 goto @NONAME_2 :NONAME_110if or80E0:   not 8443:   not 80DA:   not 8ADB:   not [email protected] = car_model #ENFORCER name 8ADB:   not [email protected] = car_model #BARRACKS name 8ADB:   not [email protected] = car_model #RHINO name else_jump @NONAME_2 01F7: set_player $PLAYER_CHAR ignored_by_cops 0 01F0: set_max_wanted_level_to 6 goto @NONAME_2

 


I know I mixed high and low level formats but that's because I don't know how to otherwise go about jump if false to another condition.

:PHIIPC_00
WAIT 100
IF
0256: player $PLAYER_CHAR defined
REPEAT UNTIL TRUE

i never saw this unusual construct, but Sannybuilder accept it as you can see after recompiling

for San Andreas i would it write in this way

{$CLEO .cs}thread 'PHIIPC'while true    wait 0    if    0256:   player $PLAYER_CHAR defined    then        if  or            00DD:   actor $PLAYER_ACTOR driving_car_with_model #COPCARLA            00DD:   actor $PLAYER_ACTOR driving_car_with_model #COPCARSF            00DD:   actor $PLAYER_ACTOR driving_car_with_model #COPCARVG            00DD:   actor $PLAYER_ACTOR driving_car_with_model #RHINO            00DD:   actor $PLAYER_ACTOR driving_car_with_model #ENFORCER            00DD:   actor $PLAYER_ACTOR driving_car_with_model #BARRACKS            00DD:   actor $PLAYER_ACTOR driving_car_with_model #RHINO        then            //03C0: [email protected] = actor $PLAYER_ACTOR car            01F7: set_player $PLAYER_CHAR ignored_by_cops 1             01F0: set_max_wanted_level_to 0            00BA: text_styled 'fem_ok'  1000 ms  4//ok            while true                wait 0                if                0256:   player $PLAYER_CHAR defined                then                    if                        8449: not  actor $PLAYER_ACTOR in_a_car                    then                        break                    end                end            end                        01F7: set_player $PLAYER_CHAR ignored_by_cops 0             01F0: set_max_wanted_level_to 6                            wait 2000            00BA: text_styled 'fem_off'  1000 ms  4//off        end    endend
Link to comment
Share on other sites

crashoverride93

Thank you zaz by the way I was writing it for GTA3 but because I got Cleo 2 working As Opcode's worked I just had to change the model back to police.

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.