-
Автор темы
- #1
Обратите внимание, пользователь заблокирован на форуме. Не рекомендуется проводить сделки.
Code:
Код:
void Spoof(CBaseEntity* pLocal, int Coin, int Music, int Level, int CommendsLeader, int CommendsTeacher, int CommendsFriendly)
{
//|__m_nActiveCoinRank__________ -> 0x4838
// | __m_nMusicID________________ -> 0x493C
// | __m_nPersonaDataPublicLevel -> 0x4A40
// | __m_nPersonaDataPublicCommendsLeader -> 0x4B44
// | __m_nPersonaDataPublicCommendsTeacher -> 0x4C48
// | __m_nPersonaDataPublicCommendsFriendly -> 0x4D4C
static DWORD DT_CSPlayerResource = NULL;
if (DT_CSPlayerResource == NULL)
DT_CSPlayerResource = PatternSearch("client.dll", (PBYTE)"\x55\x8B\xEC\x83\xE4\xF8\x81\xEC\x00\x00\x00\x00\x83\x3D\x00\x00\x00\x00\x00\x53\x56\x8B\xD9\xC7", "xxxxxxxx????xx?????xxxxx") + 0xE;
if (!DT_CSPlayerResource)
return;
DWORD ptrResource = **(DWORD**)DT_CSPlayerResource;
DWORD m_nActiveCoinRank = (DWORD)ptrResource + 0x4838 + (pLocal->GetIndex() * 4);
DWORD m_nMusicID = (DWORD)ptrResource + 0x493C + (pLocal->GetIndex() * 4);
DWORD m_nPersonaDataPublicLevel = (DWORD)ptrResource + 0x4A40 + (pLocal->GetIndex() * 4);
DWORD m_nPersonaDataPublicCommendsLeader = (DWORD)ptrResource + 0x4B44 + (pLocal->GetIndex() * 4);
DWORD m_nPersonaDataPublicCommendsTeacher = (DWORD)ptrResource + 0x4C48 + (pLocal->GetIndex() * 4);
DWORD m_nPersonaDataPublicCommendsFriendly = (DWORD)ptrResource + 0x4D4C + (pLocal->GetIndex() * 4);
if (Coin > 0) *(PINT)((DWORD)m_nActiveCoinRank) = Coin;
if (Music > 0) *(PINT)((DWORD)m_nMusicID) = Music;
if (Level > 0) *(PINT)((DWORD)m_nPersonaDataPublicLevel) = Level;
if (CommendsLeader > 0) *(PINT)((DWORD)m_nPersonaDataPublicCommendsLeader) = CommendsLeader;
if (CommendsTeacher > 0) *(PINT)((DWORD)m_nPersonaDataPublicCommendsTeacher) = CommendsTeacher;
if (CommendsFriendly > 0) *(PINT)((DWORD)m_nPersonaDataPublicCommendsFriendly) = CommendsFriendly;
}