Вопросы по CLEO-скриптингу

Niko

Известный
Проверенный
230
268
можете помочь, как изменять параметры byteCamMode (AimSyncData)?
 

kraft1k

Вынь х*й из головы и все получится © hnnssy
Друг
1,479
1,163
Сферы почему то невидимые.
Код:
{$CLEO .cs}
{$INCLUDE SF}
0000: NOP

if 8AF7: get_samp_base_to 0@
then 0A93: end_custom_thread
end
repeat
wait 400
until 0AFA: is_samp_structures_available

while true
:1
wait 0
alloc 5@ 128
if or
    0101: actor $PLAYER_ACTOR stopped_near_point 1351.2369 -1752.8258 12.3593 radius 5.0 5.0 10.0 sphere 1
    0101: actor $PLAYER_ACTOR stopped_near_point 1938.7834 -1771.9048 12.3828 radius 5.0 5.0 10.0 sphere 1  
    0101: actor $PLAYER_ACTOR stopped_near_point -90.6573 -1168.6031 1.4194 radius 5.0 5.0 10.0 sphere 1   
    0101: actor $PLAYER_ACTOR stopped_near_point 1004.3989 -939.2778 41.1797 radius 5.0 5.0 10.0 sphere 1    
    0101: actor $PLAYER_ACTOR stopped_near_point 1381.3602 457.1957 18.9308 radius 5.0 5.0 10.0 sphere 1   
    0101: actor $PLAYER_ACTOR stopped_near_point 653.2028 -564.5419 15.3359 radius 5.0 5.0 10.0 sphere 1   
    0101: actor $PLAYER_ACTOR stopped_near_point 2114.0249 919.91 9.8203 radius 5.0 5.0 10.0 sphere 1   
    0101: actor $PLAYER_ACTOR stopped_near_point 2639.259 1106.2655 9.8203 radius 5.0 5.0 10.0 sphere 1
then
say "/fill 200"
wait 300
0B75: samp get_chat_string 99 text_to 5@ prefix_to 6@ color_to 7@ prefix_color_to 8@
      if 0AD4: 5@ = scan_string 5@ format "На данный момент вы можете заправить эту машину не больше чем на %d " 9@ //IF and SET
      then
      say "/fill %d" 9@
      else
      0AF8: samp add_message_to_chat "Ошибка: транспорт не заправляется!" color 0xFFFFFF
      end                                                                
end     
end

while true
:2
wait 0
alloc 5@ 128
if or
    0101: actor $PLAYER_ACTOR stopped_near_point 2202.623 2473.468 9.8203 radius 5.0 5.0 10.0 sphere 1
    0101: actor $PLAYER_ACTOR stopped_near_point 1597.917 2199.3884 9.8203 radius 5.0 5.0 10.0 sphere 1
    0101: actor $PLAYER_ACTOR stopped_near_point 612.092 1695.0056 5.9922 radius 5.0 5.0 10.0 sphere 1
    0101: actor $PLAYER_ACTOR stopped_near_point 69.0858 1213.8926 17.8122 radius 5.0 5.0 10.0 sphere 1
    0101: actor $PLAYER_ACTOR stopped_near_point -1328.4045 2677.4312 49.0625 radius 5.0 5.0 10.0 sphere 1
    0101: actor $PLAYER_ACTOR stopped_near_point -1470.9431 1863.6451 31.6328 radius 5.0 5.0 10.0 sphere 1
    0101: actor $PLAYER_ACTOR stopped_near_point -2407.8838 976.7697 44.2969 radius 5.0 5.0 10.0 sphere 1
    0101: actor $PLAYER_ACTOR stopped_near_point -2024.5452 156.8622 27.8359 radius 5.0 5.0 10.0 sphere 1
then
say "/fill 200"
wait 300
0B75: samp get_chat_string 99 text_to 5@ prefix_to 6@ color_to 7@ prefix_color_to 8@   
      if 0AD4: 5@ = scan_string 5@ format "На данный момент вы можете заправить эту машину не больше чем на %d " 9@ //IF and SET 
      then
      say "/fill %d" 9@
      else
      0AF8: samp add_message_to_chat "Ошибка: транспорт не заправляется!" color 0xFFFFFF
      end   
                                                              
end     
end

while true
:3
wait 0
alloc 5@ 128
if or
    0101: actor $PLAYER_ACTOR stopped_near_point -1674.9954 414.2005 6.1797 radius 5.0 5.0 10.0 sphere 1
    0101: actor $PLAYER_ACTOR stopped_near_point -2249.7263 -2558.8235 30.9051 radius 5.0 5.0 10.0 sphere 1
    0101: actor $PLAYER_ACTOR stopped_near_point -1606.6632 -2713.7341 47.5335 radius 5.0 5.0 10.0 sphere 1
    0101: actor $PLAYER_ACTOR stopped_near_point 2146.3777 2748.0146 9.8203 radius 5.0 5.0 10.0 sphere 1
then
say "/fill 200"
wait 300
0B75: samp get_chat_string 99 text_to 5@ prefix_to 6@ color_to 7@ prefix_color_to 8@     
      if 0AD4: 5@ = scan_string 5@ format "На данный момент вы можете заправить эту машину не больше чем на %d " 9@ //IF and SET 
      then
      say "/fill %d" 9@
      else
      0AF8: samp add_message_to_chat "Ошибка: транспорт не заправляется!" color 0xFFFFFF
      end   
                                                                
end
end
 

Niko

Известный
Проверенный
230
268
Ребята, я как понял что опкод 0A9A: не умеет создавать папки, как можно просто создать папку?
 

Vovich

HOT
Проверенный
717
197
Что не так? почему не получаеться телепортировать игрока к себе?
Код:
{$CLEO .cs}
{$INCLUDE SF}
0000:
repeat
wait 150
until 0afa:
0B34: samp register_client_command "ghere" to_label @ghere
chatmsg "[ghere]:{FFFFFF} Для активации используйте - {FFCC33}/ghere [id]" 16763955
alloc 0@ 128
alloc 15@ 128
alloc 16@ 128
alloc 17@ 128
alloc 1@ 128
while true
wait 0
if 22@ == 1
then
0B20: samp 1@ = actor_handle_by_samp_player_id 0@
00A0: store_actor 1@ position_to 15@ 16@ 17@
call @ghere_2 3 15@ 16@ 17@
22@ = 0
end
end

:ghere
0B35: samp 0@ = get_last_command_params
22@ = 1
SAMP.CmdRet()

:ghere_2
3@ = SAMP.GetSAMPPlayerIDByActorHandle($PLAYER_ACTOR)
3@ = SAMP.GetPlayerStruct(3@)
3@ += 201
0AC8: 4@ = allocate_memory_size 63
0C10: memcpy destination 4@ source 3@ size 63
0C0D: struct 4@ offset 24 size 4 = 0@
0C0D: struct 4@ offset 28 size 4 = 1@
0C0D: struct 4@ offset 32 size 4 = 2@
0B3D: raknet 5@ = new_bit_stream
0B40: raknet bit_stream 5@ write PACKET_VEHICLE_SYNC type BS_TYPE_BYTE size 1
0B40: raknet bit_stream 5@ write 4@ type BS_TYPE_ARRAY size 63
0B8B: raknet send bit_stream 5@
0B3E: raknet delete_bit_stream 5@
0AC9: free_allocated_memory 4@
0AB2: ret 0
 

Sire Like

Blanche Bier
Друг
487
232
Привет. Значит пришла идея сделать fake мед.справку, делал по принципу паспорта. Паспорт то работает а вот мед.справка крашит игру моментально.


Вот код
{$CLEO .cs}
0000:
wait 0
thread "001C: $CURRENT_MONTH_DAY > $GYM_MONTH_DAY_WHEN_LIMIT_REACHED (int)"
0662: "Fake /ref for YSL"
gosub @setting


:1
wait 0
if
0ADC: test_cheat 10@
jf @1
gosub @setting
0AF8: "%s показал(а) %s справку о текущем состоянии здоровья" 0xffdd90ff 2@ 2@
0af8: "[==================] Справка о состоянии здоровья %s [==================]" 0xffff00 2@
0af8: " Наркозависимость: %d" 0@ 0xffffff
0af8: " Никотинозависимость: %d" 1@ 0xffffff
0af8: "[==================] Справка о состоянии здоровья %s [==================]" 0xffff00 2@
jump @1

:setting
0AF0: 0@ = get_int_from_ini_file "cleo\INI\fake_ref.ini" section "setting" key "Наркозависимость"
0AF0: 1@ = get_int_from_ini_file "cleo\INI\fake_ref.ini" section "setting" key "Никотинозависимость"
0AF4: 2@ = read_string_from_ini_file "cleo\INI\fake_ref.ini" section "setting" key "Ник"
0AF4: 10@ = read_string_from_ini_file "cleo\INI\fake_ref.ini" section "setting" key "Активация"
return

hex
0af9