uint32_t null = *(int*)0xB74490;
null += 0x4;
null = *(int*)null;
for (uint32_t one = 0; one < 35584; one += 0x100)
{
uint32_t two = *(byte*)null;
null += 0x1;
if ((two >= 0x00) && (two < 0x80))
{
two += one;
int P_id = SF->getSAMP()->getPlayers()->GetSAMPPlayerIDFromGTAHandle(Ppos_two);
if ((SF->getSAMP()->getPlayers()->IsPlayerDefined(P_id)) && (P_id != SF->getSAMP()->getPlayers()->sLocalPlayerID))
{
if ((SF->getSAMP()->getPlayers()->pRemotePlayer[P_id]->iIsNPC == false) && (SF->getSAMP()->getPlayers()->pRemotePlayer[P_id]->pPlayerData->iAFKState != 2))
{
CVector result;
typedef void(__thiscall *CPed__getBonePositionWithOffset) (void *_this, CVector *offset, int bodeId, bool includeAnim);
(CPed__getBonePositionWithOffset(0x5E01C0))(SF->getSAMP()->getPlayers()->pRemotePlayer[P_id]->pPlayerData->pSAMP_Actor->pGTA_Ped, &result, 1, true);
//resul.fX, resul.fY и resul.fZ - координаты игрока. Чекает пешком и в машине
}
}
}
}