CLEO Help Need 2 key pressed

CLEO related
Status
Not open for further replies.
Joined
Jul 22, 2016
Messages
9
Reaction score
0
Hey guys how to set when 2 button push at the same time to make something happen. Example:

if
0AB0:   key_pressed 34
then
//something
.
.
.

Maybe ? --> |
                    |
                   \/

if and
0AB0:   key_pressed <key_id>
0AB0:   key_pressed <key_id>
then
//something
.
.
.

Or how please help. (Bad English skill)
 

4changesLeft

Well-known member
Joined
Apr 10, 2015
Messages
365
Reaction score
3
if and
key_down <number>
key_down <number>
then
//do something
end


I suggest you look up these tutorials to learn the basics of cleo
http://ugbase.eu/Thread-CLEO-Scripting-Series-by-BlackHat
http://ugbase.eu/Thread-Sanny-Builder-Syntax
 

0x32789

Expert
Joined
May 26, 2014
Messages
849
Reaction score
51
Location
LongForgotten <-> 0x32789
u mean u went to send a key press to a cleo? u need sampfuncs for it, It is the thing I added in my cyclist I was searching for this too, This will send keypress to the game and wouldn't care about most of delay (but dosent work on hydra), it works in bmx, bike etc
this was my code
Code:
if key_pressed <key_number> then
                0C72: set_virtual_key 17 down true
                0C72: set_virtual_key 17 down false
                0C72: set_virtual_key 17 down true
                0C72: set_virtual_key 17 down false 
end
that virtual key is CTRL, means it will high jump on bmx
 
Status
Not open for further replies.
Top