Функция в SCM функах есть.Спс, думаю будет работать.))
А как определить, есть ли чекпоинт (красный круг) в зоне прорисовки (не по всей карте)?
Функция в SCM функах есть.Спс, думаю будет работать.))
А как определить, есть ли чекпоинт (красный круг) в зоне прорисовки (не по всей карте)?
{$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
http://blasthack.net/threads/7303/ Отлавливаешь и узнаешь как изменятьможете помочь, как изменять параметры byteCamMode (AimSyncData)?
Сделайте пожалуйста в этом клео кнопку активации на caps lock (20).Буду очень благодарен!
Это не стол заказов.Сделайте пожалуйста в этом клео кнопку активации на caps lock (20).Буду очень благодарен!
Ребята, я как понял что опкод 0A9A: не умеет создавать папки, как можно просто создать папку?
0AE5: create_directory "CLEO\Xyu" //IF and SET
Спасибо большое, то что нужно.PHP:0AE5: create_directory "CLEO\Xyu" //IF and SET
Этот опкод создаёт папку.
Что не так? почему не получаеться телепортировать игрока к себе?
Код:{$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
Выделение памяти alloc? Или как выделить?:help::help:А где память выделенная для строк?