CLEO Help COMMAND ON VEHICLE (prob)

CLEO related
Status
Not open for further replies.

pai1ne13

Active member
Joined
Jan 2, 2019
Messages
59
Reaction score
4
Hi, I have a problem with this mode, I want when I enter the vehicles presented to be sent this message on chat "----", but only goes to the first car and spamming the chat.
HOW CAN I FIX IT????



Code:
{$CLEO .cs}
0000:

REPEAT
   WAIT 0
UNTIL 0AFA:  SAMP_IS_READY

WHILE TRUE
WAIT 0

0AC8: 0@ = allocate_memory_size 260
IF
00DD: actor $PLAYER_ACTOR driving_car_with_model #NRG500, #PCJ600, #PIZZABOY, #FCR900
THEN  
WAIT 1000  
0AF9: samp say_msg "---"
wait 1000

end
0AC9: free_allocated_memory 0@
end
 

Parazitas

God
Joined
Jan 2, 2017
Messages
3,117
Solutions
5
Reaction score
882
Location
Lithuania
Simple TRUE / FALSE simulate

PHP:
{$CLEO .cs}

0000:

REPEAT
   WAIT 0
UNTIL 0AFA:  SAMP_IS_READY

WHILE TRUE
WAIT 0


IF OR // IF OR CAN HAVE MAX 8 CHECKS
00DD: actor $PLAYER_ACTOR driving_car_with_model #NRG500
00DD: actor $PLAYER_ACTOR driving_car_with_model #PCJ600
00DD: actor $PLAYER_ACTOR driving_car_with_model #PIZZABOY
00DD: actor $PLAYER_ACTOR driving_car_with_model #FCR900
THEN // IF DRIVING WITH MODEL MODEL THEN...  
    IF
    0@ == TRUE // IF CODE IS ENABLED
    THEN
        0@ = FALSE // DISABLE CODE
        WAIT 1000              // WAIT
        0AF9: samp say_msg "---"  /// SEND TEXT / COMMAND
    END
ELSE
    0@ = TRUE  // IF NOT DRIVING WITH MODEL THEN ENABLE CODE
END

END
 
Status
Not open for further replies.
Top