CLEO Help Help .cs mod (REQUEST)

CLEO related
Status
Not open for further replies.

Robbert

Member
Joined
Apr 24, 2018
Messages
18
Reaction score
0
Hi, i need the code, or direct cleo, that search for a color in chat, and after it finds the color, use command [/spec ID], the id is written in chat like this (XXX).
https://imgur.com/a/l5rPcIO
This is a photo of what i need to do, in this photo it should say [/spec 118].
And maybe you can add a button for activating this?
 

Parazitas

God
Joined
Jan 2, 2017
Messages
3,113
Solutions
5
Reaction score
878
Location
Lithuania
Nobody !!!!

[shcode=cpp]
{$CLEO .cs}

0000:

repeat
wait 0
until 0afa:

while true
wait 0

if
0B61: samp is_local_player_spawned
then
0AC8: 1@ = allocate_memory_size 260
0AC8: 2@ = allocate_memory_size 260
0B75: samp get_chat_string 99{Last chat line} text_to 1@ prefix_to 2@ color_to 3@ prefix_color_to 4@
if or /// I don't know who is same like in your chat , so i add more
0AD4: $NOT_USED = scan_string 1@ format "%s(%d) este blocat." $NOT_USED 5@
0AD4: $NOT_USED = scan_string 1@ format "%s (%d) este blocat." $NOT_USED 5@
0AD4: $NOT_USED = scan_string 1@ format "%s (%d)este blocat." $NOT_USED 5@
0AD4: $NOT_USED = scan_string 1@ format "%s(%d)este blocat." $NOT_USED 5@
then
wait 1000 // wait 1 second
say "/spec %d" 5@
end
end

end
[/shcode]
 

Robbert

Member
Joined
Apr 24, 2018
Messages
18
Reaction score
0
Parazitas said:
Nobody !!!!

[shcode=cpp]
{$CLEO .cs}

0000:

repeat
wait 0
until 0afa:

while true
wait 0

if
0B61:  samp is_local_player_spawned
then
   0AC8: 1@ = allocate_memory_size 260
   0AC8: 2@ = allocate_memory_size 260
   0B75: samp get_chat_string 99{Last chat line} text_to 1@ prefix_to 2@ color_to 3@ prefix_color_to 4@  
   if or /// I don't know who is same like in your chat , so i add more
   0AD4: $NOT_USED = scan_string 1@ format "%s(%d) este blocat." $NOT_USED 5@
   0AD4: $NOT_USED = scan_string 1@ format "%s (%d) este blocat." $NOT_USED 5@
   0AD4: $NOT_USED = scan_string 1@ format "%s (%d)este blocat." $NOT_USED 5@
   0AD4: $NOT_USED = scan_string 1@ format "%s(%d)este blocat." $NOT_USED 5@
   then
       wait 1000 // wait 1 second
       say "/spec %d" 5@
   end
end

end
[/shcode]

You know that i love you, right? <3
 
Status
Not open for further replies.
Top