
bool pPlayerView = false;
bool display = true;
class Spectator
{
public:
char _0x0000[100];
__int32 Mode;
};
class CLTPlayerClient
{
public:
char _0x0000[40];
Spectator *pSpectator;
};
DWORD CShell = (DWORD)GetModuleHandleA("CShell.dll");
CLTPlayerClient *pPlayer = (CLTPlayerClient *)(CShell + aCLTPlayerClient);
if (pPlayer != NULL)
{
if (GetAsyncKeyState('T') & 1) pPlayerView = !pPlayerView;
if (pPlayerView)
{
pPlayer->pSpectator->Mode = 3;
display = false;
}
else
{
if (!display)
{
pPlayer->pSpectator->Mode = 1;
display = true;
}
}
}


