#1 04-07-2018 17:26

P A R A D O X
Registered: 04-07-2018
Posts: 1

[CLEO] KEY PRESSED COMMAND

HELLO!

Guys, i need a cleo script for SA:MP!
He need to do(exemple):

When i press a combination of letters (r+z) or a simple letter (r) the script execute a command in chat (/stats).

THANKS! grin

Last edited by P A R A D O X (04-07-2018 17:47)

Offline

#2 19-07-2018 13:29

Shag
Registered: 29-03-2010
Posts: 147
Website

Re: [CLEO] KEY PRESSED COMMAND

It's not a SAMP forum.

Offline

#3 01-05-2020 00:32

AndreiNaa
Registered: 01-05-2020
Posts: 2

Re: [CLEO] KEY PRESSED COMMAND

Try:

:TESTCLEO_01
wait 0
if and
0AB0:   key_pressed 90 // key z
0AB0:   key_pressed 82 // key r
0AFA:   is_samp_structures_available
else_jump @TESTCLEO_01
0AF9: samp say_msg "/stats"
wait 1000
jump @TESTCLEO_01

Last edited by AndreiNaa (01-05-2020 00:39)

Offline

Board footer

Powered by FluxBB