CLEO Help Textdraw (or 3dtextlabel?) finder

CLEO related
Status
Not open for further replies.

fvckboi

Member
Joined
May 1, 2017
Messages
12
Reaction score
0
Hello. I would like to get a .cs that tells me where is a textdraw called [KINCS] I play in an RP server and in Los Santos they were hide treasures with textdraw. Thank you. :)

Maybe it's a textdraw or 3dtextlabel. I don't know. These treasures are in the city in hidden places.
 

Parazitas

God
Joined
Jan 2, 2017
Messages
3,116
Solutions
5
Reaction score
882
Location
Lithuania
TextDraw and 3D Text ID Finder by @springfield


Text Draw Finder
[shcode=cpp]
{$CLEO .cs}
0000:


REPEAT
   WAIT 0
UNTIL 0AFA:  SAMP_IS_READY

0B34: "txd" @textdraw

WHILE TRUE
   WAIT 0
END


:textdraw
0B35: 0@
for 1@ = 0 to 2304
  if 0C5D: samp textdraw 1@ is_exists
  then
      alloc 2@ = 1024
      0C5A: samp textdraw 1@ get_string_to 2@
      if 0C29: 3@ = stristr string1 2@ string2 0@
      then 0AF8: "textdraw with id %d contains %s text" -1 1@ 0@
      end
      free 2@
  end
end
0B43:

[/shcode]

3D Text Finder
[shcode=cpp]
{$CLEO}
0000:

REPEAT
   WAIT 100
UNTIL 0AFA:

0b34: "find3dtext" @labels
0b34: "tele3dtext" @tp

WHILE TRUE
   WAIT 0
END

:labels
0b35: 11@
00A0: store_actor $PLAYER_ACTOR position_to 14@ 15@ 16@
for 0@ = 0 to 2048
  if 0B46: samp 3d_text 0@ defined
  then
      0C46: samp get_3d_text_info_by_id 0@ string_ptr 1@ color 2@ position 3@ 4@ 5@ view_distance 6@ show_behind_walls 7@ attached_to_player 8@ attached_to_vehicle 9@        
      if 0C29: 10@ = stristr string1 1@ string2 11@
      then
           0509: 17@ = distance_between_XY 14@ 15@ 3@ 4@
           0af8: "LABEL: ID (%d); DIST: (%0.2f); TEXT: %s" -1 0@ 17@ 1@
       end
  end
end
0b43:

:tp
0b35: 0@
0C1A: 0@ = atoi 0@
if 0B46: samp 3d_text 0@ defined
then
   0C46: samp get_3d_text_info_by_id 0@ string_ptr 1@ color 2@ position 3@ 4@ 5@ view_distance 6@ show_behind_walls 7@ attached_to_player 8@ attached_to_vehicle 9@    
   00A1: put_actor $PLAYER_ACTOR at  3@ 4@ 5@
end
0b43:
[/shcode]
 

fvckboi

Member
Joined
May 1, 2017
Messages
12
Reaction score
0
Thanks. What file format should I save? I have Sanny Builder 3

I tried the first one, saved in .cs, but SA:MP crashed. :( Should I edit something? I'm really noob.
 

Parazitas

God
Joined
Jan 2, 2017
Messages
3,116
Solutions
5
Reaction score
882
Location
Lithuania
Format is .cleo
If you get msg when compile.: Unknow command etc...

Download.:
http://ugbase.eu/attachment.php?aid=4662

Install.:
- Copy all files from the "SB data" to "/Sanny Builder 3/data/sa".

-------- You Need Only SB Data ! --------


And off course if you don't have SAMPFUNCS then you get crash etc...

Download SAMPFUNCS 5.3 [0.3.7].: 
http://www.mediafire.com/file/j5tlss8xlzy4tj7/SAMPFUNCS.rar

All Files put in Gta Sa Andreas ..
I mean .: SAMPFUNCS folder
and SAMPFUNCS.asi
 

fvckboi

Member
Joined
May 1, 2017
Messages
12
Reaction score
0
I tried both, but with the first one I get "gta_sa.exe stopped working" and the second one said it's not written for Windows before the game start, but don't get crash. What should I do? I downloaded both files you linked.


I tried both, but with the first one I get "gta_sa.exe stopped working" and the second one said it's not written for Windows before the game start, but don't get crash. What should I do? I downloaded both files you linked. I tried saved it .cs and .cleo too, but same...
 

fvckboi

Member
Joined
May 1, 2017
Messages
12
Reaction score
0
547917_450913391604462_915829248_n.jpg


This is the only pic that I've got. These are not on players.
 
Status
Not open for further replies.
Top