Соpдаём Триал Версию WallHack'а

  • Автор темы Автор темы >A1RN1kE<
  • Дата начала Дата начала
  • Для просмотра чата и остального функционала вам нужно авторизоваться или пройти регистрацию!
Статус
В этой теме нельзя размещать новые ответы.
A

>A1RN1kE<

Original poster
Добрый день.
В данном гайде я вам расскажу как сделать функцию Трила (т.е делать для ознакомления)
После определенного времени игра будет закрываться.
И так, как всегда предупреждаю возможно будут какие нибудь казусы (из-за разных исходников. Пишем ниже)

Объявляем функцию в классе Menu (если требуется )
Код:
void TrialVersions(LPDIRECT3DDEVICE9 pDevice);
Теперь вставляем эту функцию в cMain.cpp (или любой другой файл):
Код:
float intint;
D3DVIEWPORT9 viewP;
DWORD ScreenCenterX = viewP.Width / 2; 
DWORD ScreenCenterY = viewP.Height / 2;

void cMenu::TrialVersions(LPDIRECT3DDEVICE9 pDevice)
{

pDevice->GetViewport(&viewP);


#define color_box       D3DCOLOR_ARGB(255,0,255,0)
#define color_rec       D3DCOLOR_ARGB(255,255,0,0)
#define color_title     D3DCOLOR_ARGB(255, 000, 255, 255)
#define color_text      D3DCOLOR_ARGB(255,255,0,0)
#define color_number    D3DCOLOR_ARGB(255,255,255,0)


DWORD sizrina_Box = 300;
DWORD visota_Box = 80;


DWORD pos_X = ScreenCenterX + (sizrina_Box / 2) + 100;
DWORD pos_Y = ScreenCenterX + ( visota_Box / 2);


DrawBox(pos_X,pos_Y,sizrina_Box,visota_Box,color_box,pDevice);

font->DrawText(pos_X + (sizrina_Box / 2),pos_Y + 10,color_text,"Добро пожаловать",DT_CENTER|DT_SHADOW);
font->DrawText(pos_X + (sizrina_Box / 2),pos_Y + 25,color_text,"У вас еще      секунд перед тем как ",DT_CENTER|DT_SHADOW);
font->DrawText(pos_X + (sizrina_Box / 2),pos_Y + 40,color_text,"Игра выключится :D",DT_CENTER|DT_SHADOW);

DWORD pos_X_Number = pos_X + 115;
DWORD pos_Y_Number = pos_Y + 25;

intint = intint + 0.013;
if (intint > 0 && intint < 1) 
font->DrawText(pos_X_Number,pos_Y_Number,color_number,"40",DT_CENTER|DT_SHADOW);
else if (intint > 1 && intint < 2) 
font->DrawText(pos_X_Number,pos_Y_Number,color_number,"39",DT_CENTER|DT_SHADOW);
else if (intint > 2 && intint < 3) 
font->DrawText(pos_X_Number,pos_Y_Number,color_number,"38",DT_CENTER|DT_SHADOW);
else if (intint > 3 && intint < 4) 
font->DrawText(pos_X_Number,pos_Y_Number,color_number,"37",DT_CENTER|DT_SHADOW);
else if (intint > 4 && intint < 5) 
font->DrawText(pos_X_Number,pos_Y_Number,color_number,"36",DT_CENTER|DT_SHADOW);
else if (intint > 5 && intint < 6) 
font->DrawText(pos_X_Number,pos_Y_Number,color_number,"35",DT_CENTER|DT_SHADOW);
else if (intint > 6 && intint < 7) 
font->DrawText(pos_X_Number,pos_Y_Number,color_number,"34",DT_CENTER|DT_SHADOW);
else if (intint > 7 && intint < 8) 
font->DrawText(pos_X_Number,pos_Y_Number,color_number,"33",DT_CENTER|DT_SHADOW);
else if (intint > 8 && intint < 9) 
font->DrawText(pos_X_Number,pos_Y_Number,color_number,"32",DT_CENTER|DT_SHADOW);
else if (intint > 9 && intint < 10) 
font->DrawText(pos_X_Number,pos_Y_Number,color_number,"31",DT_CENTER|DT_SHADOW);
else if (intint > 10 && intint < 11)
font->DrawText(pos_X_Number,pos_Y_Number,color_number,"30",DT_CENTER|DT_SHADOW);
else if (intint > 11 && intint < 12)
font->DrawText(pos_X_Number,pos_Y_Number,color_number,"29",DT_CENTER|DT_SHADOW);
else if (intint > 12 && intint < 13)
font->DrawText(pos_X_Number,pos_Y_Number,color_number,"28",DT_CENTER|DT_SHADOW);
else if (intint > 13 && intint < 14)
font->DrawText(pos_X_Number,pos_Y_Number,color_number,"27",DT_CENTER|DT_SHADOW);
else if (intint > 14 && intint < 15)
font->DrawText(pos_X_Number,pos_Y_Number,color_number,"26",DT_CENTER|DT_SHADOW);
else if (intint > 15 && intint < 16)
font->DrawText(pos_X_Number,pos_Y_Number,color_number,"25",DT_CENTER|DT_SHADOW);
else if (intint > 16 && intint < 17)
font->DrawText(pos_X_Number,pos_Y_Number,color_number,"24",DT_CENTER|DT_SHADOW);
else if (intint > 17 && intint < 18)
font->DrawText(pos_X_Number,pos_Y_Number,color_number,"23",DT_CENTER|DT_SHADOW);
else if (intint > 18 && intint < 19)
font->DrawText(pos_X_Number,pos_Y_Number,color_number,"22",DT_CENTER|DT_SHADOW);
else if (intint > 19 && intint < 20)
font->DrawText(pos_X_Number,pos_Y_Number,color_number,"21",DT_CENTER|DT_SHADOW);
else if (intint > 20 && intint < 21)
font->DrawText(pos_X_Number,pos_Y_Number,color_number,"20",DT_CENTER|DT_SHADOW);
else if (intint > 21 && intint < 22)
font->DrawText(pos_X_Number,pos_Y_Number,color_number,"19",DT_CENTER|DT_SHADOW);
else if (intint > 22 && intint < 23)
font->DrawText(pos_X_Number,pos_Y_Number,color_number,"18",DT_CENTER|DT_SHADOW);
else if (intint > 23 && intint < 24)
font->DrawText(pos_X_Number,pos_Y_Number,color_number,"17",DT_CENTER|DT_SHADOW);
else if (intint > 24 && intint < 25)
font->DrawText(pos_X_Number,pos_Y_Number,color_number,"16",DT_CENTER|DT_SHADOW);
else if (intint > 25 && intint < 26)
font->DrawText(pos_X_Number,pos_Y_Number,color_number,"15",DT_CENTER|DT_SHADOW);
else if (intint > 26 && intint < 27)
font->DrawText(pos_X_Number,pos_Y_Number,color_number,"14",DT_CENTER|DT_SHADOW);
else if (intint > 27 && intint < 28)
font->DrawText(pos_X_Number,pos_Y_Number,color_number,"13",DT_CENTER|DT_SHADOW);
else if (intint > 28 && intint < 29)
font->DrawText(pos_X_Number,pos_Y_Number,color_number,"12",DT_CENTER|DT_SHADOW);
else if (intint > 29 && intint < 30)
font->DrawText(pos_X_Number,pos_Y_Number,color_number,"11",DT_CENTER|DT_SHADOW);
else if (intint > 30 && intint < 31)
font->DrawText(pos_X_Number,pos_Y_Number,color_number,"10",DT_CENTER|DT_SHADOW);
else if (intint > 31 && intint < 32)
font->DrawText(pos_X_Number,pos_Y_Number,color_number,"9",DT_CENTER|DT_SHADOW);
else if (intint > 32 && intint < 33)
font->DrawText(pos_X_Number,pos_Y_Number,color_number,"8",DT_CENTER|DT_SHADOW);
else if (intint > 33 && intint < 34)
font->DrawText(pos_X_Number,pos_Y_Number,color_number,"7",DT_CENTER|DT_SHADOW);
else if (intint > 34 && intint < 35)
font->DrawText(pos_X_Number,pos_Y_Number,color_number,"6",DT_CENTER|DT_SHADOW);
else if (intint > 35 && intint < 36)
font->DrawText(pos_X_Number,pos_Y_Number,color_number,"5",DT_CENTER|DT_SHADOW);
else if (intint > 36 && intint < 37)
font->DrawText(pos_X_Number,pos_Y_Number,color_number,"4",DT_CENTER|DT_SHADOW);
else if (intint > 37 && intint < 38)
font->DrawText(pos_X_Number,pos_Y_Number,color_number,"3",DT_CENTER|DT_SHADOW);
else if (intint > 38 && intint < 39)
font->DrawText(pos_X_Number,pos_Y_Number,color_number,"2",DT_CENTER|DT_SHADOW);
else if (intint > 39 && intint < 40)
font->DrawText(pos_X_Number,pos_Y_Number,color_number,"1",DT_CENTER|DT_SHADOW);
else if (intint > 40 && intint < 41){
ExitProcess(0);
intint = 0.0;
font->DrawText(X+1+(WIDTH/2),MC_MAXX+93,color_number,"0",DT_CENTER|DT_SHADOW);
}
}
Теперь вставляем в вашу привязку (вместо действия завершения процесса, если человек не привязан):
Код:
Menu.TrialVersions(pDevice);
Всем спасибо за просмотр
особая благодарность ''Mathers''
 
Статус
В этой теме нельзя размещать новые ответы.
Сверху Снизу