Derrekgamer
Active member
Hi , is it possible to have a cleo same like those cleos that read chatstrings such as ( "Derrek joined the clan" ) and then send an autoreply as : /c Welcome ! If you could help me i would really be thankful to you <3
i tried this script and when i press /activate it goes and type by it self the command /c welcome and nevers stops it work without reading : "% joined the clan" . How can i make it to work only when someone joined the clan and after that stops untill antoher person join...? Sorry for my bad english.
My script :
{$CLEO .cs}
0000: NOP
REPEAT
Wait 0
Until 0AFA: is_samp_structures_available
0B34: "activate" @ACTIVE
1@ = FALSE
While True
Wait 0
If and
1@ == TRUE
0B61: samp is_local_player_spawned
Then
0AC8: 2@ = allocate_memory_size 260
0AC8: 3@ = allocate_memory_size 260
0B75: samp get_chat_string 99 text_to 2@ prefix_to 3@ color_to 4@ prefix_color_to 5@
If
0AD4: $NOT_USED = scan_string 2@ format "%s joined the clan" 6@
then
0AD4: $NOT_USED = scan_string 6@ format "%[^_]_%[^_]" 10@v 20@v // 10@v - First name | 20@v - Last name
wait 200
say "/c Welcome %s, [/cmotd] + TAG" 10@v
end
end
END
:ACTIVE
0B12: 1@ = 1@ XOR TRUE
If
1@ == TRUE
Then
0ACD: show_text_highpriority "~W~Auto Welcome: ~G~ON~W~" time 1000
else
0ACD: show_text_highpriority "~W~Auto Welcome: ~R~OFF~W~" time 1000
end
CmdRet
i tried this script and when i press /activate it goes and type by it self the command /c welcome and nevers stops it work without reading : "% joined the clan" . How can i make it to work only when someone joined the clan and after that stops untill antoher person join...? Sorry for my bad english.
My script :
{$CLEO .cs}
0000: NOP
REPEAT
Wait 0
Until 0AFA: is_samp_structures_available
0B34: "activate" @ACTIVE
1@ = FALSE
While True
Wait 0
If and
1@ == TRUE
0B61: samp is_local_player_spawned
Then
0AC8: 2@ = allocate_memory_size 260
0AC8: 3@ = allocate_memory_size 260
0B75: samp get_chat_string 99 text_to 2@ prefix_to 3@ color_to 4@ prefix_color_to 5@
If
0AD4: $NOT_USED = scan_string 2@ format "%s joined the clan" 6@
then
0AD4: $NOT_USED = scan_string 6@ format "%[^_]_%[^_]" 10@v 20@v // 10@v - First name | 20@v - Last name
wait 200
say "/c Welcome %s, [/cmotd] + TAG" 10@v
end
end
END
:ACTIVE
0B12: 1@ = 1@ XOR TRUE
If
1@ == TRUE
Then
0ACD: show_text_highpriority "~W~Auto Welcome: ~G~ON~W~" time 1000
else
0ACD: show_text_highpriority "~W~Auto Welcome: ~R~OFF~W~" time 1000
end
CmdRet