CLEO Auto KeyBind

Parazitas

Well-Known Member
Joined
Jan 2, 2017
Messages
699
Likes
5
Points
23
Location
Lithuania
Website
ugbase.eu
#1
Hello world.

This is  Auto KeyBind cleo.
Activate / Deactivate: In server say /akb

KeyBind sends text based on your down time. Now, every 3 minutes
You can change the text for what you want.​

- Most helpful -​
Administrators / VIP`s  when they publish assistance, etc. in server.

For Edit:
Code:
{$CLEO .cs}
0000:
thread "KeyBind"
0B34: samp register_client_command "akb" to_label @cmd
[email protected] = 0

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

//////

:MAIN       
wait 0
if
[email protected] == 1
then
wait 5000  /// You can change time        
0AF9: samp say_msg "TEXT 1"
end

if 
[email protected] == 1
then
wait 5000  /// Pause before moving on to the next ad - 5seconds
end

//////
if
[email protected] == 1
then
wait 30000  /// You can change time        
0AF9: samp say_msg "TEXT 2"
end

if 
[email protected] == 1
then
wait 5000  /// Pause before moving on to the next ad - 5seconds
end

//////
if
[email protected] == 1
then
wait 30000  /// You can change time        
0AF9: samp say_msg "TEXT 3"
end

if 
[email protected] == 1
then
wait 5000  /// Pause before moving on to the next ad - 5seconds
end

//////
if
[email protected] == 1
then
wait 30000  /// You can change time        
0AF9: samp say_msg "TEXT 4"
end

if 
[email protected] == 1
then
wait 5000  /// Pause before moving on to the next ad - 5seconds
end

///////
if
[email protected] == 1
then
wait 30000  /// You can change time     
0AF9: samp say_msg "TEXT 5"
end

if 
[email protected] == 1
then
wait 5000  /// Pause before moving on to the next ad - 5seconds
end

SAMP.CmdRet()
jump @MAIN       

:CMD
wait 0
if
056D:   actor $PLAYER_ACTOR defined
then
0B12: [email protected] = [email protected] XOR 1 
if
[email protected] == 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
 

Attachments

OP
OP
Parazitas

Parazitas

Well-Known Member
Joined
Jan 2, 2017
Messages
699
Likes
5
Points
23
Location
Lithuania
Website
ugbase.eu
#5
ambigu said:
how can i put a text like "/find 5" ?
Here you go...
ON / OFF - in server say command /akb

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

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

//////

:MAIN       
wait 0
if
[email protected] == 1
then
wait 120000  /// now is send every 120 seconds       
0AF9: samp say_msg "/find 1"
end

SAMP.CmdRet()
jump @MAIN       

:CMD
wait 0
if
056D:   actor $PLAYER_ACTOR defined
then
0B12: [email protected] = [email protected] XOR 1
if
[email protected] == 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
 

Attachments

ramez

Well-Known Member
Joined
Jun 11, 2015
Messages
120
Likes
0
Points
46
#10
Good job bro
but why some commands like this:/health or /ammo work
and some commands like this:/rcon login 123 not work???
 
OP
OP
Parazitas

Parazitas

Well-Known Member
Joined
Jan 2, 2017
Messages
699
Likes
5
Points
23
Location
Lithuania
Website
ugbase.eu
#13
comando said:
Ta giving error when editing (compile)
Go here..
http://ugbase.eu/Thread-Solution-Unknown-Directive-error-Sanny-Builder
______________________________________________________________________________________________________________________________________
- Copy all files from the "SB data" to "/Sanny Builder 3/data/sa".
 
OP
OP
Parazitas

Parazitas

Well-Known Member
Joined
Jan 2, 2017
Messages
699
Likes
5
Points
23
Location
Lithuania
Website
ugbase.eu
#14
comando said:
Ta giving error when editing (compile)
Go here...
http://ugbase.eu/Thread-Solution-Unknown-Directive-error-Sanny-Builder
                                              ↓

- Copy all files from the "SB data" to "/Sanny Builder 3/data/sa".
 

McCall.

New Member
Joined
Dec 29, 2014
Messages
4
Likes
0
Points
1
1
#15
Can you make one with /towcars please and delay 5 minutes. I can't edit it. Thank you bro!
 

McCall.

New Member
Joined
Dec 29, 2014
Messages
4
Likes
0
Points
1
1
#16
Can you make one with /towcars please and delay 5 minutes. I can't edit it. Thank you bro!
 
OP
OP
Parazitas

Parazitas

Well-Known Member
Joined
Jan 2, 2017
Messages
699
Likes
5
Points
23
Location
Lithuania
Website
ugbase.eu
#17
McCall. said:
Can you make one with /towcars please and delay 5 minutes. I can't edit it. Thank you bro!
Here you go...
On / OFF - in server say command  /atc
http://www41.zippyshare.com/v/ipg2pcvV/file.html
 
Top