{$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]...
Yes possible..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
Sorry for bad explainedYes 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..!
{$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 idsPHP:{$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
Tomorrow, be patient.@Parazitas
can you plz look at this post again?i need this mod
ok thanksTomorrow, be patient.
{$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{$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
thanks alot man , thats working perfectlyI checked the code and found a variable error in setting the delay
But I can't edit the post haha
fix
Set delay between messagesthanks alot man , thats working perfectly
i have another question , what /idswait do on this mod?