Hi, I found this code that by typing "/textdraw" removes all textdraws from the server. The problem is that I want it to be able to be activated and deactivated, that is, when using "/textdraw" they disappear, and when used again they appear again. it's possible?
{$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
{$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