Follow along with the video below to see how to install our site as a web app on your home screen.
Примечание: This feature currently requires accessing the site using the built-in Safari browser.
туда егоПосмотреть вложение 32673 го я тебя научу пользоваться Посмотреть вложение 32674
пжпжпж
ffi.cdef[[
typedef unsigned long DWORD;
typedef DWORD( __thiscall* FindHudElement_t )( void*, const char* );
typedef void( __thiscall* ClearDeathNotices_t )( void* );
]]
local offsets =
{
CHud = 0,
FindHudElement = 0,
ClearDeathNotices = 0
}
-- find CHud
local CHud = client.find_pattern( "client.dll", "B9 ? ? ? ? E8 ? ? ? ? 8B 5D 08" );
if( CHud == nil ) then
client.notify( "[ERROR] Failed to find CHud" );
client.unload_script( client.get_script_name( ) );
return;
end
offsets.CHud = ffi.cast( "uintptr_t**", CHud + 1 )[ 0 ];
local FindHudElement_func = client.find_pattern( "client.dll", "55 8B EC 53 8B 5D 08 56 57 8B F9 33 F6 39 77 28" );
if( FindHudElement_func == nil ) then
client.notify( "[ERROR] Failed to find FindHudElement" );
client.unload_script( client.get_script_name( ) );
return;
end
offsets.FindHudElement = ffi.cast( "FindHudElement_t", FindHudElement_func );
local ClearDeathNotices_func = client.find_pattern( "client.dll", "55 8B EC 83 EC 0C 53 56 8B 71 58" );
if( ClearDeathNotices_func == nil ) then
client.notify( "[ERROR] Failed to find ClearDeathNotices" );
client.unload_script( client.get_script_name( ) );
return;
end
offsets.ClearDeathNotices = ffi.cast( "ClearDeathNotices_t", ClearDeathNotices_func );
local function FindHudElement( hudelement )
return offsets.FindHudElement( offsets.CHud, hudelement );
end
local function ClearDeathNotices( element )
if( not engine.is_in_game( ) or not engine.is_connected( ) or entitylist.get_local_player( ) == nil ) then return end;
offsets.ClearDeathNotices( ffi.cast( "void*", element - 20 ) );
end
local deathnotice = 0;
local backuptime = -1;
local time = ui.add_slider_float( "Preserve Time", "preservekillfeed_time", 0.0, 20.0, 1.5 );
local click_to_clear_notices = ui.add_check_box("Clear Notices", "preservekillfeed_click_to_clear_notices", false)
local function Paint( )
if( engine.is_in_game( ) and engine.is_connected( ) and entitylist.get_local_player( ) ~= nil ) then
if( deathnotice == 0 ) then
deathnotice = FindHudElement( "CCSGO_HudDeathNotice" );
if( backuptime == -1 ) then
backuptime = ffi.cast( "float*", deathnotice + 80 )[ 0 ];
end
else
ffi.cast( "float*", deathnotice + 80 )[ 0 ] = time:get_value( );
end
else
deathnotice = 0;
end
if click_to_clear_notices:get_value() then
ClearDeathNotices( deathnotice );
click_to_clear_notices:set_value(false)
end
end
client.register_callback( "paint", Paint );
client.register_callback("round_start", function() -- update
ClearDeathNotices( deathnotice );
deathnotice = 0;
end)
local function Unload( )
if( deathnotice ~= 0 and backuptime ~= -1 ) then
ffi.cast( "float*", deathnotice + 80 )[ 0 ] = backuptime;
end
end
client.register_callback( "unload", Unload );
окC тебя отсосLua:ffi.cdef[[ typedef unsigned long DWORD; typedef DWORD( __thiscall* FindHudElement_t )( void*, const char* ); typedef void( __thiscall* ClearDeathNotices_t )( void* ); ]] local offsets = { CHud = 0, FindHudElement = 0, ClearDeathNotices = 0 } -- find CHud local CHud = client.find_pattern( "client.dll", "B9 ? ? ? ? E8 ? ? ? ? 8B 5D 08" ); if( CHud == nil ) then client.notify( "[ERROR] Failed to find CHud" ); client.unload_script( client.get_script_name( ) ); return; end offsets.CHud = ffi.cast( "uintptr_t**", CHud + 1 )[ 0 ]; local FindHudElement_func = client.find_pattern( "client.dll", "55 8B EC 53 8B 5D 08 56 57 8B F9 33 F6 39 77 28" ); if( FindHudElement_func == nil ) then client.notify( "[ERROR] Failed to find FindHudElement" ); client.unload_script( client.get_script_name( ) ); return; end offsets.FindHudElement = ffi.cast( "FindHudElement_t", FindHudElement_func ); local ClearDeathNotices_func = client.find_pattern( "client.dll", "55 8B EC 83 EC 0C 53 56 8B 71 58" ); if( ClearDeathNotices_func == nil ) then client.notify( "[ERROR] Failed to find ClearDeathNotices" ); client.unload_script( client.get_script_name( ) ); return; end offsets.ClearDeathNotices = ffi.cast( "ClearDeathNotices_t", ClearDeathNotices_func ); local function FindHudElement( hudelement ) return offsets.FindHudElement( offsets.CHud, hudelement ); end local function ClearDeathNotices( element ) if( not engine.is_in_game( ) or not engine.is_connected( ) or entitylist.get_local_player( ) == nil ) then return end; offsets.ClearDeathNotices( ffi.cast( "void*", element - 20 ) ); end local deathnotice = 0; local backuptime = -1; local time = ui.add_slider_float( "Preserve Time", "preservekillfeed_time", 0.0, 20.0, 1.5 ); local click_to_clear_notices = ui.add_check_box("Clear Notices", "preservekillfeed_click_to_clear_notices", false) local function Paint( ) if( engine.is_in_game( ) and engine.is_connected( ) and entitylist.get_local_player( ) ~= nil ) then if( deathnotice == 0 ) then deathnotice = FindHudElement( "CCSGO_HudDeathNotice" ); if( backuptime == -1 ) then backuptime = ffi.cast( "float*", deathnotice + 80 )[ 0 ]; end else ffi.cast( "float*", deathnotice + 80 )[ 0 ] = time:get_value( ); end else deathnotice = 0; end if click_to_clear_notices:get_value() then ClearDeathNotices( deathnotice ); click_to_clear_notices:set_value(false) end end client.register_callback( "paint", Paint ); client.register_callback("round_start", function() -- update ClearDeathNotices( deathnotice ); deathnotice = 0; end) local function Unload( ) if( deathnotice ~= 0 and backuptime ~= -1 ) then ffi.cast( "float*", deathnotice + 80 )[ 0 ] = backuptime; end end client.register_callback( "unload", Unload );