CLEO Help Auto-reply

CLEO related

mmadaaa

Member
Joined
Oct 31, 2021
Messages
24
Reaction score
0
Location
Alba
Hi, i need this to make a command of start/stop to stop them and start back

Code:
{$CLEO .cs}

0000:

REPEAT
   WAIT 0
UNTIL 0AFA:  SAMP_IS_READY

WHILE TRUE
   WAIT 0


IF
0B61:  samp is_local_player_spawned
THEN
    FOR 0@ = 99 TO 99 
        0AC8: 1@ = allocate_memory_size 260
        0AC8: 2@ = allocate_memory_size 260
        0B75: samp get_chat_string 0@ text_to 1@ prefix_to 2@ color_to 3@ prefix_color_to 4@
        IF
        0C29: $NOT_USED = stristr string1 1@ string2 "SMS from" 
        THEN
                0AF9: samp say_msg "/reply x" 
                wait 50
                0AF8: samp add_message_to_chat "Mesajul a fost trimis cu succes." color 0x000000
                wait 50
        END
    END
END

END
 

Krc

Active member
Joined
Mar 30, 2018
Messages
193
Reaction score
25
Location
Lithuania
Code:
{$CLEO .cs}

0000:

REPEAT
   WAIT 0
UNTIL 0AFA:  SAMP_IS_READY
0B34: "YourCommand" @ON

WHILE TRUE
   WAIT 0


IF and
31@ == TRUE
0B61:  samp is_local_player_spawned
THEN
    FOR 0@ = 99 TO 99 
        0AC8: 1@ = allocate_memory_size 260
        0AC8: 2@ = allocate_memory_size 260
        0B75: samp get_chat_string 0@ text_to 1@ prefix_to 2@ color_to 3@ prefix_color_to 4@
        IF
        0C29: $NOT_USED = stristr string1 1@ string2 "SMS from" 
        THEN
                0AF9: samp say_msg "/reply x" 
                wait 50
                0AF8: samp add_message_to_chat "Mesajul a fost trimis cu succes." color 0x000000
                wait 50
        END
    END
END

END

:ON
0B12: 31@ = 31@ XOR TRUE
If
31@ == TRUE
Then
chatmsg "Reply: ON" -1
else
chatmsg "Reply: OFF" -1
end
 

mmadaaa

Member
Joined
Oct 31, 2021
Messages
24
Reaction score
0
Location
Alba
Code:
{$CLEO .cs}

0000:

REPEAT
   WAIT 0
UNTIL 0AFA:  SAMP_IS_READY
0B34: "YourCommand" @ON

WHILE TRUE
   WAIT 0


IF and
31@ == TRUE
0B61:  samp is_local_player_spawned
THEN
    FOR 0@ = 99 TO 99
        0AC8: 1@ = allocate_memory_size 260
        0AC8: 2@ = allocate_memory_size 260
        0B75: samp get_chat_string 0@ text_to 1@ prefix_to 2@ color_to 3@ prefix_color_to 4@
        IF
        0C29: $NOT_USED = stristr string1 1@ string2 "SMS from"
        THEN
                0AF9: samp say_msg "/reply x"
                wait 50
                0AF8: samp add_message_to_chat "Mesajul a fost trimis cu succes." color 0x000000
                wait 50
        END
    END
END

END

:ON
0B12: 31@ = 31@ XOR TRUE
If
31@ == TRUE
Then
chatmsg "Reply: ON" -1
else
chatmsg "Reply: OFF" -1
end

This error
 

Attachments

  • 1635693832113.png
    1635693832113.png
    28.5 KB · Views: 21

mmadaaa

Member
Joined
Oct 31, 2021
Messages
24
Reaction score
0
Location
Alba
Maybe this works
Code:
{$cleo}
0000:

wait 8500 // by Parazitas
31@ == false // by Ajom

0B34: "YourCommand" @triggerKarenAtSupermarketWhyNot

while true
    wait 0
  
    if and
        31@ == true
        0B61:  samp is_local_player_spawned
    then
        // tf you need that for loop here
        0AC8: 1@ = allocate_memory_size 666 // devils memory no argue ok
          
            0B75: samp get_chat_string 99 text_to 1@ prefix_to $NOT_USED color_to $NOT_USED prefix_color_to $NOT_USED
          
            if 0C29: $NOT_USED = stristr string1 1@ string2 "SMS from"
            then
                0AF9: samp say_msg "/reply fuck off karen"
                wait 50
                chatmsg "Mesajul a fost trimis cu succes." -1
                wait 50
            end
          
        free 1@ //also hows your pc without this, is it slow maybe??? wonder why tf
    end
  
end

:triggerKarenAtSupermarketWhyNot
0B12: 31@ = 31@ XOR true
if 31@ == true
then
    chatmsg "autoreply yes maybe sure" -1
else
    chatmsg "no autoreply" -1
end
Nope, same error, 2 params
 

mmadaaa

Member
Joined
Oct 31, 2021
Messages
24
Reaction score
0
Location
Alba
no, it's sanny builder v3.8.0 default syntax
you're using an outdated version, but that's not the problem though, idk what is
try reinstalling your version or get the latest
i reinstalled the latest version and same error with 2 params
 

mmadaaa

Member
Joined
Oct 31, 2021
Messages
24
Reaction score
0
Location
Alba
Change to this
Code:
:ON
0B12: 31@ = 31@ XOR TRUE
If
31@ == TRUE
Then
chatmsg "Reply: ON" -1
else
chatmsg "Reply: OFF" -1
end
CmdRet
don t work, i tried to reinstall sanny builder last version same errors, i made this cleo without command start/stop and work perfectly but with command not
 

mmadaaa

Member
Joined
Oct 31, 2021
Messages
24
Reaction score
0
Location
Alba
What does the error says? Post a screenshot

Code:
{$cleo}
{$use bitwise}
0000:

wait 8500 // by Parazitas
31@ == false // by Ajom

0B34: "YourCommand" @triggerKarenAtSupermarketWhyNot

while true
    wait 0
  
    if and
        31@ == true
        0B61:  samp is_local_player_spawned
    then
        // tf you need that for loop here
        0AC8: 1@ = allocate_memory_size 666 // devils memory no argue ok
          
            0B75: samp get_chat_string 99 text_to 1@ prefix_to $NOT_USED color_to $NOT_USED prefix_color_to $NOT_USED
          
            if 0C29: $NOT_USED = stristr string1 1@ string2 "SMS from"
            then
                0AF9: samp say_msg "/reply fuck off karen"
                wait 50
                chatmsg "Mesajul a fost trimis cu succes." -1
                wait 50
            end
          
        free 1@ //also hows your pc without this, is it slow maybe??? wonder why tf
    end
  
end

:triggerKarenAtSupermarketWhyNot
0B12: 31@ = 31@ XOR true
if 31@ == true
then
    chatmsg "autoreply yes maybe sure" -1
else
    chatmsg "no autoreply" -1
end
 

Attachments

  • 1635771620271.png
    1635771620271.png
    32.2 KB · Views: 15
  • 1635771630034.png
    1635771630034.png
    9.2 KB · Views: 12

blvck0v

Active member
Joined
Feb 23, 2019
Messages
98
Reaction score
51
Location
ugbase.eu
1. 31@ = false // by Ajom
2. Add cmd return for commad.
i m such a moron, thanks
Hi, i need this to make a command of start/stop to stop them and start back

Code:
{$CLEO .cs}

0000:

REPEAT
   WAIT 0
UNTIL 0AFA:  SAMP_IS_READY

WHILE TRUE
   WAIT 0


IF
0B61:  samp is_local_player_spawned
THEN
    FOR 0@ = 99 TO 99
        0AC8: 1@ = allocate_memory_size 260
        0AC8: 2@ = allocate_memory_size 260
        0B75: samp get_chat_string 0@ text_to 1@ prefix_to 2@ color_to 3@ prefix_color_to 4@
        IF
        0C29: $NOT_USED = stristr string1 1@ string2 "SMS from"
        THEN
                0AF9: samp say_msg "/reply x"
                wait 50
                0AF8: samp add_message_to_chat "Mesajul a fost trimis cu succes." color 0x000000
                wait 50
        END
    END
END

END
try

PHP:
{$cleo}
{$use bitwise}
0000:

wait 8500 // by Parazitas
31@ = false // by Ajom

0B34: "YourCommand" @cmdreply

while true
    wait 0

    if and
        31@ == true
        0B61:  samp is_local_player_spawned
    then
        0AC8: 1@ = allocate_memory_size 260
       
            0B75: samp get_chat_string 99 text_to 1@ prefix_to $NOT_USED color_to $NOT_USED prefix_color_to $NOT_USED
       
            if 0C29: $NOT_USED = stristr string1 1@ string2 "SMS from"
            then
                0AF9: samp say_msg "/reply fuck off karen"
                wait 50
                chatmsg "Mesajul a fost trimis cu succes." -1
                wait 50
            end
       
        free 1@ //also always free memory     
    end
end

:cmdreply
0B12: 31@ = 31@ XOR true
if 31@ == true
then
    chatmsg "autoreply on" -1
else
    chatmsg "autoreply off" -1
end
SAMP.CmdRet()
 
Last edited:

mmadaaa

Member
Joined
Oct 31, 2021
Messages
24
Reaction score
0
Location
Alba
i m such a moron, thanks

try

PHP:
{$cleo}
{$use bitwise}
0000:

wait 8500 // by Parazitas
31@ = false // by Ajom

0B34: "YourCommand" @cmdreply

while true
    wait 0

    if and
        31@ == true
        0B61:  samp is_local_player_spawned
    then
        0AC8: 1@ = allocate_memory_size 260
       
            0B75: samp get_chat_string 99 text_to 1@ prefix_to $NOT_USED color_to $NOT_USED prefix_color_to $NOT_USED
       
            if 0C29: $NOT_USED = stristr string1 1@ string2 "SMS from"
            then
                0AF9: samp say_msg "/reply fuck off karen"
                wait 50
                chatmsg "Mesajul a fost trimis cu succes." -1
                wait 50
            end
       
        free 1@ //also always free memory     
    end
end

:cmdreply
0B12: 31@ = 31@ XOR true
if 31@ == true
then
    chatmsg "autoreply on" -1
else
    chatmsg "autoreply off" -1
end
SAMP.CmdRet()
now this
 

Attachments

  • 1635782790457.png
    1635782790457.png
    29.7 KB · Views: 13
Top