Anmeldungsdatum: Dez 2011
Beiträge: 6
|
hi kn4cker!
hier kommt die funktion:
CPP Code: while(true) { ReadProcessMemory(process,(PVOID)0x8FF090,&IsInGame,4,NULL); //k ISINGAME if(IsInGame) { ReadProcessMemory(process,(PVOID)(0x8FF080),&localclientnum,4,NULL); //k CG ReadProcessMemory(process,(PVOID)(0x96A200+0x10),&fov,8,NULL); //k REFDEF ReadProcessMemory(process,(PVOID)(0x96A200+0x18),&mypos,12,NULL); //k REFDEF ReadProcessMemory(process,(PVOID)(0x96A200+0x3F90),&viewangles,12,NULL); //k REFDEF for(int i = 0; i < 18; i++) { ReadProcessMemory(process,(PVOID)(0xA085B0+i*0x204+0xE0),&typ,4,NULL); //k Entity? if(typ != 1) continue; ReadProcessMemory(process,(PVOID)(0xA085B0+i*0x204+0x2),&valid,4,NULL); //k Entity ReadProcessMemory(process,(PVOID)(0xA085B0+i*0x204+0x1DC),&alive,4,NULL); //k Entity ReadProcessMemory(process,(PVOID)(0xA085B0+i*0x204+0xDC),&clientnum,4,NULL); //k Entity if(valid && alive && (localclientnum != clientnum)) { ReadProcessMemory(process,(PVOID)(0x9FC6C8+i*0x52C+0x1C),&team,4,NULL); //k ClientInfo if(team == 1) info.color = RGB(255,0,0); else if(team == 2) info.color = RGB(0,0,255); else info.color = RGB(255,255,255); ReadProcessMemory(process,(PVOID)(0xA085B0+i*0x204+0x18),&info.pos,12,NULL); //k Entity ReadProcessMemory(process,(PVOID)(0x9FC6C8+i*0x52C+0xC),&info.name,16,NULL); //k ClientInfo dist = (mypos-info.pos).length()/48; if(WorldToScreen(info.pos,&ScreenX,&ScreenY)) { drawx = 400.0/dist; drawy = 700.0/dist; DrawBox(ScreenX-(drawx/2),ScreenY-drawy,drawx,drawy,info.color); DrawString(ScreenX-(drawx/2),ScreenY,info.color,true,info.name); } } } } Sleep(1); }
hab als comment hintergeschrieben als was ich die alten offsets gefunden habe. kann ja sein das ich mich irgendwie vergoogelt habe ^^
vielen dank fürs drüberschauen!
gruß
|