Add activation command

KeyCap

Member
Joined
Nov 2, 2021
Messages
16
Reaction score
0
Location
Germany
Hi, I need to add activation command for this code, but without relying on sampfuncs with the f3 key. could someone help me?

JavaScript:
// This file was decompiled using SASCM.ini published on 2022-03-20
{$CLEO .cs}
{$USE bitwise}
{$USE CLEO+}
{$USE file}
{$USE newOpcodes}

wait 0

:NONAME_4
wait 0
   Player.Defined(0)
jf @NONAME_4

:NONAME_19
wait 0
if and
   not Actor.Driving($PLAYER_ACTOR)
8818:   not actor $PLAYER_ACTOR in_air
   is_key_pressed 2
jf @NONAME_212
if
   is_key_pressed 2
jf @NONAME_212

:NONAME_63
   is_key_pressed 2
jf @NONAME_86
wait 150
jump @NONAME_63

:NONAME_86
1@ = 0
if
   not 1@ == -1
jf @NONAME_212
0470: 0@ = actor $PLAYER_ACTOR current_weapon

:NONAME_119
wait 0
01B9: set_actor $PLAYER_ACTOR armed_weapon_to 0
wait 50
0470: 1@ = actor $PLAYER_ACTOR current_weapon
if or
  1@ == 0
  1@ == 1
jf @NONAME_174
jump @NONAME_181

:NONAME_174
jump @NONAME_119

:NONAME_181
01B9: set_actor $PLAYER_ACTOR armed_weapon_to 0@
wait 50
01B9: set_actor $PLAYER_ACTOR armed_weapon_to 0
wait 50
0470: 1@ = actor $PLAYER_ACTOR current_weapon

:NONAME_212
jump @NONAME_19
 

r0yal1

Active member
Joined
Jun 20, 2019
Messages
28
Reaction score
3
Hi, what does this do? Asking out of curiosity.
 

Parazitas

God
Joined
Jan 2, 2017
Messages
3,103
Solutions
5
Reaction score
882
Location
Lithuania
Are able to use this code from below?:
 
Top