CLEO Help distance aiming

CLEO related
Status
Not open for further replies.

shanker

Well-known member
Joined
Sep 18, 2016
Messages
291
Reaction score
16
Location
Romania
is there anyway to change aiming distance? 

051A:   actor 1@ damaged_by_actor $PLAYER_ACTOR

051a not working, i tried in the below script to make a mod which telling me distance between me and the target, it will not working if distance > 49.9

[shcode=cpp]{$CLEO}

wait 69 ms

0b34: "dist" to @distance

while true
 wait 0 ms
  if 0@ == 1
    then
    for 3@ = 0 to 999
    if samp.IsPlayerConnected(3@)
      then
      4@ = samp.GetActorHandleByPlayerID(3@)
      if 056D:   actor 4@ defined
        then
        if 0457:   player $PLAYER_CHAR aiming_at_actor 4@
          then
          actor.StorePos(4@,5@,6@,7@)
          actor.StorePos($player_actor,8@,9@,10@)
          050A: 11@ = distance_between_XYZ 5@ 6@ 7@ and_XYZ 8@ 9@ 10@
          if 0C5D: samp textdraw 13@ is_exists
            then
            0C5E: samp textdraw 13@ delete
           end
           14@ = samp.GetPlayerNickname(3@)
           alloc 12@ 96 
           format 12@ "%0.1fm %s(%d)" 11@ 14@ 3@
          0C48: samp textdraw 13@ create 12@ pos 20.0 200.0
          end
       end
       end
    end   
 end
 end
 
 

:distance
samp.IsCommandTyped(1@)
if 0ad4: 2@ = scan 1@ format "%d" 0@
  then chatmsg "distance on" -1
  else
  chatmsg "syntax missing" -1
end
samp.CmdRet      [/shcode]
 

shanker

Well-known member
Joined
Sep 18, 2016
Messages
291
Reaction score
16
Location
Romania
i dont understand nothing about write / read memories

and anyway that's the pointer to the ped that damaged you, i don't need it
 
Status
Not open for further replies.
Top