Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- void sub_1000379B()
- {
- SFSAMP *SAMP; // eax
- const char *v1; // edi
- struct SFSAMP *v2; // eax
- struct SFSAMP *v3; // eax
- struct SFRender *Render; // eax
- struct SFRakNet *RakNet; // eax
- SFGame *v6; // eax
- SFSAMP *v7; // eax
- SFSAMP *v8; // eax
- stMiscInfo *v9; // eax
- SFGame *v10; // eax
- SFGame *v11; // eax
- int j; // edi
- SFSAMP *v13; // eax
- struct stSAMP *v14; // eax
- SFSAMP *v15; // eax
- SFSAMP *v16; // eax
- stMiscInfo *Misc; // eax
- SFGame *Game; // eax
- int i; // edi
- SFSAMP *v20; // eax
- struct stSAMP *Info; // eax
- SFSAMP *v22; // eax
- struct stSAMP *v23; // eax
- struct stTextdraw *Textdraw; // eax
- const char *v25; // eax
- bool v26; // cf
- SFSAMP *v27; // eax
- stMiscInfo *v28; // eax
- SFSAMP *v29; // eax
- stMiscInfo *v30; // eax
- _DWORD v31[5]; // [esp-10h] [ebp-68h] BYREF
- int v32; // [esp+4h] [ebp-54h] BYREF
- int v33; // [esp+8h] [ebp-50h] BYREF
- int v34; // [esp+Ch] [ebp-4Ch]
- int v35; // [esp+10h] [ebp-48h]
- int v36; // [esp+14h] [ebp-44h]
- int v37; // [esp+18h] [ebp-40h]
- int v38; // [esp+1Ch] [ebp-3Ch]
- unsigned __int16 v39; // [esp+20h] [ebp-38h]
- char v40[24]; // [esp+2Ch] [ebp-2Ch] BYREF
- int *v41; // [esp+44h] [ebp-14h]
- int *v42; // [esp+48h] [ebp-10h]
- int v43; // [esp+54h] [ebp-4h]
- if ( !byte_10020884 )
- {
- if ( !GAME )
- return;
- if ( (*(int (__thiscall **)(struct CGame *))(*(_DWORD *)GAME + 208))(GAME) != 9 )
- return;
- SAMP = SAMPFUNCS::getSAMP((SAMPFUNCS *)dword_10020880);
- if ( !SFSAMP::IsInitialized(SAMP) )
- return;
- v1 = (const char *)&dword_10020010;
- sub_1000367E(&v33, &dword_10020010, ".sf");
- if ( !(unsigned __int8)SAMPFUNCS::isPluginLoaded(dword_10020880, v33, v34, v35, v36, v37, v38) )
- return;
- if ( (unsigned int)dword_10020024 >= 0x10 )
- v1 = (const char *)dword_10020010;
- SAMPFUNCS::Log(
- (SAMPFUNCS *)dword_10020880,
- "{109C00}[loaded] {FFFFFF}- {D5B200}%s {FFFFFF}| Version: {CD0000}%.1f {FFFFFF}[by Artyom Ivanov]",
- v1,
- *(double *)&qword_10020008);
- v38 = (int)sub_100019D7;
- v42 = &v32;
- sub_10001138("htd");
- v43 = 0;
- v2 = SAMPFUNCS::getSAMP((SAMPFUNCS *)dword_10020880);
- v43 = -1;
- SFSAMP::registerChatCommand(v2);
- v42 = &v33;
- sub_10001138("/htd cmd - Информация о параметрах команды");
- v43 = 1;
- v41 = v31;
- sub_10001138("htd");
- LOBYTE(v43) = 2;
- v3 = SAMPFUNCS::getSAMP((SAMPFUNCS *)dword_10020880);
- v43 = -1;
- SFSAMP::setChatCommandDescription(v3);
- v38 = (int)sub_10001D9F;
- sub_10001138("htd");
- SAMPFUNCS::registerConsoleCommand(dword_10020880, v32, v33, v34, v35, v36, v37, v38);
- v41 = &v33;
- sub_10001138("/htd cmd console - Информация о параметрах команды");
- v43 = 3;
- sub_10001138("htd");
- v43 = -1;
- SAMPFUNCS::setConsoleCommandDescription(
- dword_10020880,
- v31[0],
- v31[1],
- v31[2],
- v31[3],
- v31[4],
- v32,
- v33,
- v34,
- v35,
- v36,
- v37,
- v38);
- v38 = (int)sub_10003C9B;
- v37 = 17;
- Render = SAMPFUNCS::getRender((SAMPFUNCS *)dword_10020880);
- SFRender::registerD3DCallback(Render);
- v38 = (int)sub_100032C3;
- v37 = 2;
- RakNet = SAMPFUNCS::getRakNet((SAMPFUNCS *)dword_10020880);
- SFRakNet::registerRakNetCallback(RakNet);
- byte_10020884 = 1;
- }
- if ( byte_10020873 && GetTickCount() - dword_10020878 > dword_10020000 )
- {
- byte_10020873 = 0;
- sub_10002DA1(dword_1002087C);
- }
- if ( !byte_10020870 || (v6 = SAMPFUNCS::getGame((SAMPFUNCS *)dword_10020880), SFGame::isGTAMenuActive(v6)) )
- {
- if ( byte_10020875 )
- {
- v15 = SAMPFUNCS::getSAMP((SAMPFUNCS *)dword_10020880);
- if ( !*(_DWORD *)((char *)SFSAMP::getMisc(v15) + 85) && byte_10020871 )
- {
- v38 = 1;
- v16 = SAMPFUNCS::getSAMP((SAMPFUNCS *)dword_10020880);
- Misc = SFSAMP::getMisc(v16);
- stMiscInfo::ToggleCursor(Misc, v39);
- }
- v38 = 1;
- Game = SAMPFUNCS::getGame((SAMPFUNCS *)dword_10020880);
- if ( SFGame::isKeyPressed(Game, v39) )
- {
- for ( i = 0; i < 0x8000; ++i )
- {
- v38 = (unsigned __int16)i;
- v42 = (int *)(unsigned __int16)i;
- v20 = SAMPFUNCS::getSAMP((SAMPFUNCS *)dword_10020880);
- Info = SFSAMP::getInfo(v20);
- if ( stTextdrawPool::IsExists(*(stTextdrawPool **)(*(_DWORD *)((char *)Info + 973) + 16), v39)
- && (unsigned __int8)sub_10002614(i, 1) )
- {
- v38 = (int)v42;
- v22 = SAMPFUNCS::getSAMP((SAMPFUNCS *)dword_10020880);
- v23 = SFSAMP::getInfo(v22);
- Textdraw = stTextdrawPool::GetTextdraw(*(stTextdrawPool **)(*(_DWORD *)((char *)v23 + 973) + 16), v39);
- sub_10001138(Textdraw);
- v25 = (const char *)sub_10002042(v40, v33, v34, v35, v36, v37, v38);
- v26 = *((_DWORD *)v25 + 5) < 0x10u;
- v43 = 4;
- if ( !v26 )
- v25 = *(const char **)v25;
- SAMPFUNCS::Log((SAMPFUNCS *)dword_10020880, "{C4C4C4}[{C7BA08}HideTextDraws{C4C4C4}]: %s", v25);
- v43 = -1;
- sub_100016E3(v40, 1, 0);
- }
- }
- sub_10002175(2);
- v38 = 0;
- byte_10020875 = 0;
- byte_10020871 = 0;
- v27 = SAMPFUNCS::getSAMP((SAMPFUNCS *)dword_10020880);
- v28 = SFSAMP::getMisc(v27);
- stMiscInfo::ToggleCursor(v28, v39);
- }
- }
- else
- {
- if ( byte_10020871 )
- {
- v38 = 0;
- byte_10020871 = 0;
- v29 = SAMPFUNCS::getSAMP((SAMPFUNCS *)dword_10020880);
- v30 = SFSAMP::getMisc(v29);
- stMiscInfo::ToggleCursor(v30, v39);
- }
- if ( byte_10020872 )
- {
- byte_10020870 = 0;
- byte_10020872 = 0;
- }
- }
- }
- else
- {
- v7 = SAMPFUNCS::getSAMP((SAMPFUNCS *)dword_10020880);
- if ( !*(_DWORD *)((char *)SFSAMP::getMisc(v7) + 85) )
- {
- v38 = 1;
- byte_10020871 = 1;
- v8 = SAMPFUNCS::getSAMP((SAMPFUNCS *)dword_10020880);
- v9 = SFSAMP::getMisc(v8);
- stMiscInfo::ToggleCursor(v9, v39);
- }
- v38 = 1;
- v10 = SAMPFUNCS::getGame((SAMPFUNCS *)dword_10020880);
- if ( SFGame::isKeyPressed(v10, v39) )
- {
- sub_1000305C(dword_1002087C);
- byte_10020872 = 1;
- }
- v38 = 1;
- v11 = SAMPFUNCS::getGame((SAMPFUNCS *)dword_10020880);
- if ( SFGame::isKeyDown(v11, v39) )
- {
- sub_10003170(dword_1002087C);
- }
- else if ( byte_10020872 )
- {
- byte_10020870 = 0;
- byte_10020872 = 0;
- if ( (unsigned __int8)sub_10002325(1) )
- {
- for ( j = 0; j < 0x8000; ++j )
- {
- v38 = j;
- v13 = SAMPFUNCS::getSAMP((SAMPFUNCS *)dword_10020880);
- v14 = SFSAMP::getInfo(v13);
- if ( stTextdrawPool::IsExists(*(stTextdrawPool **)(*(_DWORD *)((char *)v14 + 973) + 16), v39) )
- {
- if ( (unsigned __int8)sub_10002614(j, 0) )
- sub_1000233D(j);
- }
- }
- sub_10002175(2);
- }
- }
- }
- }
Add Comment
Please, Sign In to add comment