dphome
Well-known member
Hi, i have problem with espTracers when red marker is exist then it doesn't appear. Anyone know how fix it?
Code:
void espTracers()
{
traceLastFunc("espTracers()");
if (gta_menu_active())
return;
if (cheat_state->_generic.cheat_panic_enabled)
return;
// Exit this function and enable samp nametags, if panic key
if (!g_dwSAMP_Addr || !g_SAMP || !g_Players)
return;
// don't run if the CGameSA doesn't exist
if (!pGameInterface)
return;
// don't run if we don't exist
if (isBadPtr_GTA_pPed(pPedSelf))
return;
for (int playerid = 0; playerid < SAMP_MAX_PLAYERS; playerid++)
{
actor_info * player = getGTAPedFromSAMPPlayerID(playerid);
actor_info * me = actor_info_get(ACTOR_SELF, NULL);
if (!player)
continue;
if (me == player)
continue;
CPed *pPed = pGameInterface->GetPools()->GetPed((DWORD*)player);
if (!pPed)
return;
CVector mySpinePos, TargetSpinePos;
pPedSelf->GetBonePosition(BONE_SPINE1, &mySpinePos);
pPed->GetBonePosition(BONE_SPINE1, &TargetSpinePos);
D3DCOLOR color;
color = D3DCOLOR_XRGB(255, 165, 0);
if (render)
{
if (!set.esptracers)
continue;
if (set.esptracers)
{
render->DrawLine(CVecToD3DXVEC(mySpinePos), CVecToD3DXVEC(TargetSpinePos), color);
}
}
}
}