CLEO Help CMD sender

CLEO related

Ariya9473

Active member
Joined
Dec 7, 2014
Messages
59
Reaction score
0
hi , it is possible to make a cleo that do CMD with selected ids
for example i do [/ids 5 ,11 ,13, 15 , etc] then samp send :
/free 5 15000
/free 11 15000
/free 13 15000
/free 15 15000
etc
 
Solution
{$CLEO} 0000: repeat wait 1000 until 0AFA: var $ids_array array 10 of Int end 0B34: samp register_client_command "ids" to_label @cmd 0B34: samp register_client_command "idswait" to_label @wait 31@ = 0 26@ = 666 while true wait 0 if 31@ == 1 then alloc 27@ 64 for 29@ = 1 to 28@ 0AD3: 27@ = format "/free %d 15000" $ids_array[29@] say 27@ 0AD1: show_formatted_text_highpriority "~y~CMD: %s" time 1337 27@ wait 26@ end 31@ = 0 28@ = 0 free 27@ end end :cmd 0B35: samp 30@ = get_last_command_params if 0AD4: 0@ 30@ "%d %d %d %d %d %d %d" $ids_array[1] $ids_array[2] $ids_array[3] $ids_array[4] $ids_array[5] $ids_array[6]...

Parazitas

God
Joined
Jan 2, 2017
Messages
3,104
Solutions
5
Reaction score
882
Location
Lithuania
hi , it is possible to make a cleo that do CMD with selected ids
for example i do [/ids 5 ,11 ,13, 15 , etc] then samp send :
/free 5 15000
/free 11 15000
/free 13 15000
/free 15 15000
etc
Yes possible..

You need to be more specific and write more clearly to avoid confusing everyone..
1. For which samp version you prefer to be made
2. Which samp version you use.
3. Explain more clearly as possible how it should work.
Etc...

If you expecting to get what you want, make sure you have provided all information which needs to make your request..

Otherwise request will be ignored most of time..!
 

Ariya9473

Active member
Joined
Dec 7, 2014
Messages
59
Reaction score
0
Yes possible..

You need to be more specific and write more clearly to avoid confusing everyone..
1. For which samp version you prefer to be made
2. Which samp version you use.
3. Explain more clearly as possible how it should work.
Etc...

If you expecting to get what you want, make sure you have provided all information which needs to make your request..

Otherwise request will be ignored most of time..!
Sorry for bad explained
1. i need this cleo mod for 0.3.7 r1
2. i m useing 0.3.7 r1
3. as i said in top
it's like shortcut cmd
 

dphome

Well-known member
Joined
Mar 21, 2020
Messages
456
Solutions
9
Reaction score
165
Location
Poland
PHP:
{$CLEO .cs}
{$USE bitwise}
0000:

0B34: samp register_client_command "ids" to_label @Script

WHILE TRUE
WAIT 0
END
0A93: terminate_this_custom_script

:Script
0B35: samp 20@ = get_last_command_params
IF 0AD4: 25@ = scan_string 20@ format "%d" 21@
THEN
    0AC8: 22@ = allocate_memory_size 1024
    0AD3: 22@ = format "/free %d 15000" 21@
    0AF9: samp say_msg 22@
    0AD1: show_formatted_text_highpriority "~y~CMD: %s" time 1337 22@ 
    0AC9: free_allocated_memory 22@    
END
0B43: cmd_ret
 

Attachments

  • Script.cs
    17.8 KB · Views: 3

Ariya9473

Active member
Joined
Dec 7, 2014
Messages
59
Reaction score
0
PHP:
{$CLEO .cs}
{$USE bitwise}
0000:

0B34: samp register_client_command "ids" to_label @Script

WHILE TRUE
WAIT 0
END
0A93: terminate_this_custom_script

:Script
0B35: samp 20@ = get_last_command_params
IF 0AD4: 25@ = scan_string 20@ format "%d" 21@
THEN
    0AC8: 22@ = allocate_memory_size 1024
    0AD3: 22@ = format "/free %d 15000" 21@
    0AF9: samp say_msg 22@
    0AD1: show_formatted_text_highpriority "~y~CMD: %s" time 1337 22@
    0AC9: free_allocated_memory 22@   
END
0B43: cmd_ret
thanks sir for this but i don't want just one id , i need this to do for multy ids
/ids 2 5 10 11 23
and then it send for all of this ids
/free 2 15000
/free 5 15000
/free 10 15000 and etc like this
 

M3D

Active member
Joined
May 22, 2014
Messages
130
Solutions
1
Reaction score
2
{$CLEO} 0000: repeat wait 1000 until 0AFA: var $ids_array array 10 of Int end 0B34: samp register_client_command "ids" to_label @cmd 0B34: samp register_client_command "idswait" to_label @wait 31@ = 0 26@ = 666 while true wait 0 if 31@ == 1 then alloc 27@ 64 for 29@ = 1 to 28@ 0AD3: 27@ = format "/free %d 15000" $ids_array[29@] say 27@ 0AD1: show_formatted_text_highpriority "~y~CMD: %s" time 1337 27@ wait 26@ end 31@ = 0 28@ = 0 free 27@ end end :cmd 0B35: samp 30@ = get_last_command_params if 0AD4: 0@ 30@ "%d %d %d %d %d %d %d" $ids_array[1] $ids_array[2] $ids_array[3] $ids_array[4] $ids_array[5] $ids_array[6] $ids_array[7] then 28@ = 7 31@ = 1 else if 0AD4: 0@ 30@ "%d %d %d %d %d %d" $ids_array[1] $ids_array[2] $ids_array[3] $ids_array[4] $ids_array[5] $ids_array[6] then 28@ = 6 31@ = 1 else if 0AD4: 0@ 30@ "%d %d %d %d %d" $ids_array[1] $ids_array[2] $ids_array[3] $ids_array[4] $ids_array[5] then 28@ = 5 31@ = 1 else if 0AD4: 0@ 30@ "%d %d %d %d" $ids_array[1] $ids_array[2] $ids_array[3] $ids_array[4] then 28@ = 4 31@ = 1 else if 0AD4: 0@ 30@ "%d %d %d" $ids_array[1] $ids_array[2] $ids_array[3] then 28@ = 3 31@ = 1 else if 0AD4: 0@ 30@ "%d %d %d" $ids_array[1] $ids_array[2] then 28@ = 2 31@ = 1 else if 0AD4: 0@ 30@ "%d" $ids_array[1] then 28@ = 1 31@ = 1 end end end end end end end cmdret :wait 0B35: samp 0@ = get_last_command_params if 0AD4: 0@ 0@ "%d" 1@ then chatmsg "wait:%d" 1@ end cmdret
 

Attachments

  • !ids.cs
    20 KB · Views: 0

M3D

Active member
Joined
May 22, 2014
Messages
130
Solutions
1
Reaction score
2
{$CLEO} 0000: repeat wait 1000 until 0AFA: var $ids_array array 10 of Int end 0B34: samp register_client_command "ids" to_label @cmd 0B34: samp register_client_command "idswait" to_label @wait 31@ = 0 26@ = 666 while true wait 0 if 31@ == 1 then alloc 27@ 64 for 29@ = 1 to 28@ 0AD3: 27@ = format "/free %d 15000" $ids_array[29@] say 27@ 0AD1: show_formatted_text_highpriority "~y~CMD: %s" time 1337 27@ wait 26@ end 31@ = 0 28@ = 0 free 27@ end end :cmd 0B35: samp 30@ = get_last_command_params if 0AD4: 0@ 30@ "%d %d %d %d %d %d %d" $ids_array[1] $ids_array[2] $ids_array[3] $ids_array[4] $ids_array[5] $ids_array[6] $ids_array[7] then 28@ = 7 31@ = 1 else if 0AD4: 0@ 30@ "%d %d %d %d %d %d" $ids_array[1] $ids_array[2] $ids_array[3] $ids_array[4] $ids_array[5] $ids_array[6] then 28@ = 6 31@ = 1 else if 0AD4: 0@ 30@ "%d %d %d %d %d" $ids_array[1] $ids_array[2] $ids_array[3] $ids_array[4] $ids_array[5] then 28@ = 5 31@ = 1 else if 0AD4: 0@ 30@ "%d %d %d %d" $ids_array[1] $ids_array[2] $ids_array[3] $ids_array[4] then 28@ = 4 31@ = 1 else if 0AD4: 0@ 30@ "%d %d %d" $ids_array[1] $ids_array[2] $ids_array[3] then 28@ = 3 31@ = 1 else if 0AD4: 0@ 30@ "%d %d %d" $ids_array[1] $ids_array[2] then 28@ = 2 31@ = 1 else if 0AD4: 0@ 30@ "%d" $ids_array[1] then 28@ = 1 31@ = 1 end end end end end end end cmdret :wait 0B35: samp 0@ = get_last_command_params if 0AD4: 0@ 0@ "%d" 1@ then chatmsg "wait:%d" 1@ end cmdret
I checked the code and found a variable error in setting the delay
But I can't edit the post haha

fix
 

Attachments

  • !ids.cs
    20 KB · Views: 2
Solution
Top