double GetDistantion(double x1, double y1, double z1, double x2, double y2, double z2)
{
return sqrt((pow(x1 - x2), 2) + pow(y1 - y2, 2) + pow(z1 - z2, 2));
}
for (int i = 0; i < 1001; i++)
{
if (SF->getSAMP()->getPlayers()->IsPlayerDefined(i, false) && GetDistantion(PEDSELF->GetPosition()->fX,
PEDSELF->GetPosition()->fY,
PEDSELF->GetPosition()->fZ,
SF->getSAMP()->getPlayers()->pRemotePlayer[i]->pPlayerData->fOnFootPos[0],
SF->getSAMP()->getPlayers()->pRemotePlayer[i]->pPlayerData->fOnFootPos[1],
SF->getSAMP()->getPlayers()->pRemotePlayer[i]->pPlayerData->fOnFootPos[2]) <= 94.5)
{
// Если игрок находится в радиусе 94.5
}
}