Hi, how can i make a car color to change slowly, from one rgb color to another ?
I made something like this:
I made something like this:
Code:
{$CLEO .cs}
0000: NOP
REPEAT
WAIT 100
UNTIL SAMP.Available()
WHILE TRUE
WAIT 0
1@ = 255
2@ = 0
3@ = 0
FOR 3@ = 0 TO 255
WAIT 0
GOSUB @color
END
3@ = 255
FOR 1@ = 255 DOWNTO 0
WAIT 0
GOSUB @color
END
1@ = 0
FOR 2@ = 0 TO 255
WAIT 0
GOSUB @color
END
2@ = 255
FOR 3@ = 255 DOWNTO 0
WAIT 0
GOSUB @color
END
3@ = 0
FOR 1@ = 0 TO 255
WAIT 0
GOSUB @color
END
1@ = 255
FOR 2@ = 255 DOWNTO 0
WAIT 0
GOSUB @color
END
2@ = 0
END
:color
if
Actor.Driving($PLAYER_ACTOR)
then
0811: 20@ = actor $PLAYER_ACTOR used_car
0B67: render a 1@ r 2@ g 3@ b 0xFF to_argb 5@
0229: set_car 20@ primary_color_to 5@ secondary_color_to 5@
0AF8: samp add_message_to_chat "Test" color 5@
end
return