CLEO Help Another car repair help

CLEO related

DedeRaditya

Active member
Joined
Apr 12, 2015
Messages
45
Reaction score
1
Hello,
I tried to play SAMP again, and I found out that this script is not working anymore, usually it can be activated by SHIFT+1 but it not anymore. The purpose of this script is to repair car, anyone can help me with it?

Code:
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}
{$USE CLEO+}
{$USE file}
{$USE newOpcodes}

thread "REPAIR"

:REPAIR_10
wait 0
if and
key_down 16
key_down 49
   Actor.Driving($0[3])
jf @REPAIR_10
0@ = Actor.CurrentCar($0[3])
1@ = Car.Health(0@)
if
   not 1@ > 2000.0
jf @REPAIR_10
0A30: repair_car 0@
wait 100
// 0407: store_coords_to 1@ 2@ 3@ from_car 0@ with_offset -1.5 0.0 0.0
// 0362: remove_actor $0[3] from_car_and_place_at 1@ 2@ 3@
wait 1000
Car.RemoveReferences(0@)
jump @REPAIR_10
 
Solution
Try this.
Method 1: X + 1
Method 2: X + 2
PHP:
{$CLEO .cs}
{$USE bitwise}
0000:

WHILE TRUE
WAIT 0

IF 0ADC:   test_cheat "X1"
THEN
    IF 0256:   player $PLAYER_CHAR defined
    THEN
        IF 00DF:   actor $PLAYER_ACTOR driving 
        THEN
            03C0: 0@ = actor $PLAYER_ACTOR car 
            0A30: repair_car 0@             
            01C3: remove_references_to_car 0@
            0AD1: show_formatted_text_highpriority "~g~Fixed ~w~:)" time 1337
            WAIT 1337
        ELSE 0AD1: show_formatted_text_highpriority "~r~Not Fixed ~w~:(" time 1337          
        END
    END
END

IF 0ADC:   test_cheat "X2"
THEN
    IF 0256:   player $PLAYER_CHAR defined
    THEN
        IF 00DF:   actor $PLAYER_ACTOR driving 
        THEN...

Parazitas

God
Joined
Jan 2, 2017
Messages
3,134
Solutions
5
Reaction score
885
Location
Lithuania
Hello,
I tried to play SAMP again, and I found out that this script is not working anymore, usually it can be activated by SHIFT+1 but it not anymore. The purpose of this script is to repair car, anyone can help me with it?

Code:
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}
{$USE CLEO+}
{$USE file}
{$USE newOpcodes}

thread "REPAIR"

:REPAIR_10
wait 0
if and
key_down 16
key_down 49
   Actor.Driving($0[3])
jf @REPAIR_10
0@ = Actor.CurrentCar($0[3])
1@ = Car.Health(0@)
if
   not 1@ > 2000.0
jf @REPAIR_10
0A30: repair_car 0@
wait 100
// 0407: store_coords_to 1@ 2@ 3@ from_car 0@ with_offset -1.5 0.0 0.0
// 0362: remove_actor $0[3] from_car_and_place_at 1@ 2@ 3@
wait 1000
Car.RemoveReferences(0@)
jump @REPAIR_10
It's not same SAMP, like it use to be few years ago...

Now if you try to fix your vehicle with cheats server will return original value which was before, so no matter how many times you will use it repair cheat server always return to original state...
 

DedeRaditya

Active member
Joined
Apr 12, 2015
Messages
45
Reaction score
1
It's not same SAMP, like it use to be few years ago...

Now if you try to fix your vehicle with cheats server will return original value which was before, so no matter how many times you will use it repair cheat server always return to original state...

Woah.. I thought it was because I’m using ggOS, so a lot has changed, I tried few cleo and it’s not working at all. No more cheating then?
 

dphome

Well-known member
Joined
Mar 21, 2020
Messages
457
Solutions
9
Reaction score
166
Location
Poland
Try this.
Method 1: X + 1
Method 2: X + 2
PHP:
{$CLEO .cs}
{$USE bitwise}
0000:

WHILE TRUE
WAIT 0

IF 0ADC:   test_cheat "X1"
THEN
    IF 0256:   player $PLAYER_CHAR defined
    THEN
        IF 00DF:   actor $PLAYER_ACTOR driving 
        THEN
            03C0: 0@ = actor $PLAYER_ACTOR car 
            0A30: repair_car 0@             
            01C3: remove_references_to_car 0@
            0AD1: show_formatted_text_highpriority "~g~Fixed ~w~:)" time 1337
            WAIT 1337
        ELSE 0AD1: show_formatted_text_highpriority "~r~Not Fixed ~w~:(" time 1337          
        END
    END
END

IF 0ADC:   test_cheat "X2"
THEN
    IF 0256:   player $PLAYER_CHAR defined
    THEN
        IF 00DF:   actor $PLAYER_ACTOR driving 
        THEN
            03C0: 0@ = actor $PLAYER_ACTOR car 
            0224: set_car 0@ health_to 989            
            01C3: remove_references_to_car 0@
            0AD1: show_formatted_text_highpriority "~g~Fixed ~w~:)" time 1337
            WAIT 1337
        ELSE 0AD1: show_formatted_text_highpriority "~r~Not Fixed ~w~:(" time 1337         
        END
    END
END

END
 

Attachments

  • VehFixTest.cs
    18.5 KB · Views: 13
Solution

DedeRaditya

Active member
Joined
Apr 12, 2015
Messages
45
Reaction score
1
Try this.
Method 1: X + 1
Method 2: X + 2
PHP:
{$CLEO .cs}
{$USE bitwise}
0000:

WHILE TRUE
WAIT 0

IF 0ADC:   test_cheat "X1"
THEN
    IF 0256:   player $PLAYER_CHAR defined
    THEN
        IF 00DF:   actor $PLAYER_ACTOR driving
        THEN
            03C0: 0@ = actor $PLAYER_ACTOR car
            0A30: repair_car 0@            
            01C3: remove_references_to_car 0@
            0AD1: show_formatted_text_highpriority "~g~Fixed ~w~:)" time 1337
            WAIT 1337
        ELSE 0AD1: show_formatted_text_highpriority "~r~Not Fixed ~w~:(" time 1337         
        END
    END
END

IF 0ADC:   test_cheat "X2"
THEN
    IF 0256:   player $PLAYER_CHAR defined
    THEN
        IF 00DF:   actor $PLAYER_ACTOR driving
        THEN
            03C0: 0@ = actor $PLAYER_ACTOR car
            0224: set_car 0@ health_to 989           
            01C3: remove_references_to_car 0@
            0AD1: show_formatted_text_highpriority "~g~Fixed ~w~:)" time 1337
            WAIT 1337
        ELSE 0AD1: show_formatted_text_highpriority "~r~Not Fixed ~w~:(" time 1337        
        END
    END
END

END

First method works, but 2nd method doesnt, how to make the first method to repair car health to 2000? Because in this server car are tuned up.
 
Top