ShadowBroker
Известный
- 110
- 27
спасибо большоеCLEO:{$CLEO} {$NOSOURCE} 1337: make_script_private TRUE WHILE NOT SAMP.Available() WAIT 500 END 0B34: samp register_client_command "test" to_label @cmdTEST 0BDE: pause_thread 0 :cmdTest FOR 0@ = 0 TO 1001 | STEP = 1 | IF 0B23: samp is_player_connected 0@ THEN 0B20: samp 1@ = actor_handle_by_samp_player_id 0@ IF 056D: actor 1@ defined THEN IF 02CB: actor 1@ bounding_sphere_visible THEN 04C4: store_coords_to 5@ 6@ 7@ from_actor 1@ with_offset 0.0 0.0 0.8 0B55: convert_3D_coords 5@ 6@ 7@ to_screen 5@ 6@ alloc 3@ 128 0B36: samp 2@ = get_player_nickname 0@ 0AD3: 3@ = format "Player: %d" 0@ 0B44: samp 4@ = create_3d_text 3@ color 0xFFFFFFFF position 0.0 0.0 0.2 { Over the player } view_distance 50.0 show_behind_walls true attached_to_player 0@ { Player ID } attached_to_vehicle -1 free 3@ END END END END SAMP.CmdRet()
Какой опкод отвечает за игровой чат ?. Хочу сделать чтобы скрипт не срабатывал при вводе в чат
0B21: samp is_chat_opened
CLEO:0B21: samp is_chat_opened
Это опкод samp funcs'а ? Где их брать ?
Спасибо1. Скачай sf_5_3_3_sdk.zip из этой темы
2. Открой архив
3. Открой папку "sa" (( Sanny Builder 3\data\sa ))
4. Файлы из папки "SB data" что в архиве перетащи в папку "sa" с заменой
{$CLEO}
{$INCLUDE SF}
0000:
repeat
wait 0
until Samp.Available()
0BE3: raknet setup_incoming_rpc_hook @hook
0B6D: render 0@ = create_font "Arial" height 14 flags 5
alloc 3@ 128
4@ = -1
0AC8: 14@ = allocate_memory_size 256
0AC8: 15@ = allocate_memory_size 256
while true
wait 0
if 4@ >= 0
then
0B6F: render font 0@ draw_text 3@ pos 150 500 color 0xFFFFFFFF
if 32@ > 1000
then
32@ = 0
format 3@ "Dliv: %d" 4@
4@ -= 1
end
end
end
:hook
0BE5: raknet 10@ = get_hook_param PARAM_PACKETID
if 10@ == RPC_SCRCLIENTMESSAGE
then
0BE5: raknet 11@ = get_hook_param PARAM_BITSTREAM
0BE7: raknet 12@ = bit_stream_read 11@ type BS_TYPE_INT
0BE7: raknet 13@ = bit_stream_read 11@ type BS_TYPE_INT
0BE8: raknet bit_stream 11@ read_array 14@ size 13@
0C0D: struct 14@ offset 13@ size 1 = 0
if 0C29: 15@ = stristr string1 14@ string2 "У вас осталось 2 минуты"
then
4@ = 15
format 3@ "Dliv: %d" 4@
32@ = 0
end
end
0BE0: raknet hook_ret true
02CE: 16@ = ground_z_at 2@ 3@ 4@Как отправить персонажа на землю? Если координаты выше чем земля?
// This file was decompiled using SASCM.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007
{$CLEO .cs}
//-------------MAIN---------------
0000: NOP
:Noname_2
wait 0
0ADC: test_cheat "wh"
else_jump @Noname_2
call @Noname_29 0
:Noname_29
0AA2: 30@ = load_library "SAMP.DLL" // IF and SET
0A8E: 1@ = 30@ + 457971 // int
0A8C: write_memory 1@ size 6 value -1869574000 virtual_protect 1
0A8E: 2@ = 30@ + 458004 // int
0A8C: write_memory 2@ size 6 value -1869574000 virtual_protect 1
0A8E: 3@ = 30@ + 458280 // int
0A8C: write_memory 3@ size 2 value 37008 virtual_protect 1
0A8E: 4@ = 30@ + 462648 // int
0A8C: write_memory 4@ size 2 value 37008 virtual_protect 1
0A8E: 5@ = 30@ + 462372 // int
0A8C: write_memory 5@ size 6 value -1869574000 virtual_protect 1
0AA3: free_library 30@
ret 0
0AA2: 30@ = load_library "SAMP.DLL" // IF and SET
0A8E: 1@ = 30@ + 457971 // int
0A8C: write_memory 1@ size 4 value 24216591 virtual_protect 1
0A8E: 2@ = 1@ + 4 // int
0A8C: write_memory 2@ size 2 value 0 virtual_protect 1
0A8E: 3@ = 30@ + 458004 // int
0A8C: write_memory 3@ size 4 value 22053903 virtual_protect 1
0A8E: 4@ = 3@ + 4 // int
0A8C: write_memory 4@ size 2 value 0 virtual_protect 1
0A8E: 5@ = 30@ + 458280 // int
0A8C: write_memory 5@ size 2 value 16500 virtual_protect 1
0A8E: 6@ = 30@ + 462648 // int
0A8C: write_memory 6@ size 2 value 24948 virtual_protect 1
0A8E: 7@ = 30@ + 462372 // int
0A8C: write_memory 7@ size 4 value 24218127 virtual_protect 1
0A8E: 8@ = 7@ + 4 // int
0A8C: write_memory 8@ size 2 value 0 virtual_protect 1
0AA3: free_library 30@
ret 0
Можете исправить код и дописать проверку на открыл ли чат или нет.
Заранее спс
Код:// This file was decompiled using SASCM.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007 {$CLEO .cs} //-------------MAIN--------------- 0000: NOP :Noname_2 wait 0 0ADC: test_cheat "wh" else_jump @Noname_2 call @Noname_29 0 :Noname_29 0AA2: 30@ = load_library "SAMP.DLL" // IF and SET 0A8E: 1@ = 30@ + 457971 // int 0A8C: write_memory 1@ size 6 value -1869574000 virtual_protect 1 0A8E: 2@ = 30@ + 458004 // int 0A8C: write_memory 2@ size 6 value -1869574000 virtual_protect 1 0A8E: 3@ = 30@ + 458280 // int 0A8C: write_memory 3@ size 2 value 37008 virtual_protect 1 0A8E: 4@ = 30@ + 462648 // int 0A8C: write_memory 4@ size 2 value 37008 virtual_protect 1 0A8E: 5@ = 30@ + 462372 // int 0A8C: write_memory 5@ size 6 value -1869574000 virtual_protect 1 0AA3: free_library 30@ ret 0 0AA2: 30@ = load_library "SAMP.DLL" // IF and SET 0A8E: 1@ = 30@ + 457971 // int 0A8C: write_memory 1@ size 4 value 24216591 virtual_protect 1 0A8E: 2@ = 1@ + 4 // int 0A8C: write_memory 2@ size 2 value 0 virtual_protect 1 0A8E: 3@ = 30@ + 458004 // int 0A8C: write_memory 3@ size 4 value 22053903 virtual_protect 1 0A8E: 4@ = 3@ + 4 // int 0A8C: write_memory 4@ size 2 value 0 virtual_protect 1 0A8E: 5@ = 30@ + 458280 // int 0A8C: write_memory 5@ size 2 value 16500 virtual_protect 1 0A8E: 6@ = 30@ + 462648 // int 0A8C: write_memory 6@ size 2 value 24948 virtual_protect 1 0A8E: 7@ = 30@ + 462372 // int 0A8C: write_memory 7@ size 4 value 24218127 virtual_protect 1 0A8E: 8@ = 7@ + 4 // int 0A8C: write_memory 8@ size 2 value 0 virtual_protect 1 0AA3: free_library 30@ ret 0
// This file was decompiled using SASCM.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007
{$CLEO .cs}
//-------------MAIN---------------
0000: NOP
while not Samp.Available()
wait 0
end
while true
wait 0
if and
8B21: not samp is_chat_opened
8B4C: not samp is_dialog_active -1
0ADC: test_cheat "wh"
then
call @WH 0
end
end
:WH
0AA2: 30@ = load_library "SAMP.DLL" // IF and SET
0A8E: 1@ = 30@ + 457971 // int
0A8C: write_memory 1@ size 6 value -1869574000 virtual_protect 1
0A8E: 2@ = 30@ + 458004 // int
0A8C: write_memory 2@ size 6 value -1869574000 virtual_protect 1
0A8E: 3@ = 30@ + 458280 // int
0A8C: write_memory 3@ size 2 value 37008 virtual_protect 1
0A8E: 4@ = 30@ + 462648 // int
0A8C: write_memory 4@ size 2 value 37008 virtual_protect 1
0A8E: 5@ = 30@ + 462372 // int
0A8C: write_memory 5@ size 6 value -1869574000 virtual_protect 1
0AA3: free_library 30@
ret 0
0AA2: 30@ = load_library "SAMP.DLL" // IF and SET
0A8E: 1@ = 30@ + 457971 // int
0A8C: write_memory 1@ size 4 value 24216591 virtual_protect 1
0A8E: 2@ = 1@ + 4 // int
0A8C: write_memory 2@ size 2 value 0 virtual_protect 1
0A8E: 3@ = 30@ + 458004 // int
0A8C: write_memory 3@ size 4 value 22053903 virtual_protect 1
0A8E: 4@ = 3@ + 4 // int
0A8C: write_memory 4@ size 2 value 0 virtual_protect 1
0A8E: 5@ = 30@ + 458280 // int
0A8C: write_memory 5@ size 2 value 16500 virtual_protect 1
0A8E: 6@ = 30@ + 462648 // int
0A8C: write_memory 6@ size 2 value 24948 virtual_protect 1
0A8E: 7@ = 30@ + 462372 // int
0A8C: write_memory 7@ size 4 value 24218127 virtual_protect 1
0A8E: 8@ = 7@ + 4 // int
0A8C: write_memory 8@ size 2 value 0 virtual_protect 1
0AA3: free_library 30@
ret 0
И вообще похуй что ты не сможешь его выключить?CLEO:// This file was decompiled using SASCM.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007 {$CLEO .cs} //-------------MAIN--------------- 0000: NOP while not Samp.Available() wait 0 end while true wait 0 if and 8B21: not samp is_chat_opened 8B4C: not samp is_dialog_active -1 0ADC: test_cheat "wh" then call @WH 0 end end :WH 0AA2: 30@ = load_library "SAMP.DLL" // IF and SET 0A8E: 1@ = 30@ + 457971 // int 0A8C: write_memory 1@ size 6 value -1869574000 virtual_protect 1 0A8E: 2@ = 30@ + 458004 // int 0A8C: write_memory 2@ size 6 value -1869574000 virtual_protect 1 0A8E: 3@ = 30@ + 458280 // int 0A8C: write_memory 3@ size 2 value 37008 virtual_protect 1 0A8E: 4@ = 30@ + 462648 // int 0A8C: write_memory 4@ size 2 value 37008 virtual_protect 1 0A8E: 5@ = 30@ + 462372 // int 0A8C: write_memory 5@ size 6 value -1869574000 virtual_protect 1 0AA3: free_library 30@ ret 0 0AA2: 30@ = load_library "SAMP.DLL" // IF and SET 0A8E: 1@ = 30@ + 457971 // int 0A8C: write_memory 1@ size 4 value 24216591 virtual_protect 1 0A8E: 2@ = 1@ + 4 // int 0A8C: write_memory 2@ size 2 value 0 virtual_protect 1 0A8E: 3@ = 30@ + 458004 // int 0A8C: write_memory 3@ size 4 value 22053903 virtual_protect 1 0A8E: 4@ = 3@ + 4 // int 0A8C: write_memory 4@ size 2 value 0 virtual_protect 1 0A8E: 5@ = 30@ + 458280 // int 0A8C: write_memory 5@ size 2 value 16500 virtual_protect 1 0A8E: 6@ = 30@ + 462648 // int 0A8C: write_memory 6@ size 2 value 24948 virtual_protect 1 0A8E: 7@ = 30@ + 462372 // int 0A8C: write_memory 7@ size 4 value 24218127 virtual_protect 1 0A8E: 8@ = 7@ + 4 // int 0A8C: write_memory 8@ size 2 value 0 virtual_protect 1 0AA3: free_library 30@ ret 0
Спс,а его выключить можно будет после включения?CLEO:// This file was decompiled using SASCM.ini published by Seemann (http://sannybuilder.com/files/SASCM.rar) on 13.10.2007 {$CLEO .cs} //-------------MAIN--------------- 0000: NOP while not Samp.Available() wait 0 end while true wait 0 if and 8B21: not samp is_chat_opened 8B4C: not samp is_dialog_active -1 0ADC: test_cheat "wh" then call @WH 0 end end :WH 0AA2: 30@ = load_library "SAMP.DLL" // IF and SET 0A8E: 1@ = 30@ + 457971 // int 0A8C: write_memory 1@ size 6 value -1869574000 virtual_protect 1 0A8E: 2@ = 30@ + 458004 // int 0A8C: write_memory 2@ size 6 value -1869574000 virtual_protect 1 0A8E: 3@ = 30@ + 458280 // int 0A8C: write_memory 3@ size 2 value 37008 virtual_protect 1 0A8E: 4@ = 30@ + 462648 // int 0A8C: write_memory 4@ size 2 value 37008 virtual_protect 1 0A8E: 5@ = 30@ + 462372 // int 0A8C: write_memory 5@ size 6 value -1869574000 virtual_protect 1 0AA3: free_library 30@ ret 0 0AA2: 30@ = load_library "SAMP.DLL" // IF and SET 0A8E: 1@ = 30@ + 457971 // int 0A8C: write_memory 1@ size 4 value 24216591 virtual_protect 1 0A8E: 2@ = 1@ + 4 // int 0A8C: write_memory 2@ size 2 value 0 virtual_protect 1 0A8E: 3@ = 30@ + 458004 // int 0A8C: write_memory 3@ size 4 value 22053903 virtual_protect 1 0A8E: 4@ = 3@ + 4 // int 0A8C: write_memory 4@ size 2 value 0 virtual_protect 1 0A8E: 5@ = 30@ + 458280 // int 0A8C: write_memory 5@ size 2 value 16500 virtual_protect 1 0A8E: 6@ = 30@ + 462648 // int 0A8C: write_memory 6@ size 2 value 24948 virtual_protect 1 0A8E: 7@ = 30@ + 462372 // int 0A8C: write_memory 7@ size 4 value 24218127 virtual_protect 1 0A8E: 8@ = 7@ + 4 // int 0A8C: write_memory 8@ size 2 value 0 virtual_protect 1 0AA3: free_library 30@ ret 0