OldSchoolHack

Registrieren / Anmelden Deutsch

NonSDK Project

icon Thema: NonSDK Project

Anmeldungsdatum: Aug 2007

Beiträge: 8643

Benutzer-Bewertung:

199 positiv
33 negativ
weitergehts

CPP Code:
  1. int GetBaseEntityIndex(CBaseEntity *entity) //k
  2. {
  3. return *(int*)((DWORD)entity+IndexOffset);
  4. }
  5.  
  6. char GetBaseEntityLifeState(CBaseEntity *entity) //k
  7. {
  8. return *(char*)((DWORD)entity+LifeStateOffset);
  9. }
  10.  
  11. int GetBaseEntityHealth(CBaseEntity *entity) //k
  12. {
  13. return *(int*)((DWORD)entity+HealthOffset);
  14. }
  15.  
  16. int GetBaseEntityFlags(CBaseEntity *entity) //k
  17. {
  18. return *(int*)((DWORD)entity+FlagsOffset);
  19. }
  20.  
  21. int GetBaseEntityTeamNum(CBaseEntity *entity) //k
  22. {
  23. return *(int*)((DWORD)entity+TeamNumOffset);
  24. }
  25.  
  26. bool IsConnected()
  27. {
  28. bool ret = false;
  29. _asm
  30. {
  31. MOV ECX, DWORD PTR DS:[cEngine]
  32. MOV EAX, DWORD PTR DS:[ECX]
  33. CALL DWORD PTR DS:[EAX+0x6C]
  34. MOV ret, AL
  35. }
  36. return ret;
  37. }

greetz KN4CK3R

__________________

Hallo