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