O currentweapon funciona um pouco mas depois dá enviar relatório de erro.
Alguém sabe porque?
Code:
if (Weapon) {
DWORD pWeaponMgr = *(DWORD*)WeaponMgr;
DWORD dwep = *(DWORD*)(pWeaponMgr + 4 * pPlayer->CharacterFX->CurrentWeapon);
if (dwep != NULL) {
cWeapon* wep = (cWeapon*)(*(DWORD*)(pWeaponMgr + 4 * pPlayer->CharacterFX->CurrentWeapon));
if ((wep != NULL) && (strlen(wep->Name) > 1)) {
aDrawText(Body.x - (GetTextWidth(wep->Name, pFont) / 2), Body.y + 50, wep->Name, BRANCO);
}
}
}
PS: O WeaponMgr já tem a CShell somada.