Hi world.
Me need add in cleo active / deactive whit command.
- First cleo mod -
Me need add in cleo active / deactive whit command.
- First cleo mod -
Add active / deactive whit command " /ahp "
- Other cleo mod -
Add active / deactive whit command " /afix "
Code:
{$CLEO .cs}
:Player_recieve_damage
thread 'PLAYDAM'
:PLAYDAM_1
wait 0
if
Player.Defined($PLAYER_CHAR)
jf @PLAYDAM_1
0@ = Actor.Health($PLAYER_ACTOR)
04DD: 2@ = actor $PLAYER_ACTOR armour
:PLAYDAM_2
wait 0
if
Player.Defined($PLAYER_CHAR)
jf @PLAYDAM_1
1@ = Actor.Health($PLAYER_ACTOR)
04DD: 3@ = actor $PLAYER_ACTOR armour
if or
001D: 0@ > 1@ // (int)
001D: 2@ > 3@ // (int)
jf @PLAYDAM_3
0@ = Actor.Health($PLAYER_ACTOR)
04DD: 2@ = actor $PLAYER_ACTOR armour
wait 1000
0AF9: samp say_msg "/gydyti"
jump @PLAYDAM_2
:PLAYDAM_3
if or
001D: 1@ > 0@ // (int)
001D: 3@ > 2@ // (int)
jf @PLAYDAM_2
0@ = Actor.Health($PLAYER_ACTOR)
04DD: 2@ = actor $PLAYER_ACTOR armour
jump @PLAYDAM_2
- Other cleo mod -
Add active / deactive whit command " /afix "
Code:
{$CLEO .cs}
//-------------MAIN---------------
thread 'VARU'
:VARU_11
wait 10
if
Player.Defined($PLAYER_CHAR)
else_jump @VARU_11
if and
Actor.Driving($PLAYER_ACTOR)
84C8: not actor $PLAYER_ACTOR driving_flying_vehicle
else_jump @VARU_11
0@ = Actor.CurrentCar($PLAYER_ACTOR)
jump @VARU_67
:VARU_67
wait 10
if
01F4: car 0@ flipped
else_jump @VARU_192
wait 1000
if
01F4: car 0@ flipped
else_jump @VARU_192
02E3: 4@ = car 0@ speed
wait 10
if
6.0 > 4@
else_jump @VARU_192
0819: 5@ = actor $PLAYER_ACTOR distance_from_ground
wait 10
if
6.0 > 5@
else_jump @VARU_192
wait 10
jump @VARU_192
:VARU_192
wait 10
1@ = Car.Health(0@)
if
750 > 1@
else_jump @VARU_11
0A30: repair_car 0@
wait 0
0AF9: samp say_msg "/gydyti"
jump @VARU_11