{$CLEO .cs}
//-------------MAIN---------------
0000: NOP
:Noname_2
wait 0
SAMP.Available
else_jump @Noname_2
alloc 25@ 128
26@ = Render.CreateFont("Arial", 15, 0x4)
:tada123
wait 0
0ADC: test_cheat "dis"
jf @tada123
jump @Noname_123
:Noname_123
wait 0
0A8E: 0@ = 0 + 0 // int
:Noname_136
0A8E: 0@ = 0@ + 1 // int
not 0@ == 1001
else_jump @Noname_123
SAMP.IsPlayerConnected(0@)
1@ = SAMP.GetActorHandleByPlayerID(0@)
056D: actor 1@ defined
else_jump @Noname_136
02CB: actor 1@ bounding_sphere_visible
else_jump @Noname_136
6@ = SAMP.GetPlayerHealthByActorHandle(0@)
not 6@ == 0
else_jump @Noname_136
04C4: store_coords_to 2@ 3@ 4@ from_actor 1@ with_offset 0.0 0.0 0.0
SAMP.Convert3DCoordsToScreen(2@, 3@, 4@, 2@, 3@)
00A0: store_actor 1@ position_to 8@ 9@ 10@
00A0: store_actor $PLAYER_ACTOR position_to 11@ 12@ 13@
050A: 14@ = distance_between_XYZ 8@ 9@ 10@ and_XYZ 11@ 12@ 13@
0092: 14@ = float 14@ to_integer
0665: get_actor 1@ model_to 9@
format 25@ "Dist: %d" 14@
Render.DrawText(26@, 25@, 2@, 3@, -1)
free 25@
:flvl_0_c
wait 0
0ADC: test_cheat "dis"
004D: jump_if_false @Noname_136
jump @tada123