Resource icon

CLEO Release Auto KeyBind

CLEO related
Status
Not open for further replies.

Heisenbergi

New member
Joined
Jan 5, 2018
Messages
3
Reaction score
0
How i use this to active others mod? When i put the comand on bind he just send no chat not active commands. I need the /rcc active a mod not send in chat, anyone help-me?

{$CLEO .cs}
0000:
thread "KeyBind"
0B34: samp register_client_command "akb" to_label @cmd
0@ = 0

/// wait 1000 - 1 seconds
/// wait 30000 - 3 minutes

//////

:MAIN
wait 0
if
0@ == 1
then
wait 360000 /// You can change time
0AF9: samp say_msg "/pescar"
end

if
0@ == 1
then
wait 90000 /// Pause before moving on to the next ad - 5seconds
end

//////
if
0@ == 1
then
wait 10 /// You can change time
0AF9: samp say_msg "/RCC"
end


SAMP.CmdRet()
jump @MAIN

:CMD
wait 0
if
056D: actor $PLAYER_ACTOR defined
then
0B12: 0@ = 0@ XOR 1
if
0@ == 1
then
0ACD: show_text_highpriority "Auto Key Bind: ~g~ON~w~" time 1500
else
0ACD: show_text_highpriority "Auto Key Bind: ~r~OFF~w~" time 1500
end
end
SAMP.CmdRet()
jump @MAIN
 

Edvincik

Well-known member
Joined
Mar 15, 2016
Messages
399
Reaction score
27
Heisenbergi said:
How i use this to active others mod? When i put the comand on bind he just send no chat not active commands. I need the /rcc active a mod not send in chat, anyone help-me?

{$CLEO .cs}
0000:
thread "KeyBind"
0B34: samp register_client_command "akb" to_label @cmd
0@ = 0

/// wait 1000 - 1 seconds
/// wait 30000 - 3 minutes

//////

:MAIN      
wait 0
if
0@ == 1
then
wait 360000  /// You can change time        
0AF9: samp say_msg "/pescar"
end

if
0@ == 1
then
wait 90000  /// Pause before moving on to the next ad - 5seconds
end

//////
if
0@ == 1
then
wait 10  /// You can change time        
0AF9: samp say_msg "/RCC"
end


SAMP.CmdRet()
jump @MAIN      

:CMD
wait 0
if
056D:   actor $PLAYER_ACTOR defined
then
0B12: 0@ = 0@ XOR 1
if
0@ == 1
then
0ACD: show_text_highpriority "Auto Key Bind: ~g~ON~w~" time 1500
else
0ACD: show_text_highpriority "Auto Key Bind: ~r~OFF~w~" time 1500
end
end
SAMP.CmdRet()
jump @MAIN

use this 0C8F: samp process_chat_input "/rcc"
 

Heisenbergi

New member
Joined
Jan 5, 2018
Messages
3
Reaction score
0
Malchik said:
Heisenbergi said:
How i use this to active others mod? When i put the comand on bind he just send no chat not active commands. I need the /rcc active a mod not send in chat, anyone help-me?

{$CLEO .cs}
0000:
thread "KeyBind"
0B34: samp register_client_command "akb" to_label @cmd
0@ = 0

/// wait 1000 - 1 seconds
/// wait 30000 - 3 minutes

//////

:MAIN      
wait 0
if
0@ == 1
then
wait 360000  /// You can change time        
0AF9: samp say_msg "/pescar"
end

if
0@ == 1
then
wait 90000  /// Pause before moving on to the next ad - 5seconds
end

//////
if
0@ == 1
then
wait 10  /// You can change time        
0AF9: samp say_msg "/RCC"
end


SAMP.CmdRet()
jump @MAIN      

:CMD
wait 0
if
056D:   actor $PLAYER_ACTOR defined
then
0B12: 0@ = 0@ XOR 1
if
0@ == 1
then
0ACD: show_text_highpriority "Auto Key Bind: ~g~ON~w~" time 1500
else
0ACD: show_text_highpriority "Auto Key Bind: ~r~OFF~w~" time 1500
end
end
SAMP.CmdRet()
jump @MAIN

use this 0C8F: samp process_chat_input "/rcc"
Work, Thank you
 

nichigo13

New member
Joined
Jan 9, 2018
Messages
2
Reaction score
0
is there any way to make the script stop quickly? i know you can deactivate it by retyping /akb but it waits for the script to be finished before stopping completely. sorry if my english is bad.
 

Aasaad

Active member
Joined
Feb 20, 2013
Messages
53
Reaction score
0
is it possible to make the activation button a key/button?
 

Edvincik

Well-known member
Joined
Mar 15, 2016
Messages
399
Reaction score
27
Aasaad said:
Parazitas said:
Aasaad said:
is it possible to make the activation button a key/button?

Yes!

how? i got a cleo to make the activation with a button
 IF AND
 8B21: samp is_chat_opened
 0AB0: //key code that you want
 THEN
 wait 200
 0B12: 0@ = 0@ XOR 1
 END
 

Aasaad

Active member
Joined
Feb 20, 2013
Messages
53
Reaction score
0
can you edit it for me? I tried it doesn't seem to work, I seem to be doing something wrong, Can you set the activation to Numpad +
 

Attachments

  • this.cs
    17.9 KB · Views: 22

Punisher

Active member
Joined
Jul 16, 2014
Messages
42
Reaction score
0
[font=arial,sans-serif]Sorry for put this here, but the request cleo forum is locked I can not put the subject. In this script, when I compile out, throw out "Not enough actual parameters. Expected 1 params".[/font]
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
Punisher said:
[font=arial,sans-serif]Sorry for put this here, but the request cleo forum is locked I can not put the subject. In this script, when I compile out, throw out "Not enough actual parameters. Expected 1 params".[/font]

Code:
{$CLEO .cs}
0000:

while true
wait 0

if
key_down (53)
then
0AF9: samp say_msg "/buyhouse"
wait 500
end

if
key_down (53)
then
0AF9: samp say_msg "/buyhouse"
wait 500
end

if
key_down (53)
then
0AF9: samp say_msg "/buyhouse"
wait 500
end

if
key_down (53)
then
0AF9: samp say_msg "/buyhouse"
wait 500
end

end

PHP:
{$CLEO .cs}
0000:

repeat
wait 0     /// wait until samp is read...
until 0afa:


while true
wait 0

if
key_down 53 {5 Key}
then
0AF9: samp say_msg "/buyhouse"
wait 500
end

if
key_down 53 {5 Key}
then
0AF9: samp say_msg "/buyhouse"
wait 500
end

if
key_down 53 {5 Key}
then
0AF9: samp say_msg "/buyhouse"
wait 500
end

if
key_down 53 {5 Key}
then
0AF9: samp say_msg "/buyhouse"
wait 500
end

end
 

Edvincik

Well-known member
Joined
Mar 15, 2016
Messages
399
Reaction score
27
Aasaad said:
can you edit it for me? I tried it doesn't seem to work, I seem to be doing something wrong, Can you set the activation to Numpad +
 

Attachments

  • this.cs
    17.8 KB · Views: 26

Aasaad

Active member
Joined
Feb 20, 2013
Messages
53
Reaction score
0
Malchik said:
Aasaad said:
can you edit it for me? I tried it doesn't seem to work, I seem to be doing something wrong, Can you set the activation to Numpad +

SAMP gets bugged when I use it, it shows gambling skill + when i login and the graphics get glitchy.
 

Edvincik

Well-known member
Joined
Mar 15, 2016
Messages
399
Reaction score
27
Aasaad said:
Malchik said:
Aasaad said:
can you edit it for me? I tried it doesn't seem to work, I seem to be doing something wrong, Can you set the activation to Numpad +

SAMP gets bugged when I use it, it shows gambling skill + when i login and the graphics get glitchy.
I think it needs more allocated memory, or it contains a bad loop, dunno


bmuresan2003 said:
Can you make it stop after the 5 auto commands finished? quote me, ty.

You can make it by yourself by simple counting

0@ += 1
if
0@ == 5
then
break
end
 

jimto20

Member
Joined
Apr 13, 2018
Messages
6
Reaction score
0
its working while alt tab ?


anyone can tell me how to make cs files ? or edit ? hehe
 
Status
Not open for further replies.
Top