Resource icon

CLEO Release Auto KeyBind

CLEO related
Status
Not open for further replies.

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
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
0@ = 0

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

//////

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

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

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

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

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

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

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

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

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

if 
0@ == 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: 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
 

Attachments

  • AutoKeyBind.cs
    19 KB · Views: 1,121

Nema

New member
Joined
Mar 23, 2014
Messages
4
Reaction score
0
You are a god, now I can get skill 5 on detective
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
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
0@ = 0

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

//////

:MAIN       
wait 0
if
0@ == 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: 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
 

Attachments

  • AKB-To-Nema.cs
    17.9 KB · Views: 270

ramez

Active member
Joined
Jun 11, 2015
Messages
120
Reaction score
0
Location
GB
Good job bro
but why some commands like this:/health or /ammo work
and some commands like this:/rcon login 123 not work???
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
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".
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
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
Reaction score
0
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
Reaction score
0
Can you make one with /towcars please and delay 5 minutes. I can't edit it. Thank you bro!
 

Parazitas

God
Staff member
Joined
Jan 2, 2017
Messages
3,315
Solutions
7
Reaction score
935
Location
Lithuania
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
 

iVilux

Well-known member
Joined
Nov 12, 2013
Messages
207
Reaction score
5
Pats kūrei?

/// wait 30000 - 3 minutes

Klaida čia, dar.
 

Edvincik

Well-known member
Joined
Mar 15, 2016
Messages
399
Reaction score
27
iVilux said:
Pats kūrei?

/// wait 30000 - 3 minutes

Klaida čia, dar.

Viskas teisingai, 5 min, paskaiciuok tu gal geriau
 

iVilux

Well-known member
Joined
Nov 12, 2013
Messages
207
Reaction score
5
Edvincik said:
iVilux said:
Pats kūrei?

/// wait 30000 - 3 minutes

Klaida čia, dar.

Viskas teisingai, 5 min, paskaiciuok tu gal geriau

30000 ms = 30s = 0,5min.

Daune, ko tu toks piktas?
 
Status
Not open for further replies.
Top