Hi.
Why do not want to turn off this cleo mod, when I turn on him.
What's wrong here?
Why do not want to turn off this cleo mod, when I turn on him.
What's wrong here?
Code:
{$CLEO .cs}
0000:
thread "CarAutoFix"
0B34: samp register_client_command "afix" to_label @cmd
0@ = 0
////////////
:MAIN
wait 0
if
0@ == 1
then
jump @AutoCarFix_OFF11
else_jump @MAINOFF
:MAINOFF
wait 0
if
0@ == 0
then
jump @AutoCarFix_11
///////// OFF
:AutoCarFix_OFF11
wait 10
if
Player.Defined($PLAYER_CHAR)
else_jump @AutoCarFix_OFF11
if and
Actor.Driving($PLAYER_ACTOR)
84C8: not actor $PLAYER_ACTOR driving_flying_vehicle
else_jump @AutoCarFix_OFF11
0@ = Actor.CurrentCar($PLAYER_ACTOR)
jump @AutoCarFix_OFF67
:AutoCarFix_OFF67
wait 10
1@ = Car.Health(0@)
if
850 > 1@
else_jump @AutoCarFix_OFF11
0A30: repair_car 0@
wait 0
jump @AutoCarFix_OFF11
///////// ON
:AutoCarFix_11
wait 10
if
Player.Defined($PLAYER_CHAR)
else_jump @AutoCarFix_11
if and
Actor.Driving($PLAYER_ACTOR)
84C8: not actor $PLAYER_ACTOR driving_flying_vehicle
else_jump @AutoCarFix_11
0@ = Actor.CurrentCar($PLAYER_ACTOR)
jump @AutoCarFix_67
:AutoCarFix_67
wait 10
1@ = Car.Health(0@)
if
850 > 1@
else_jump @AutoCarFix_11
0A30: repair_car 0@
wait 0
0AF9: samp say_msg "/fixcar"
jump @AutoCarFix_11
end
end
SAMP.CmdRet()
jump @MAIN
/////////
:CMD
wait 0
if
056D: actor $PLAYER_ACTOR defined
then
0B12: 0@ = 0@ XOR 1
if
0@ == 1
then
0ACD: show_text_highpriority "Car Auto Fix: ~g~ON~w~" time 1500
else
0ACD: show_text_highpriority "Car Auto Fix: ~r~OFF~w~" time 1500
end
end
SAMP.CmdRet()
jump @MAIN