CLEO Help cleo chat reader help!!

CLEO related
Status
Not open for further replies.

pai1ne13

Active member
Joined
Jan 2, 2019
Messages
59
Reaction score
4
hello guys I have a problem with this mode. When the server will send this message in chat my mode must automatically give "/usedrugs marijuana", but it only works if I enter this message in chat How can I solve it?
Code:
{$CLEO .cs}
0000: NOP

REPEAT
WAIT 0
UNTIL 0AFA:


WHILE TRUE
WAIT 0

if
0B61:  samp is_local_player_spawned
then
    0AC8: 0@ = allocate_memory_size 260
    0AC8: 1@ = allocate_memory_size 260
    0B75: samp get_chat_string 99 text_to 0@ prefix_to 1@ color_to 2@ prefix_color_to 3@   
    if
    0C29: $NOT_USED = stristr string1 0@ string2 "Syntax: /usedrugs <type> (marijuana/cocaine/mushrooms)"
    
    then
        say "/usedrugs marijuana"
  
                                

      end
      end
 end
 
Status
Not open for further replies.
Top