add on/off key cleo

TheMarioTR

Новичок
Автор темы
14
0
Code:
CLEO:
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}

//-------------MAIN---------------
wait 0

:NONAME_4
wait 0
if and
   Player.Defined($PLAYER_CHAR)
   Actor.Driving($PLAYER_ACTOR)
jf @NONAME_4
jump @NONAME_36

:NONAME_36
1@ = Actor.CurrentCar($PLAYER_ACTOR)
0918: set_car 1@ engine_operation 1
jump @NONAME_4
 

хуесос)

Известный
263
63
Code:
CLEO:
// This file was decompiled using SASCM.ini published by GTAG (http://gtag.gtagaming.com/opcode-database) on 14.6.2013
{$CLEO .cs}

//-------------MAIN---------------
wait 0

:NONAME_4
wait 0
if and
   Player.Defined($PLAYER_CHAR)
   Actor.Driving($PLAYER_ACTOR)
jf @NONAME_4
jump @NONAME_36

:NONAME_36
1@ = Actor.CurrentCar($PLAYER_ACTOR)
0918: set_car 1@ engine_operation 1
jump @NONAME_4
for samp or single?
 

хуесос)

Известный
263
63
CLEO:
{$CLEO .cs}

0000:

repeat
wait 0
until sAMp.Available()

0@ = 1


0b34: "enable" @my_cmd

:NONAME_4
wait 0
if and
0@ == 1
Player.Defined($PLAYER_CHAR)
Actor.Driving($PLAYER_ACTOR)
jf @NONAME_4
jump @NONAME_36

:NONAME_36
1@ = Actor.CurrentCar($PLAYER_ACTOR)
0918: set_car 1@ engine_operation 1
jump @NONAME_4

:my_cmd
if 0@ == 1
then 
chatmsg "Disabled"
0@ = 0
else
0@ = 1
chatmsg "Enabled" 
end
cmdret
for enable you should to write /enable
 

TheMarioTR

Новичок
Автор темы
14
0
CLEO:
{$CLEO .cs}

0000:

repeat
wait 0
until sAMp.Available()

0@ = 1


0b34: "enable" @my_cmd

:NONAME_4
wait 0
if and
0@ == 1
Player.Defined($PLAYER_CHAR)
Actor.Driving($PLAYER_ACTOR)
jf @NONAME_4
jump @NONAME_36

:NONAME_36
1@ = Actor.CurrentCar($PLAYER_ACTOR)
0918: set_car 1@ engine_operation 1
jump @NONAME_4

:my_cmd
if 0@ == 1
then
chatmsg "Disabled"
0@ = 0
else
0@ = 1
chatmsg "Enabled"
end
cmdret

for enable you should to write /enable
I just want to add on/off key.. I'm not using sampfuncs
 

Snagg

Участник
25
7
I just want to add on/off key.. I'm not using sampfuncs

Activation: "H"


CLEO:
{$CLEO .cs}
0000:

WHILE TRUE
WAIT 0
IF
00DF:   actor $PLAYER_CHAR driving
THEN
  IF
   0735:   is_keyboard_key_pressed 72
  THEN
    03C0: 0@ = actor $PLAYER_CHAR car
    0918: set_car 0@ engine_operation 1
   END
ELSE
  0918: set_car 0@ engine_operation 0
END
END
 

stimul556

Новичок
19
0
Добрый день можете переделать открытия DialogHider до этого бы ло на (home-спрятать) а (end-открыть) key
219 открыть

221 закрыть
 

Вложения

  • 24. DialogHider.cs
    19 KB · Просмотры: 12

TheMarioTR

Новичок
Автор темы
14
0