Hi all.
This is Auto Vehicle Repair with server command.
Active/Deactive - in server say command "/afix"
I would like to say thanks for the helping in add active / deactive those members.:
@supahdupahnubah
@springfield
@opcode
And of course I want to say, good luck to use.
For edit.:
This is Auto Vehicle Repair with server command.
Active/Deactive - in server say command "/afix"
I would like to say thanks for the helping in add active / deactive those members.:
@supahdupahnubah
@springfield
@opcode
And of course I want to say, good luck to use.
For edit.:
Code:
{$CLEO .cs}
//-------------MAIN---------------
thread 'AutoFix'
0000: NOP
:EntryPoint
wait 0
SAMP.Available
jf @EntryPoint
0B34: samp register_client_command "afix" to_label @AfixActivate
15@ = false
:AutoCarFix_11
wait 10
IF
15@ == TRUE
then
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)
wait 10
1@ = Car.Health(0@)
if
850 > 1@ /// Vehicle health checker , if vehicle health is 850 then say server command >> You can change vehicle health to check.
else_jump @AutoCarFix_11
0A30: repair_car 0@
0AF9: samp say_msg "/fix" /// Server command to fix vehicle >> You can change command
wait 0
end
jump @AutoCarFix_11
:AfixActivate
if
15@ == true
then
15@ = false
0ACD: show_text_highpriority "Auto Vehicle Fix: ~r~OFF~w~" time 1500
0B43: samp cmd_ret
end
if
15@ == false
then
15@ = true
0ACD: show_text_highpriority "Auto Vehicle Fix: ~g~ON~w~" time 1500
end
0B43: samp cmd_ret