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]