- Версия SA-MP
-
- 0.3.7 (R1)
Hello.
I need an example that if I press the "1" button on my keyboard, my character will switch to fists. Thanks in advance.
Like this:
I need an example that if I press the "1" button on my keyboard, my character will switch to fists. Thanks in advance.
Like this:
Код:
: WEP_SWITCH_361
041A: 1 @ = actor $ PLAYER_ACTOR weapon 29 ammo
if and
key_down 52
1 @> 0
else_jump @ WEP_SWITCH_400
01B9: set_actor $ PLAYER_ACTOR armed_weapon_to 29