Всем привет. Нужно вот по типу скрипта ниже только чтоб еще плюсом был не только /reagle но еще и /rpistol
Код:
{$CLEO}
0000:
0662: "by Niko_Belic"
repeat
wait 0
until Samp.Available()
0B34: samp register_client_command "reagle" to_label @reagle
while true
if
30@ == 1
then
for 0@ = 0 to 1000
if
0B20: samp 1@ = actor_handle_by_samp_player_id 0@
then
04C4: store_coords_to 2@ 3@ 4@ from_actor 1@ with_offset 0.0 0.0 0.0
04C4: store_coords_to 5@ 6@ 7@ from_actor $3 with_offset 0.0 0.0 0.0
0509: 8@ = distance_between_XY 2@ 3@ and_XY 5@ 6@
0092: 8@ = float 8@ to_integer
if
801d: not 8@ > 11@
then
0af9: "/sellgun %d eagle" 0@
end
end
end
30@ = 0
end
wait 0
end
:reagle
0B35: samp 10@ = get_last_command_params
if
0ad4: 10@ 10@ "%d" 11@
then
30@ = 1
else
0af8: "Введите: /reagle [радиус]" 0xAAAAAA
end
Samp.CmdRet()