CLEO Help [HELP] Activation

CLEO related
Status
Not open for further replies.

MrChristmas

Expert
Joined
Jul 29, 2014
Messages
563
Reaction score
26
Hi,

Does anyone know how to make script so it doesn't switch on when I type something in chat ?. Lets say that I need to press 6 on keyboard to activate the cleo, but when I'm typing something in chat and I press 6 then cleo gonna switch on. I want to do something like it doesn't switch on when I press 6 when I'm typing In chat but when I'm pressing 6 and I'm not typing in chat.
 

MrChristmas

Expert
Joined
Jul 29, 2014
Messages
563
Reaction score
26
pepeelpubero link said:
add "not SAMP.ChatInputOpened()"

Code:
if and
0AB0: 54
not SAMP.ChatInputOpened()
then
...


Like that ?  :surprised:

Code:
{$CLEO}

0000: NOP

:A
wait 0
if
key_down 12
jf @A
if and
0AB0: 54
not SAMP.ChatInputOpened()
then
goto @B

:B
wait 0
print "~Y~Hello!" 1500
goto @A
 

pepeelpubero

Well-known member
Joined
Jan 21, 2014
Messages
433
Reaction score
1
Code:
while true
wait 0
if and
0AB0: 54
not SAMP.ChatInputOpened()
then
print "~Y~Hello!" 1500
end
end

OR

Code:
{$CLEO .cs}

0000: NOP

:A
wait 0
if and
0AB0: 54
not SAMP.ChatInputOpened()
else_jump @A
print "~Y~Hello!" 1500
goto @A

I think your code not work.
 
Status
Not open for further replies.
Top