Car Info

Статус
В этой теме нельзя размещать новые ответы.

Amhmmm

Известный
Автор темы
41
48
Help! Неизвестная команда samp.
CLEO:
{$CLEO}
0000: NOP  

:zlp
wait 3000 ms
samp
jf @zlp
msg "[{6495ED}CarInfo{F8F8FF}]{6495ED} Скрипт {00ff00}загружен{6495ED}. Автор: {ff00ff}Amhmmm"
0xf8f8ff
msg "[{6495ED}CarInfo{F8F8FF}]{6495ED} /gcc id{F8F8FF} - узнать инфу о т/с"  -1
cmd "gcc" @huy
alloc 9@ 64
0BDE: pause_thread 0

        :huy
        0B35: samp 0@ = get_last_command_params
        0AD4: 1@ = scan_string 0@ format "%d" 2@
        if 7@ = SAMP.GetVehicleHandleBySAMPVehicleID(2@)
        then
        0AFF: samp 3@ = car_handle_by_samp_vehicle_id 2@
        03F3: get_car 3@ primary_color_to 4@ secondary_color_to 5@
        0441: 6@ = car 3@ model
        0ADB: 9@ = car_model 6@ name
        msg "Модель{00ff00} %s{6495ED} |{f8f8ff} ID{00ff00} %d{6495ED} |{F8F8FF} Цвет 1{00ff00} %d{6495ED} |{F8F8FF} Цвет 2{00ff00} %d" 0xf8f8ff 9@ 6@ 4@ 5@
        else
        msg "{ff0000}Ошибка! {6495ED}Автомобиль не в зоне стрима"
        end
        cmdret
 

Вложения

  • upload_2018-11-6_14-2-41.png
    upload_2018-11-6_14-2-41.png
    32.2 KB · Просмотры: 359

_=Gigant=_

Известный
144
221
Сорри, я тупой. Доведи до ума скрипт, пожалуйста

CLEO:
{$CLEO}
0000:

alloc 0@ 70
alloc 2@ 70
alloc 3@ 70
alloc 4@ 70
0B6D: render 1@ = create_font "Arial" height 10 flags 0x1

0B34: "vhinfo" @VehDrawActivation 

while true
    wait 0
    if
    10@ == 1 
        then         
        for 31@ = 0 to 2000 /// samp max vehicles
            if 0AFF: samp 30@ = car_handle_by_samp_vehicle_id 31@
            then
            if and
            056E:   car 30@ defined
              02CA:   car 30@ bounding_sphere_visible
                then         
                0407: store_coords_to 29@ 28@ 27@ from_car 30@ with_offset 0.0 0.0 0.0
                if 00C2: sphere_onscreen 29@ 28@ 27@  radius 0.0
                    then           
                    Actor.StorePos($PLAYER_ACTOR, 26@, 25@, 24@)
                    0B55: convert_3D_coords 29@ 28@ 27@ to_screen 23@ 22@
                    0B55: convert_3D_coords 26@ 25@ 24@ to_screen 21@ 20@                                       
                   // 0B68: render draw_line_point1 23@ 22@ point2 21@ 20@ width 1 color 0x8833ff33                       
                    0227: 19@ = car 30@ health 
                    0441: 18@ = car 30@ model
                    alloc 17@ 30
                    0ADB: 17@ = car_model 18@ name 
                    01EA: 16@ = car 30@ pseats
                    09B3: get_car 30@ door_status 15@ 
                    050A: 9@ = distance_between_XYZ  29@ 28@ 27@ and_XYZ 26@ 25@ 24@                             
                   // 0B70: render draw_polygon_pos 23@ 22@ size 3 3 corners 7 rotation 0 color 0xba00ff00
                    format 0@ "{C235DD}Vehicle {FFFFFF}%s {FFFFFF}[%d]" 17@ 18@
                    format 2@ "{FF0F0F}Health {FFFFFF}%d {00FF00}Distance {F0FF0F}%.1f" 19@ 9@
                    format 3@ "Pos %.1f | %.1f | %.1f" 29@ 28@ 27@
                    format 4@ "{FFA00F}Passanger Seats {FFFFFF}%d {00FF00}Locked {FFFFFF}%d" 16@ 15@
                    23@ += 5
                    22@ += 7
                    0B6F: render font 1@ draw_text 0@ pos 23@ 22@ color 0xFFFFFFFF
                    22@ -= -8
                    22@ -= 27
                    0B6F: render font 1@ draw_text 2@ pos 23@ 22@ color 0xFFFFFFFF
                    22@ -= 17
                    0B6F: render font 1@ draw_text 3@ pos 23@ 22@ color 0xFFFFFFFF
                    22@ -= 15
                    0B6F: render font 1@ draw_text 4@ pos 23@ 22@ color 0xFFFFFFFF
                    23@ -= 5
                    22@ -= 7
                   /* 0AB4: 7@ VARIABLE= 206
                    0B69: render draw_box_pos 23@ 22@ size 280 2 color 7@ // upper box
                    22@ -= -80
                    0B69: render draw_box_pos 23@ 22@ size 280 2 color 7@ // lower box
                    23@ -= 0
                    22@ -= 80
                    0B69: render draw_box_pos 23@ 22@ size 2 82 color 7@ // left side box
                    23@ += 280
                    0B69: render draw_box_pos 23@ 22@ size 2 82 color 7@ // right side box       */
                    free 17@
                  // end 
                end
                end
            end
        end
    end
end

:VehDrawActivation
0B12: 10@ = 10@ XOR 1
if 10@ == TRUE
then
printf "~Y~Vehicle Info ~G~[ON]" 1300
else
printf "~Y~Vehicle Info ~R~[OFF]" 1300
end
cmdret


you can take a look at this open source multicheat it has this info for players and vehicles https://blast.hk/threads/22535/
 
Статус
В этой теме нельзя размещать новые ответы.