Moonlight_Ru
Известный
- 66
- 21
[QUOTE = "Ded_Fedot, post: 151831, member: 871"] 0665: get_actor 88 @ model_to 94 @
Hi, I need a gen / getid mode when I / getid gets in the chat ids of those who are a certain distance from me, what are the command lines?
If I understand you correctly.
Код:
{$CLEO}
0000:
0B34: samp register_client_command "getid" to_label @getid
0BDE: pause_thread 0
:getid
0B35: samp 0@ = get_last_command_params
0AD4: 0@ = scan_string 0@ format "%d" 1@
0006: 2@ = 0
:getid_m
0B23: samp is_player_connected 2@
jf @getid_c
0B20: samp 3@ = actor_handle_by_samp_player_id 2@
056D: actor 3@ defined
jf @getid_c
00A0: store_actor 3@ position_to 5@ 6@ 7@
00A0: store_actor $PLAYER_ACTOR position_to 8@ 9@ 10@
050A: 11@ = distance_between_XYZ 5@ 6@ 7@ and_XYZ 8@ 9@ 10@
0092: 11@ = float 11@ to_integer
801D: not 11@ > 1@ // (int)
jf @getid_c
0B36: samp 4@ = get_player_nickname 2@
0665: get_actor 3@ model_to 12@
0AF8: samp add_message_to_chat "%s[%d] Distance: %d Model: %d" color -1 4@ 2@ 11@ 12@
:getid_c
000A: 2@ += 1
0019: 2@ > 999
jf @getid_m
0B43: samp cmd_ret
Последнее редактирование: