CLEO Help [Cleo]TextDraw Help

CLEO related
Status
Not open for further replies.

..exe

New member
Joined
Apr 11, 2017
Messages
4
Reaction score
0
Hey I wanted to ask  it if is possible to make a Textdraw disappear when aiming
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
To find textdraw id use.:

[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: "{FFF700}TextDraw id:{FF0000} %d {FFF700}, TextDraw name:{FF0000} %s" -1 1@ 0@
      end
      free 2@
  end
end
0B43:
[/shcode]

And try this...:

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


REPEAT
    WAIT 0
UNTIL 0AFA:  SAMP_IS_READY 

/////////////////////////////// Textdraw ID's /////////////////////////////// 

22@ = 2109 // Your textdraw id here , now is random numbers.
   
WHILE TRUE
WAIT 0 

    IF
    0C5D: samp textdraw 22@ is_exists
    THEN
        0C5E: samp textdraw 22@ delete
        0AF8: "{FFF700}TextDraw: {FF0000}removed !" -1
        wait 200
    END 
            
END 


[/shcode]
 

..exe

New member
Joined
Apr 11, 2017
Messages
4
Reaction score
0
Ok but what the fuck can you make it for me this i my point Script


Code:
{$CLEO .cs}
THREAD "Fag" 

0000: NOP 
                                
:START
wait 0
if
Player.Defined($PLAYER_CHAR)
jf @START
03F0: enable_text_draw 1
01C0: 14@ = player $PLAYER_CHAR wanted_level
033F: set_text_draw_letter_size 0.1 0.2 
081C: draw_text_outline 1 RGBA 0 0 0 255 
0340: set_text_draw_RGBA 255 255 255 255
045A: draw_text_1number 315.0 200.0 GXT 'NUMBER' number 14@  // ~1~
jump @START
 

..exe

New member
Joined
Apr 11, 2017
Messages
4
Reaction score
0
No it was hard for me to edited so copied one and edited it.

Normal
https://www.pic-upload.de/view-32989290/sa-mp-094.png.html

When aiming
https://www.pic-upload.de/view-32989289/sa-mp-095.png.html

I want that when right mouse buttom is hold [Aiming with gun] that the White Point disappers
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
stars you get from cleo code?


I don't know how make activated / deactivate when press and hold.. , but  you can try this.

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


REPEAT
   WAIT 0
UNTIL 0AFA:  SAMP_IS_READY

:START
wait 0
if
key_down 2 // RIGHT MOUSE
then
0B12: 0@ = 0@ XOR 1
if  
0@ == 1  
then

IF
P0256:   player $PLAYER_CHAR defined
THEN
03F0: enable_text_draw 1
01C0: 14@ = player $PLAYER_CHAR wanted_level
033F: set_text_draw_letter_size 0.1 0.2
081C: draw_text_outline 1 RGBA 0 0 0 255
0340: set_text_draw_RGBA 255 255 255 255
045A: draw_text_1number 315.0 200.0 GXT 'NUMBER' number 14@  // ~1~
END

end
end
jump @START
[/shcode]
 
Status
Not open for further replies.
Top