CLEO Binds.

Статус
В этой теме нельзя размещать новые ответы.

Azaleus

Известный
Автор темы
22
1
Hello! I am really sorry I do this request in english, but I do not speak russian myself and I'd rather do it in english than use translator and type god knows what. So, I'm lately in need of a CLEO script which'll do the following in a loop:

F5 for activation.
1. Type "/getmats"
2. Wait 63 seconds.
3. Press Y button. (Press it down because I also use checkpoint syncer.cs).

I've never done a CLEO script myself, but here's what I managed to come up with, I have no idea if it's anything of it good or not, but yeah. Can I get some help from you guys?

:LOOP
wait 0
if
0AB0: key_pressed 116
0AF9: samp say_msg "/getmats"
wait 63000
0C72: set_virtual_key 89@ down true
 

unInstance

Новичок
Проверенный
311
222
CLEO:
{$CLEO .cs}
0000: NOP

while true
    wait 0
    if 0C89: key_just_pressed 0x74
    then
        say "/getmats"
        wait 63000
        0C72: set_virtual_key 0x59 down true
        wait 200
        0C72: set_virtual_key 0x59 down false
    end
end
 
  • Нравится
Реакции: Azaleus

Azaleus

Известный
Автор темы
22
1
I copied and pasted that into the Sanny Builder and tried compiling it and saving it, but it says "Unknown opcode 0C89." Can you try compiling and saving it into a .CS yourself? Maybe it's something wrong with my Sanny Builder.
 

Azaleus

Известный
Автор темы
22
1
Any idea why my game crashes when I launch it? I have CLEO 4.1 and the latest SAMPFUNCS installed. I run Windows 7.
 

Azaleus

Известный
Автор темы
22
1
This one works perfectly, yes. But, can you make it go in loop? Like ... infinite times or untill I turn it off.
 

Azaleus

Известный
Автор темы
22
1
Works awesome. One last thing, can you make it wait 1 second before typing /getmats?
 
Статус
В этой теме нельзя размещать новые ответы.