Who know were is promblem?
PHP:
{$CLEO .cs}
0000:
WHILE TRUE
WAIT 0
IF
0AD2: 3@ = player $PLAYER_CHAR targeted_actor //IF and SET
THEN
IF and
8118: actor 3@ dead
8B5C: samp not is_player 3@ paused
THEN
0AB1: call_scm_func @GET_BONE_POS 2 FROM_ACTOR 3@ BONE 24 _STORE_TO 5@ 6@ 7@ // RIGHT HAND
0AB1: call_scm_func @GET_BONE_POS 2 FROM_ACTOR 3@ BONE 34 _STORE_TO 8@ 9@ 16@ // LEFT HAND
0AB1: call_scm_func @GET_BONE_POS 2 FROM_ACTOR 3@ BONE 23 _STORE_TO 8@ 9@ 17@ // LEFT SHOULDER
0AB1: call_scm_func @GET_BONE_POS 2 FROM_ACTOR 3@ BONE 23 _STORE_TO 11@ 12@ 18@ // rIGHT SHOULDER
call @crosshair_coords 0 x_out 0@ y_out 1@
IF OR
0509: 17@ = distance_between_XY 5@ 6@ and_XY 0@ 1@
0509: 17@ = distance_between_XY 8@ 9@ and_XY 0@ 1@
0509: 17@ = distance_between_XY 11@ 12@ and_XY 0@ 1@
0509: 17@ = distance_between_XY 13@ 14@ and_XY 0@ 1@
THEN
0AF8: "DISTANCE DETECTED !" -1
END
END
END
END
:crosshair_coords
0A8D: 23@ = read_memory 0xC9C040 size 4 virtual_protect 0 //x screen
0A8D: 24@ = read_memory 0xC9C044 size 4 virtual_protect 0 //y screen
0A8D: 25@ = read_memory 0xB6EC14 size 4 virtual_protect 0
0A8D: 26@ = read_memory 0xB6EC10 size 4 virtual_protect 0
0093: 22@ = integer 23@ to_float@
006F: 22@ *= 25@
0093: 29@ = integer 23@ to_float
29@ *= 0.0015625
29@ *= 64.0
29@ *= 0.2
29@ *= 0.1
0063: 22@ -= 29@ // (float)
///////
0093: 10@ = integer 24@ to_float
006F: 10@ *= 26@
0093: 11@ = integer 24@ to_float
11@ *= 0.002232143
11@ *= 64.0
11@ *= 0.2
11@ *= 0.1
0063: 10@ -= 11@ // (float)
ret 2 22@ 10@
:GET_BONE_POS
0085: 10@ = 0@ // (int)
0085: 15@ = 1@ // (int)
1@ = 0.0 // X offset
2@ = 0.0 // Y offset {THX TO: WESSER}
3@ = 0.0 // Z offset
0A96: 0@ = actor 10@ struct
0AC7: 4@ = var 1@ offset
0AA6: call_method 0x5E01C0 struct 0@ num_params 3 pop 0 bIncludeAnim 1 iBoneID 15@ vOffset 4@ // CPed__getBonePositionWithOffset
0AB2: retn 3 1@ 2@ 3@