mercredi 19 mars 2014

[Question] WeaponID = shit topic




I tried few methods from this forum to get weaponid but everytime its shit

-1, 2352523.. etc..

Whats wrong in this code? :huh:


Code:


int        GetWeapID( C_LocalPlayer& pLocal );
{
C_LocalPlayer pLocal;

unsigned long ulWeapon;
ReadMem( pLocal.dwEntity + 0xD70, &ulWeapon, sizeof(ulWeapon) );
ulWeapon &= 0xFFF;
DWORD dwWeapon;
ReadMem( ClientModule + cEntityList + ( ulWeapon - 0x1 ) * 0x10, &dwWeapon, 4 );

int WeaponID;
ReadMem(dwWeapon + 0x5A0, &WeaponID, sizeof(int) );

String(30, 210, D3DCOLOR_XRGB( 0, 195, 205 ), Font, "WeaponID:%i", WeaponID );
}







Aucun commentaire:

Enregistrer un commentaire