- 36
- 0
- Версия SA-MP
-
- 0.3.7 (R1)
- 0.3.7-R3
- Любая
- Другая
Смотрите вот скрипт на анимацию ссанья когда я нажал клавиши 2 + 3, можете переделать чтобы когда я зажал 2 скрипт работал, отпустил все обратно вернулось
Вот код:
{$CLEO .cs}
0000: NOP
:Noname_2
0001: wait 0 ms
00D6: if and
0AB0: is_key_pressed 50
0AB0: is_key_pressed 51
004D: jump_if_false @Noname_2
04ED: load_animation "PAULNMAC"
:Noname_37
0001: wait 0 ms
04EE: animation "PAULNMAC" loaded
004D: jump_if_false @Noname_37
0605: actor $PLAYER_ACTOR perform_animation_sequence "PISS_LOOP" IFP_file "PAULNMAC" 4.0 loop 1 0 0 0 time -1 // versionA
0669: 24@ = attach_particle "petrolcan" to_actor $PLAYER_ACTOR with_offset 0.04 0.32 0.04 flag 1
064C: make_particle 24@ visible
04EF: release_animation "PAULNMAC"
0002: jump @Noname_2
Вот код:
{$CLEO .cs}
0000: NOP
:Noname_2
0001: wait 0 ms
00D6: if and
0AB0: is_key_pressed 50
0AB0: is_key_pressed 51
004D: jump_if_false @Noname_2
04ED: load_animation "PAULNMAC"
:Noname_37
0001: wait 0 ms
04EE: animation "PAULNMAC" loaded
004D: jump_if_false @Noname_37
0605: actor $PLAYER_ACTOR perform_animation_sequence "PISS_LOOP" IFP_file "PAULNMAC" 4.0 loop 1 0 0 0 time -1 // versionA
0669: 24@ = attach_particle "petrolcan" to_actor $PLAYER_ACTOR with_offset 0.04 0.32 0.04 flag 1
064C: make_particle 24@ visible
04EF: release_animation "PAULNMAC"
0002: jump @Noname_2