CLEO Help How do I get the player's name or id detected?

CLEO related
Status
Not open for further replies.

Dheyker

Member
Joined
Mar 17, 2021
Messages
15
Reaction score
0
Location
En tu cora <3
I am trying to create an autoresponder code, but this problem arose, how do I solve it?




Code:
{$CLEo}



{$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 " here would go the name / id of the player + te ofrece un chaleco de proteccion por $400 para aceptarlo usa /aceptar proteccion"

    Then

        say "/aceptar proteccion"

        wait 1000

    end

end



END



{00CCFF}Nombre_Apellido{FFFFFF} te ofrece un chaleco de protección por {00CC00}$400{FFFFFF}, para aceptarlo usa {DBED15}/aceptar proteccion
 
Last edited:

curraco

Active member
Joined
Aug 3, 2020
Messages
39
Reaction score
3
Location
colombia
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 "te ofrece un chaleco de protección por {00CC00} $ 400 {FFFFFF}, para aceptarlo usa {DBED15} / aceptar proteccion "

    Then

        say "/aceptar proteccion"

        wait 1000

    end

end



END
 

Dheyker

Member
Joined
Mar 17, 2021
Messages
15
Reaction score
0
Location
En tu cora <3
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 "te ofrece un chaleco de protección por {00CC00} $ 400 {FFFFFF}, para aceptarlo usa {DBED15} / aceptar proteccion "

    Then

        say "/aceptar proteccion"

        wait 1000

    end

end



END
I tried it but it doesn't work
 

curraco

Active member
Joined
Aug 3, 2020
Messages
39
Reaction score
3
Location
colombia
Code:
{$CLEO .cs}
0000: NOP



while 8AFA:
wait 0
end



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 "te ofrece un chaleco de protección por {00CC00}$400{FFFFFF}"

    Then

        say "/aceptar proteccion"

        wait 1000

    end

end
 

curraco

Active member
Joined
Aug 3, 2020
Messages
39
Reaction score
3
Location
colombia
[QUOTE = "Dheyker, publicación: 131109, miembro: 77122"] si

ahora pruebo el segundo código que me enviaste [/ QUOTE]
WATAFOK 7427
 

Dheyker

Member
Joined
Mar 17, 2021
Messages
15
Reaction score
0
Location
En tu cora <3
Code:
{$CLEO .cs}
0000: NOP



while 8AFA:
wait 0
end



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 "te ofrece un chaleco de protección por {00CC00}$400{FFFFFF}"

    Then

        say "/aceptar proteccion"

        wait 1000

    end

end
Se me cierra el juego
 

Juli4n

Active member
Joined
Mar 31, 2021
Messages
43
Solutions
1
Reaction score
19
Location
Argentina
working for me in fenixzone
Code:
{$CLEO .cs}

0000:

while 8AFA:
    wait 0
end

0AC8: 0@ = allocate_memory_size 260

while true
    wait 0
    0B75: samp get_chat_string 99 text_to 0@ prefix_to $NOT_USED color_to $NOT_USED prefix_color_to $NOT_USED
    if
    0C29: $NOT_USED = stristr string1 0@ string2 "te ofrece un chaleco de protección por {00CC00}$400"
    then                    
        say "/aceptar proteccion"
        wait 1000
    end
end
 
Last edited:

Dheyker

Member
Joined
Mar 17, 2021
Messages
15
Reaction score
0
Location
En tu cora <3
working for me in fenixzone
Code:
{$CLEO .cs}

0000:

while 8AFA:
    wait 0
end

0AC8: 0@ = allocate_memory_size 260

while true
    wait 0
    0B75: samp get_chat_string 99 text_to 0@ prefix_to $NOT_USED color_to $NOT_USED prefix_color_to $NOT_USED
    if
    0C29: $NOT_USED = stristr string1 0@ string2 "te ofrece un chaleco de protección por {00CC00}$400"
    then                   
        say "/aceptar proteccion"
        wait 1000
    end
end
Yes it worked, thank you very much!
 
Status
Not open for further replies.
Top