MArkoas_Gonzaleees
Новичок
- 22
- 0
Ребята, помогите с кодом. Хочу сделать бота, чтобы после активации он создавался, и когда я по нему попадаю с дигла. Звенел колокольчик. Что-то вроде Aim training
Код:
{$CLEO .cs}
0000:
repeat
wait 100
until Samp.Available()
0B34: samp register_client_command "botc" to_label @create
:create
wait 0
04C4: store_coords_to 1@ 2@ 3@ from_actor $PLAYER_ACTOR with_offset 0 0 0
009A: 10@ = create_actor_pedtype 9 model #LSV3 at 1@ 2@ 3@
02AB: set_actor 10@ immunities BP 1 FP 1 EP 1 CP 1 MP 1
gosub @proverka
0AAC: $hMP3 = load_audiostream "cleo\hitbot.mp3"
jf @create
:sound
wait 0
if
031D: actor 10@ hit_by_weapon 24
jf @sound
0AAD: set_audiostream $hMP3 perform_action 1
:lbexit
wait 0
if
0ADC: test_cheat "off"
jf @lbexit
0AAE: release_audiostream $hMP3
Samp.CmdRet()
:proverka
if
0AAB: file_exists "cleo\hitbot.mp3"
jf @proverka
0051: return