bool admchecker;
int count = false;
stFontInfo *pFont;
bool CALLBACK Present(CONST RECT *pSourceRect, CONST RECT *pDestRect, HWND hDestWindowOverride,
CONST RGNDATA *pDirtyRegion)
{
if (SUCCEEDED(SF->getRender()->BeginRender()) && admchecker == true)
{
int count = false;
for (int i = 0; i < 1000; i++)
{
for (int x = 0; x < 150; x++)
{
if (SF->getSAMP()->getPlayers()->GetPlayerName(i) == NULL || set.admin[x] == NULL);
break;
if (!strcmp(SF->getSAMP()->getPlayers()->GetPlayerName(i), set.admin[x]))
{
char text[64];
sprintf(text, "%s [ID: %d]", SF->getSAMP()->getPlayers()->GetPlayerName(i), i);
pFont->PrintShadow(1, pPresentParam.BackBufferHeight - 360 + count * 20, D3DCOLOR_XRGB(255, 165, 0), text);
count++;
}
}
}
if (count == false)
pFont->PrintShadow(1, pPresentParam.BackBufferHeight - 45, D3DCOLOR_XRGB(255, 165, 0), "Администраторов в сети нету");
PresentParam.BackBufferHeight - 45, D3DCOLOR_XRGB(255, 165, 0), "Администраторов в сети нету");
SF->getRender()->EndRender();
}
return true;
}
void CALLBACK lol(std::string param)
{
admchecker ^= true;
if(admchecker)
SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0xAA, 0), "Admcheacker ON");
else
SF->getSAMP()->getChat()->AddChatMessage(D3DCOLOR_XRGB(0, 0xAA, 0), "Admcheacker OFF");
}