Resource icon

CLEO Release Auto Vehicle Repair with server command

CLEO related
Status
Not open for further replies.

Parazitas

God
Joined
Jan 2, 2017
Messages
3,121
Solutions
5
Reaction score
882
Location
Lithuania
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.:
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

 

Attachments

  • Auto Vehicle Repair with 850 HP.cs
    18.5 KB · Views: 410

TechniChief

Active member
Joined
Jan 3, 2017
Messages
48
Reaction score
0
Is it detected on RP servers ? 
I would like to use it  :iknowwhatyoudidthere:
 

iVilux

Well-known member
Joined
Nov 12, 2013
Messages
207
Reaction score
5
TechniChief said:
Is it detected on RP servers ? 
I would like to use it  :iknowwhatyoudidthere:
It shouldn't be.
supahdupahnubah said:
Welp, don't know if it's useful, but still a good job
Depends on the server.
 

Parazitas

God
Joined
Jan 2, 2017
Messages
3,121
Solutions
5
Reaction score
882
Location
Lithuania
something like that... https://www.youtube.com/watch?v=G-d79SlKDxU​
 
Status
Not open for further replies.
Top