CLEO Help Help with Cleo Textdraw

CLEO related
Status
Not open for further replies.

Kross

Active member
Joined
Dec 15, 2021
Messages
149
Reaction score
42
Hi guys,I found a mod in which using the /textdraw command deletes all textdraws from the screen.I wanted to know what structure to change(or the way) to make it automatic.
PHP:
{$CLEO .cs}
0000:
 
repeat
    wait 0
until 0afa: samp_is_ready 
 
0B34: "textdraw" @txd
0AF8: samp add_message_to_chat "[CLEO TextDraw]: {FFFFFF}by {D01686}Bladee Herrera{FFFFFF}!" color -1
 
while true
wait 0
end
 
:txd
0B35: samp 0@ = get_last_command_params
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
      0C5E: samp textdraw 1@ delete
      end
      free 2@
  end
end
0B43: samp cmd_ret
 

Attachments

  • TextDrawDelet.cs
    17.9 KB · Views: 3

Parazitas

God
Joined
Jan 2, 2017
Messages
3,113
Solutions
5
Reaction score
878
Location
Lithuania
Hi guys,I found a mod in which using the /textdraw command deletes all textdraws from the screen.I wanted to know what structure to change(or the way) to make it automatic.
PHP:
{$CLEO .cs}
0000:

repeat
    wait 0
until 0afa: samp_is_ready

0B34: "textdraw" @txd
0AF8: samp add_message_to_chat "[CLEO TextDraw]: {FFFFFF}by {D01686}Bladee Herrera{FFFFFF}!" color -1

while true
wait 0
end

:txd
0B35: samp 0@ = get_last_command_params
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
      0C5E: samp textdraw 1@ delete
      end
      free 2@
  end
end
0B43: samp cmd_ret

PHP:
{$CLEO .cs}
0000:

repeat
    wait 0
until 0afa: samp_is_ready

while true
wait 0

for 1@ = 0 to 2304
  if
  0C5D: samp textdraw 1@ is_exists
  then
      0C5E: samp textdraw 1@ delete
  end
end

end
 

Kross

Active member
Joined
Dec 15, 2021
Messages
149
Reaction score
42
PHP:
{$CLEO .cs}
0000:

repeat
    wait 0
until 0afa: samp_is_ready

while true
wait 0

for 1@ = 0 to 2304
  if
  0C5D: samp textdraw 1@ is_exists
  then
      0C5E: samp textdraw 1@ delete
  end
end

end
Thanks for the help brother,you can close the topic
 
Status
Not open for further replies.
Top