CLEO Help CMD use only car

CLEO related

Angel9

Active member
Joined
May 6, 2021
Messages
65
Reaction score
2
Location
Belgrade, Serbia
I only want it activated in the car ( on any seat ), how?, Not on motorcycles and planes.

Code:
{$CLEO .cs}
0000:


REPEAT
 WAIT 0
UNTIL 0AFA:  SAMP_IS_READY

 
WHILE TRUE
WAIT 0
IF
80DF:   actor $PLAYER_ACTOR driving
THEN
    31@ = TRUE
END

IF AND
31@ == TRUE
00DF:   actor $PLAYER_ACTOR in_a_car
THEN
    03C0: 0@ = actor $PLAYER_ACTOR car
    02E3: 1@ = car 0@ speed
    0208: 2@ = random_float_in_ranges 4.0 9.0
    IF
    0035:   1@ >= 2@  // (float)
    THEN
        IF
        047A: actor $PLAYER_ACTOR in_a_car
        THEN
               0AF9: samp say_msg "/light"
            31@ = FALSE
        ELSE
                END
            END
        END
    END
:SEND_CMD
//0AB1: @SEND_CMD 1 $text
IF 0AA2: 1@ = "samp.dll"
THEN
    1@ += 0x69340
    0AA5: call 1@ num_param 1 pop 0 0@
END
0AB2: 0
 
Top