Советчики, так вы получите ИД игрока с найменьшим идом, который есть в стриме.
0AB5: store_actor $player_actor closest_vehicle_to 0 closest_ped_to 0@
Код:
{$CLEO .cs}
{$INCLUDE SF}
0000: NOP
wait 2000
while true
wait 0
if
key_down 114
then
if
call @NearPlayer 0 0@
then
0af8: "Id: %d" -1 0@
call @key_unpress1 1 key 114
else
0af8: "No players" -1
call @key_unpress1 1 key 114
end
end
end
:NearPlayer
for 0@ = 0 to 1000 step 1
if 0AB5: store_actor $player_actor closest_vehicle_to 0 closest_ped_to 0@
then
if 0B20: samp 0 = actor_handle_by_samp_player_id 0@
then ret 0@
end
end
end
ret 0
:key_unpress1
while key_down 1@
wait 0
end
ret 0
Вот так должно быть?