CLEO Help [Help] Remove Red Effect

CLEO related
Status
Not open for further replies.

R3ForceTech

New member
Joined
Aug 28, 2016
Messages
4
Reaction score
0
This is effect make me interrupted, so can you remove it ?

sa-mp-038.png
 

ItsRobinson

Active member
Joined
Nov 16, 2017
Messages
105
Reaction score
20
It's probably drawn using a server-side textdraw, which are possible to remove with CLEO's.

You need to figure out the textdraw ID.
Using the TXD finder below
Code:
{$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: "textdraw with id %d contains %s text" -1 1@ 0@
      end
      free 2@
  end
end
0B43:
(No credit to me for that)

Just type /txd ingame and it will show you a list of all the textdraws on the screen.
If you get loads then you're going to have to go through one by one and remove them and put them back if they're not correct.

Here's an example of what I did for a server that had a server-side healthbar.

Code:
{$CLEO .cs}
{$INCLUDE SF}
0000: NOP
repeat 
wait 100
until Samp.Available()
0@ = 0  // Black Background to Health
1@ = 1 // Other Half
2@ = 2051 // Half Health
//3@ = 2052 // GPS
//4@ = 2053 // Gang that owns turf
//5@ = 2054 // Armor Counter


WHILE TRUE
WAIT 0
IF AND
056D:   actor $PLAYER_ACTOR defined
0B61: samp is_local_player_spawned
THEN
wait 100
0C5E: samp textdraw 0@ delete
0C5E: samp textdraw 1@ delete
0C5E: samp textdraw 2@ delete
//0C5E: samp textdraw 3@ delete
//0C5E: samp textdraw 4@ delete
//0C5E: samp textdraw 5@ delete
end
end

This would work for you.
 
Status
Not open for further replies.
Top