CLEO Help Delete/block chat line

CLEO related

Angel9

Active member
Joined
May 6, 2021
Messages
65
Reaction score
2
Location
Belgrade, Serbia
how to block or automatically delete a line in the chat when they text appears?
I tried the script from this thread but it doesn't work : https://ugbase.eu/threads/can-i-delete-text-from-chat.21714/
An example message that is not always the same, only the beginning is the same

{FFAF00}[ADA] {FFFFFF}KOUE {FFAF00}Jack_Castellano: {FFFFFF} Sell car
{FFAF00}[ADA] {FFFFFF}KOUE {FFAF00}Mike_Johns: {FFFFFF} Sell house
 

Angel9

Active member
Joined
May 6, 2021
Messages
65
Reaction score
2
Location
Belgrade, Serbia
but how to make start / stop cmd
fixed use
Code:
{$CLEO}
{$INCLUDE SF}
0000: NOP
while not SAMP.Available()
  wait 400
end
0BE3: raknet setup_incoming_rpc_hook @in_rpc

WHILE TRUE
WAIT 0

wait 1000
END


:in_rpc            
0BE5: raknet 0@ = get_hook_param PARAM_PACKETID
if 0@ == RPC_SCRCLIENTMESSAGE
then
  0BE5: raknet 1@ = get_hook_param PARAM_BITSTREAM
  0BE7: raknet 2@ = bit_stream_read 1@ type BS_TYPE_INT
  0BE7: raknet 3@ = bit_stream_read 1@ type BS_TYPE_INT

  0AC8: 4@ = allocate_memory_size 145
  0BE8: raknet bit_stream 1@ read_array 4@ size 3@
  0C0D: struct 4@ offset 3@ size 1 = 0


  if
  0C29: 5@ = stristr string1 4@ string2 "un negocio en"
  then
  0AC9: free_allocated_memory 4@
  0BE0: raknet hook_ret false
  end

  0AC9: free_allocated_memory 4@
end
0BE0: raknet hook_ret true
 
Last edited:
Top